install revision 1.7 1 1.7 leo $NetBSD: install,v 1.7 1998/06/17 11:55:39 leo Exp $
2 1.5 perry
3 1.1 leo Installing NetBSD is a relatively complex process, but, if you have
4 1.1 leo this document in hand and are careful to read and remember the
5 1.1 leo information which is presented to you by the install program, it
6 1.1 leo shouldn't be too much trouble.
7 1.1 leo
8 1.1 leo Before you begin, you must have already prepared your hard disk as
9 1.1 leo detailed in the section on preparing your system for install.
10 1.1 leo
11 1.1 leo The following is a walk-through of the steps necessary to get NetBSD
12 1.1 leo installed on your hard disk. If you wish to stop the installation,
13 1.1 leo you may hit Control-C at any prompt, but if you do, you'll have to
14 1.1 leo begin again from scratch.
15 1.1 leo
16 1.3 leo 1. Booting the miniroot
17 1.3 leo =======================
18 1.1 leo First you need to get yourself into NetBSD. This can be
19 1.1 leo done in a couple ways, both of which currently require
20 1.4 leo GEMDOS. You need either the bootfloppy provided in the
21 1.4 leo distribution or you can copy the loadbsd.ttp program and
22 1.4 leo kernel to a boot floppy disk (1.4M needed) or put them on a TOS
23 1.4 leo partition. Select the loadbsd program and it will
24 1.4 leo ask for parameters, supply: '-b netbsd' (or whatever name
25 1.4 leo you copied the kernel to). You can, of course, also run it
26 1.1 leo from the shell command-line in MiNT:
27 1.1 leo
28 1.1 leo loadbsd -b a:/netbsd
29 1.1 leo
30 1.1 leo You should see the screen clear and some information about
31 1.1 leo your system as the kernel configures the hardware. Then
32 1.1 leo you will be prompted for a root device. At this time remove
33 1.1 leo the GEMDOS kernel boot floppy from the drive if present and
34 1.4 leo insert the BSD install floppy 1. Now type `md0a' to tell the
35 1.1 leo kernel to load the install filesystem into RAMdisk. While
36 1.1 leo While the kernel is loading, it will show a '.' for each
37 1.1 leo track loaded. After loading 80 tracks, it will ask you
38 1.1 leo to insert the next floppy. At this time, inser the BSD
39 1.1 leo install floppy 2 and hit any key. The kernel continous
40 1.1 leo loading another 40 tracks before it continues to boot.
41 1.1 leo
42 1.4 leo Note: If you are using 1.44Mb floppies, you should select 'md1a'
43 1.4 leo instead of 'md0a'.
44 1.4 leo
45 1.1 leo The system should continue to boot. For now ignore WARNING:
46 1.1 leo messages about bad dates in clocks. Eventually you will be
47 1.1 leo be asked to enter the pathname of the shell, just hit
48 1.3 leo return. After a short while, you will be asked to select
49 1.3 leo the type of your keyboard. After you have entered a valid
50 1.3 leo response here, the system asks you if you want to install
51 1.3 leo or upgrade your system. Since you are reading the 'install'
52 1.3 leo section, 'i' would be the proper response here...
53 1.3 leo
54 1.3 leo 2. Entering the installer
55 1.3 leo =========================
56 1.3 leo The installer starts with a nice welcome messages. Read this
57 1.3 leo message carefully, it also informs you of the risks involved
58 1.4 leo in continuing! If you still want to go on, type 'y'. The
59 1.3 leo installer now continues by trying to figure out your disk
60 1.4 leo configuration. When it is done, you will be prompted to select
61 1.4 leo a root device from the list of disks it has found.
62 1.3 leo
63 1.3 leo 3. Select your root device
64 1.3 leo ==========================
65 1.3 leo You should know at this point that the disks are NOT numbered
66 1.3 leo according to their scsi-id! The NetBSD kernel numbers the scsi
67 1.3 leo drives (and other devices on the scsi bus) sequentially as it
68 1.3 leo finds them. The drive with the lowest scsi id will be called sd0,
69 1.3 leo the next one sd1, etc.
70 1.3 leo Where you end up after the selection of the root disk depends on
71 1.3 leo the contents of your disk. If it is already partitioned using
72 1.3 leo AHDI, start reading at item 4a, if this disk has no AHDI partitioning
73 1.3 leo but is blank or used by another non-AHDI system, start at item 4b.
74 1.3 leo
75 1.3 leo YOU ARE NOW AT THE POINT OF NO RETURN! The programs in section
76 1.3 leo 4 will modify your harddisk. Type Control-C NOW if you don't
77 1.3 leo want this.
78 1.3 leo
79 1.3 leo 4a. Setting AHDI partition id's on your root disk (using edahdi)
80 1.3 leo ================================================================
81 1.3 leo Because NetBSD imposes a special ordering in disk partitions it
82 1.3 leo uses for root & swap. And because it wants to guard you against
83 1.3 leo an unwanted demolition of partitions used by other systems, you
84 1.3 leo have to tell it what partitions it is allowed to use. You have
85 1.3 leo to mark the partition you want to use as swap 'NBS' or 'SWP'
86 1.3 leo and the other partitions as 'NBD'. Note that all the changes
87 1.3 leo you make to the id's are reversable as long as you remember the
88 1.3 leo original value.
89 1.3 leo In the partition-id editor, the partitions are shown in the order
90 1.3 leo that AHDI created them. When you leave this editor and continue
91 1.3 leo at item 4b, your changes to the id's do have consequences to the
92 1.3 leo partition order! They will show up as follows:
93 1.3 leo a -- the first NBD partition
94 1.3 leo b -- the first NBS partition
95 1.3 leo d (and up) -- the rest of the partitions in AHDI order
96 1.3 leo
97 1.3 leo 4b. Labeling your root disk (using edlabel)
98 1.3 leo ===========================================
99 1.3 leo You are now allowed to change the partitioning of your disk. If
100 1.3 leo your disk is already partitioned with AHDI DON'T change anything
101 1.3 leo unless you are absolutely sure what you are doing!
102 1.3 leo If you are labeling an empty SCSI disk, you can make life easy for
103 1.3 leo yourself by selecting 'standarize geometry'. This allows you to
104 1.3 leo select a 'sectors per track' and 'tracks/cylinder' value and have
105 1.3 leo the (fictious) SCSI geometry changed accordingly. So if you select
106 1.3 leo 64 sect/track and 32 tracks/cylinder, each cilinder is exactly
107 1.3 leo 1Mb in size. Well, go ahead and don't forget to save your work
108 1.3 leo before quitting!
109 1.3 leo NOTE: to make sure that NetBSD can create/mount filesystems on
110 1.3 leo the partitions you defined, make sure the 'type' is entered
111 1.3 leo correctly:
112 1.3 leo 4.2BSD - filesystems created by NetBSD
113 1.3 leo MSDOS - filesystems shared with GEM
114 1.3 leo
115 1.3 leo Just ignore it, it's harmless.
116 1.3 leo
117 1.3 leo 5. Label additional disks
118 1.3 leo =========================
119 1.3 leo Now that your root-disk is labeled, you are given the opportunity
120 1.3 leo to label any of the other disks in your system. The procedure is
121 1.3 leo the same as with your root disk.
122 1.3 leo
123 1.3 leo 6. Setup the fstab
124 1.3 leo ==================
125 1.3 leo Since all disks you want to use with NetBSD are properly labeled,
126 1.3 leo it is time to tell the installer which partition will be associated
127 1.3 leo with the different filesystems. As mentioned above, it is wise to
128 1.3 leo make at least a separate root and /usr filesystem. Depending on
129 1.3 leo what you are planning to do with your system, you might also consider
130 1.3 leo to make a separate /var, /local or /home.
131 1.3 leo When you tell the installer that all of your filesystems are specified
132 1.3 leo correctly, it starts creating them for you.
133 1.3 leo
134 1.3 leo 7. Configure your network
135 1.3 leo =========================
136 1.7 leo Currently none of the kernels supplied in the distribution has
137 1.7 leo network support builtin. If you compiled your own kernel, network
138 1.7 leo configuration mostly works. [ Due to space limitiations, some
139 1.7 leo of the network commands are not present on the install floppy ]
140 1.3 leo
141 1.3 leo 8. Edit the fstab - again....
142 1.3 leo =============================
143 1.3 leo Since the network configuration might have lead to additional (nfs)
144 1.3 leo filesystem entries, you get another chance to modify your fstab.
145 1.3 leo
146 1.3 leo 9. Installing the distribution sets
147 1.3 leo ===================================
148 1.6 scottr You are finally at the point where some real data will be put on
149 1.6 scottr your freshly-made filesystems. Select the device type you whish
150 1.3 leo to install from and off you go....
151 1.3 leo Some notes:
152 1.3 leo - If you want to install from tape, please read the section
153 1.3 leo about how to create such a tape.
154 1.4 leo The tape device name will be "nrst0" for the first tape
155 1.4 leo drive, "nrst1" for the second, etc.
156 1.3 leo - Install at least the base and etc sets.
157 1.3 leo - If you have to specify a path relative to the mount-point and
158 1.3 leo you need the mount-point itself, enter '.'.
159 1.6 scottr - For previous NetBSD users: If you want to install from a
160 1.6 scottr GEMDOS filesystem, you don't need to rename the distribution
161 1.6 scottr sets as you may have done in previous versions of NetBSD.
162 1.3 leo
163 1.3 leo 10. Timezone selection and device-node building
164 1.3 leo ===============================================
165 1.3 leo The isn't much to say about this. Just select the timezone you
166 1.3 leo are in. The installer will make the correct setup on your root
167 1.3 leo filesystem. After the timezone-link is installed, the installer
168 1.3 leo will proceed by creating the device nodes on your root filesystem.
169 1.3 leo Be patient, this will take a while...
170 1.3 leo
171 1.3 leo 11. Installing the kernel
172 1.3 leo =========================
173 1.3 leo Because the kernel didn't fit on the install-disks, the installer
174 1.4 leo asks you about the disk your kernel is on. You can specify the
175 1.4 leo floppy with disk 'fd0' and partition 'b' for 720K disks and
176 1.4 leo partition 'c' for 1.4M disks, or one of the hard disk partitions.
177 1.3 leo
178 1.3 leo 12. Installing the bootstrap
179 1.3 leo ============================
180 1.3 leo Finally, the installer ask you if you want to install the bootblock
181 1.3 leo code on your root disk. This is a matter of personal choise and can
182 1.3 leo also be done from a running NetBSD system. See the 'installboot(8)'
183 1.3 leo manual page about how to do this.
184 1.3 leo
185 1.3 leo 13. You did it!
186 1.3 leo ===============
187 1.3 leo Congratulations, you just installed NetBSD successfully! If you
188 1.3 leo also installed a bootblock, you only have to reboot your atari to
189 1.3 leo enter your freshly build system. If you didn't, get back to section
190 1.4 leo 1 (How to boot the miniroot). Just substitute 'md0a' by your NetBSD
191 1.3 leo root disk.
192 1.1 leo
193 1.1 leo
194 1.3 leo Some extra remarks:
195 1.3 leo ===================
196 1.1 leo
197 1.3 leo If you don't want to use the bootloader. You could use the following
198 1.3 leo setup:
199 1.1 leo Reserve a small GEMDOS partition of about 4Mb. This is
200 1.1 leo enough to put in a few kernels. Put the netbsd kernel
201 1.1 leo into this partition. Also, edit your /etc/fstab to always
202 1.1 leo mount this partition, say as /kernels. Now make a symlink
203 1.1 leo from /netbsd to /kernels/netbsd.
204 1.1 leo This sceme is particulary handy when you want to make your
205 1.1 leo own kernel. When compilation is finished, you just copy
206 1.1 leo your kernel to /kernels/netbsd and reboot. It's wise to
207 1.3 leo make sure there is _always_ a 'known to work' kernel image
208 1.1 leo present.
209