Home | History | Annotate | Line # | Download | only in amiga
install revision 1.6
      1 Installing NetBSD is a relatively complex process, but, if you have
      2 this document in hand and are careful to read and remember the
      3 information which is presented to you by the install program, it
      4 shouldn't be too much trouble.
      5 
      6 Before you begin, you must have already prepared your hard disk as
      7 detailed in the section on preparing your system for install.
      8 
      9 The following is a walk-through of the steps necessary to get NetBSD
     10 installed on your hard disk.  If you wish to stop the installation,
     11 you may hit Control-C at any prompt, but if you do, you'll have to
     12 begin again from scratch.
     13 
     14 	Transfer the install miniroot filesystem onto the hard disk
     15 	partition used by NetBSD for swapping, as described in the
     16 	"Preparing your System for NetBSD Installation" section above.
     17 
     18 	You then need to have "ixemul.library" in your LIBS: directory
     19 	on AmigaDOS.  You also need to have the "loadbsd" program
     20 	in your command path.  If AmigaDOS complains about loadbsd
     21 	not being an executable file, be sure that the "Execute"
     22 	protection bit is set.  If not, set it with the command:
     23 		Protect loadbsd add e
     24 
     25 	Next you need to get yourself into NetBSD by loading the
     26 	kernel from AmigaDOS with loadbsd like so:
     27 
     28 		loadbsd -b netbsd
     29 
     30 	If you have an AGA machine, and your monitor will handle
     31 	the dblNTSC mode, you may also include the "-A" option to
     32 	enable the dblNTSC display mode.
     33 
     34 	You should see the screen clear and some information about
     35 	your system as the kernel configures the hardware.  Note which
     36 	hard disk device(s) are configured (sd0, sd1, etc).  Then
     37 	you will be prompted for a root device.  At this time type
     38 	'sd0*', where '0' is the device which contains the swap
     39 	partition you created during the hard disk preparation.
     40 
     41 	If the system should hang after entering the root device, try
     42 	again with
     43 
     44 		loadbsd -I ff -b netbsd
     45 
     46 	This disables synchronous transfer on all SCSI devices.
     47 
     48 	The system should continue to boot.  For now ignore WARNING:
     49 	messages about bad dates in clocks.  Eventually you will be
     50 	asked to enter the pathname of the shell, just hit return.
     51 	After a short while you should see a welcome message and a
     52 	prompt, asking if you wish to proceed with the installation.
     53 
     54 	If you wish to proceed, enter "y" and then return.
     55 
     56 	If you have configured your hard drive[s] correctly it
     57 	should find the drive and partition that you selected to
     58 	use as your root.  You will be prompted for which device
     59 	you want to use for your root.  If you have multiple disks
     60 	present with root partitions defined, you will need to be
     61 	sure you enter the device name of the correct partition you
     62 	want to install NetBSD on.
     63 
     64 	YOU ARE NOW AT THE POINT OF NO RETURN.  If you confirm that
     65 	you want to install NetBSD, your hard drive will be modified,
     66 	and perhaps its contents scrambled at the whim of the install
     67 	program.
     68 
     69 	If you are sure you want to proceed, enter "yes" at the
     70 	prompt.
     71 
     72 	The install program will now make the root filesystem you
     73 	specified.  There should be only one error in this section
     74 	of the installation.  It will look like so:
     75 
     76 		newfs: ioctl (WDINFO): Invalid argument
     77 		newfs: /dev/rsd0a: can't rewrite disk label
     78 
     79 	If there are any others, restart from the the beginning of
     80 	the installation process.  This error is ok as the Amiga
     81 	does not write disklabels currently.  You should expect
     82 	this error whenever using newfs.
     83 
     84 	Next the install program will ask you which drive and
     85 	partition you wish to use as /usr.  First it will list the
     86 	available drives.  Choose one.  Next it will give you a
     87 	list of the partitions on that disk along with their sizes,
     88 	types, etc..  Choose the letter that corresponds to the
     89 	partition you wish to use for /usr.  If you are doing a
     90 	full install this should be at the very least 45M-50M large.
     91 	If everything is ok the install program will then format
     92 	and mount your /usr.  If not then it will ask again for a
     93 	drive and partition.
     94 
     95 	When this completes your root partition will be mounted on
     96 	/mnt and your /usr partition on /mnt/usr.  An fstab will
     97 	have been created and initialized to correctly mount these
     98 	two file systems.  This fstab will be in /mnt/etc.
     99 
    100 	What you do from this point on depends on which media you're
    101 	using to install NetBSD.  Follow the appropriate instructions,
    102 	given below.
    103 
    104 	To install from an AmigaDOS partition:
    105 
    106 		You first need to mount the AmigaDOS partition
    107 		using the mount_ados command.  If e.g. your AmigaDOS
    108 		partition is the first partition on sd0 you could
    109 		type:
    110 			
    111 			mkdir /mnt/ados
    112 			mount_ados -o ro /dev/sd0d /mnt/ados
    113 
    114 		You can use `disklabel sd0' to find out what types
    115 		of partitions are on the disk `sd0'.
    116 
    117 		Next goto the directory in which you stored the
    118 		distribution sets.  If e.g. you stored them in the
    119 		root directory of the partition:
    120 
    121 			cd /mnt/ados
    122 
    123 		When there, run "Set_tmp_dir" and choose the default
    124 		temporary directory, by hitting return at the
    125 		prompt.
    126 
    127 		Run the "Extract" command, giving it as its sole
    128 		argument the name of the distribution set you wish
    129 		to extract.  For example, to extract the base
    130 		distribution, use the command:
    131 
    132 			Extract base11
    133 
    134 		and to extract the games distribution:
    135 
    136 			Extract game11
    137 
    138 		If the distribution sets are in different directories,
    139 		you will need to cd to each directory in turn, runing
    140 		"Set_tmp_dir" and the appropriate "Extract" command(s).
    141 
    142 		Continue this process until you've finished installing
    143 		all of the sets which you desire to have on your
    144 		hard disk.  Once you have extracted all sets and
    145 		are at the "#" prompt again, proceed to the section
    146 		"Configuring Your System," below.
    147 
    148 	To install from tape:
    149 
    150 		The first thing you should do is pick a temporary
    151 		directory where the distribution files can be stored.
    152 		To do this, use the command "Set_tmp_dir" and enter
    153 		your choice.  The default is /mnt/usr/distrib.
    154 
    155 		After you have picked a temporary directory,
    156 		you should issue the load command:
    157 
    158 			Load_tape
    159 
    160 		Next, you will be told to insert the media into
    161 		the appropriate drive, and hit return.  Continue
    162 		to follow instructions until you are returned to
    163 		the "#" prompt.
    164 
    165 		Go to the directory which contains the first
    166 		distribution set you wish to install.  This is
    167 		either the directory you specified above, or possibly
    168 		a subdirectory of that directory.
    169 
    170 		When there, run "Set_tmp_dir" again, and choose
    171 		the default temporary directory, by hitting
    172 		return at the prompt.
    173 
    174 		Run the "Extract" command, giving it as its sole
    175 		argument the name of the distribution set you
    176 		wish to extract.  For example, to extract the base
    177 		distribution, use the command:
    178 
    179 			Extract base11
    180 
    181 		and to extract the games distribution:
    182 
    183 			Extract game11
    184 
    185 		After the extraction is complete, go to the location
    186 		of the next set you want to extract, "Set_tmp_dir"
    187 		again, and once again issue the appropriate
    188 		extract command.  Continue this process until
    189 		you've finished installing all of the sets which you
    190 		desire to have on your hard disk.
    191 
    192 		After each set is finished, if you know that you
    193 		are running low on space you can remove the
    194 		distribution files for that set by saying:
    195 
    196 			rm set_name.??
    197 
    198 		For example, if you wish to remove the distribution
    199 		files for the game09 set, after the "Extract game09"
    200 		command has completed, issue the command:
    201 
    202 			rm game11.??
    203 
    204 		Once you have extracted all sets and are at the "#" prompt
    205 		again, proceed to the section "Configuring Your System,"
    206 		below.
    207 
    208 	To install via FTP or NFS:
    209 
    210 		First, use Set_tmp_dir to pick a temporary directory
    211 		for the installation files.  /mnt/usr/distrib is
    212 		suggested.
    213 
    214 		Configure the appropriate ethernet interface i.e. le0
    215 		if you have a 2065 or ed0 if you have a AMIGNET from
    216 		Hydra Systems.
    217 		
    218 			ifconfig <ifname> <ipaddr> [netmask <netmask>]
    219 
    220 		where <ifname> is the interface name (e.g. ed0, etc.),
    221 		and <ipaddr> is the numeric IP address of the interface.
    222 		If the interface has a special netmask, supply
    223 		the word "netmask" and that netmask at the end of the
    224 		command line.  For instance, without a special netmask:
    225 
    226 			ifconfig ed0 129.133.10.10
    227 
    228 		or with a special netmask
    229 
    230 			ifconfig ed0 128.32.240.167 netmask 0xffffff00
    231 
    232 		You should also be able to use SLIP or PPP as the network
    233 		connection.
    234 		[XXX instructions for ppp or slip would be usefull
    235 		perhaps the next release]
    236 
    237 		If the NFS server or FTP server is not on a directly-
    238 		connected network, you should set up a route to it
    239 		with the command:
    240 
    241 			route add default <gate_ipaddr>
    242 
    243 		where <gate_ipaddr> is your gateway's numeric IP address.
    244 
    245 		If you are NFS-mounting the distribution sets,
    246 		mount them on the temporary directory with the command:
    247 
    248 			mount -t nfs <serv_ipaddr>:<dist_dir> <tmp_dir>
    249 
    250 		where <serv_ipaddr> is the server's numeric IP address,
    251 		<dist_dir> is the path to the distribution files on
    252 		the server, and <tmp_dir> is the name of the local
    253 		temporary directory.
    254 
    255 		Once this is done, proceed as if you had loaded the
    256 		files from tape, "cd"ing to the appropriate directories
    257 		and running "Set_tmp_dir" and "Extract" as appropriate.
    258 
    259 		If you are retrieving the distribution sets using ftp,
    260 		cd into the temp directory, and execute the command:
    261 
    262 			ftp <serv_ipaddr>
    263 
    264 		where <serv_ipaddr> is once again the server's
    265 		numeric IP address.  Get the files with FTP,
    266 		taking care to use binary mode to transfer
    267 		all files.
    268 
    269 		Once you have all of the files for the distribution sets
    270 		you wish to install, you can proceed using the instructions
    271 		above as if you had installed the files from a tape.
    272 
    273 
    274 Configuring Your System:
    275 ----------- ---- ------
    276 
    277 Once you have finished extracting all of the distribution sets that
    278 you want on your hard drive and are back at the "#" prompt,
    279 you are ready to configure your system.
    280 
    281 The configuration utility expects that you have installed the base
    282 system.  If you have not, you will not be able to run it successfully
    283 (nor will you have a functional system regardless of configuration).
    284 
    285 To configure the newly installed operating system, run the
    286 command "Configure".
    287 
    288 Configure will ask for the machine's hostname, domain name, and other
    289 network configuration information.
    290 
    291 Once you have supplied `Configure' all that it requests, your machine
    292 will be configured well enough that when you reboot it it will
    293 almost be a completely functional NetBSD system.
    294 
    295 >>> Copy the kernel from the miniroot filesystem at this point <<<
    296 
    297 Once you are done with `Configure', halt the system with the "halt"
    298 command (wait for "halted" to be displayed) and reboot.  Then again
    299 boot NetBSD this time with the command:
    300 
    301 
    302 	loadbsd netbsd
    303 
    304 You need to do your final tweeks now.  First mount your file systems
    305 like so:
    306 
    307 	mount -av
    308 
    309 Your system is now complete but not completely configured; you
    310 should adjust the /etc/sendmail.cf file as necessary to suit your
    311 site and/or disable sendmail and other network related programs.
    312 These things can be found in /etc/netstart.  Use vi, if you installed
    313 the man pages you can type `man vi' or `man ed' for instructions
    314 on how to use these somewhat non-intuitive editors.
    315 
    316 You should also put a copy of the netbsd kernel in your root partition.
    317 This can be done easily by mounting the AmigaDOS partition containing
    318 the kernel you used to start NetBSD and copying the "netbsd" file to
    319 the root:
    320 	mount -r -t ados /dev/sd0d /mnt
    321 	cp /mnt/netbsd /
    322 (where /dev/sd0d is the AmigaDOS partition where you have netbsd, and
    323 /mnt/netbsd is the appropriate path of the netbsd file).
    324 
    325 Once you are done with the rest of configuration unmount your file
    326 systems and halt your system, then reboot:
    327 
    328 	cd /
    329 	umount -av
    330 	halt
    331 	<reboot>
    332 
    333 Finally you can now boot your system and it will be completely
    334 functional:
    335 
    336 	loadbsd -a netbsd
    337 
    338 When it boots off of the hard drive, you will have a complete
    339 NetBSD system!  CONGRATULATIONS! (You really deserve them!!!)
    340