Home | History | Annotate | Line # | Download | only in atari
install revision 1.1.1.1
      1  1.1  leo Installing NetBSD is a relatively complex process, but, if you have
      2  1.1  leo this document in hand and are careful to read and remember the
      3  1.1  leo information which is presented to you by the install program, it
      4  1.1  leo shouldn't be too much trouble.
      5  1.1  leo 
      6  1.1  leo Before you begin, you must have already prepared your hard disk as
      7  1.1  leo detailed in the section on preparing your system for install.
      8  1.1  leo 
      9  1.1  leo The following is a walk-through of the steps necessary to get NetBSD
     10  1.1  leo installed on your hard disk.  If you wish to stop the installation,
     11  1.1  leo you may hit Control-C at any prompt, but if you do, you'll have to
     12  1.1  leo begin again from scratch.
     13  1.1  leo 
     14  1.1  leo 	First you need to get yourself into NetBSD.  This can be
     15  1.1  leo 	done in a couple ways, both of which currently require
     16  1.1  leo 	GEMDOS.
     17  1.1  leo 
     18  1.1  leo 	You can insert the GEMDOS kernel floppy and select
     19  1.1  leo 	the loadbsd program. It will ask for parameters, 
     20  1.1  leo 	supply: '-b netbsd'.  You can, of course, also run it
     21  1.1  leo 	from the shell command-line in MiNT:
     22  1.1  leo 
     23  1.1  leo 		loadbsd -b a:/netbsd
     24  1.1  leo 
     25  1.1  leo 	You should see the screen clear and some information about
     26  1.1  leo 	your system as the kernel configures the hardware.  Then
     27  1.1  leo 	you will be prompted for a root device.  At this time remove
     28  1.1  leo 	the GEMDOS kernel boot floppy from the drive if present and
     29  1.1  leo 	insert the BSD install floppy 1.  Now type `rd0' to tell the
     30  1.1  leo 	kernel to load the install filesystem into RAMdisk. While
     31  1.1  leo 	While the kernel is loading, it will show a '.' for each
     32  1.1  leo 	track loaded. After loading 80 tracks, it will ask you
     33  1.1  leo 	to insert the next floppy. At this time, inser the BSD
     34  1.1  leo 	install floppy 2 and hit any key. The kernel continous
     35  1.1  leo 	loading another 40 tracks before it continues to boot.
     36  1.1  leo 
     37  1.1  leo 	The system should continue to boot.  For now ignore WARNING:
     38  1.1  leo 	messages about bad dates in clocks. Eventually you will be
     39  1.1  leo 	be asked to enter the pathname of the shell, just hit
     40  1.1  leo 	return.  After a short while you should see a welcome
     41  1.1  leo 	message and a prompt, asking if you wish to proceed with the
     42  1.1  leo 	installation.
     43  1.1  leo 
     44  1.1  leo 	If you wish to proceed, enter "y" and then return.
     45  1.1  leo 
     46  1.1  leo 	If you have configured your hard drive[s] correctly it
     47  1.1  leo 	should find the drive and partition that you selected to
     48  1.1  leo 	use as your root.
     49  1.1  leo 
     50  1.1  leo 	YOU ARE NOW AT THE POINT OF NO RETURN.  If you confirm that
     51  1.1  leo 	you want to install NetBSD, your hard drive will be modified,
     52  1.1  leo 	and perhaps its contents scrambled at the whim of the install
     53  1.1  leo 	program.
     54  1.1  leo 
     55  1.1  leo 	If you are sure you want to proceed, enter "yes" at the
     56  1.1  leo 	prompt.
     57  1.1  leo 
     58  1.1  leo 	The install program will now make the root filesystem you
     59  1.1  leo 	specified.  There should be only one error in this section
     60  1.1  leo 	of the installation.  It will look like so:
     61  1.1  leo 
     62  1.1  leo 		newfs: ioctl (WDINFO): Invalid argument
     63  1.1  leo 		newfs: /dev/rsd0a: can't rewrite disk label
     64  1.1  leo 
     65  1.1  leo 	If there are any others, restart from the the beginning of
     66  1.1  leo 	the installation process.  This error is ok as the Atari
     67  1.1  leo 	does not write disklabels currently.  You should expect
     68  1.1  leo 	this error whenever using newfs.
     69  1.1  leo 
     70  1.1  leo 	Next the install program will ask you which drive and
     71  1.1  leo 	partition you wish to use as /usr.  First it will list the
     72  1.1  leo 	available drives.  Choose one.  Next it will give you a
     73  1.1  leo 	list of the partitions on that disk along with their sizes,
     74  1.1  leo 	types, etc..  Choose the letter that corresponds to the
     75  1.1  leo 	partition you wish to use for /usr.  To be able to make the
     76  1.1  leo 	proper selection, you need to know, that NetBSD assigns a
     77  1.1  leo 	special meaning to some of the partition letters:
     78  1.1  leo 	    'a' : root filesystem
     79  1.1  leo 	    'b' : swap partition
     80  1.1  leo 	    'c' : whole disk
     81  1.1  leo 	You should choose a letter in the range 'd'-'p' for your
     82  1.1  leo 	/usr filesystem.  If you are doing a full install this should
     83  1.1  leo 	be a partition that is at least 45M-50M large.  If everything is
     84  1.1  leo 	ok the install program will then format and mount your /usr.  If
     85  1.1  leo 	not then it will ask again for a drive and partition.
     86  1.1  leo 
     87  1.1  leo 	When this completes your root partition will be mounted on
     88  1.1  leo 	/mnt and your /usr partition on /mnt/usr.  An fstab will
     89  1.1  leo 	have been created and initialized to correctly mount these
     90  1.1  leo 	two file systems.  This fstab will be in /mnt/etc.
     91  1.1  leo 
     92  1.1  leo 	What you do from this point on depends on which media you're
     93  1.1  leo 	using to install NetBSD.  Follow the appropriate instructions,
     94  1.1  leo 	given below.
     95  1.1  leo 
     96  1.1  leo 	To install from an GEMDOS partition:
     97  1.1  leo 
     98  1.1  leo 		You first need to mount the GEMDOS partition
     99  1.1  leo 		using the mount_msdos command.  If e.g. your GEMDOS
    100  1.1  leo 		partition is the first partition on sd0 you could
    101  1.1  leo 		type:
    102  1.1  leo 			
    103  1.1  leo 			mkdir /mnt/gemdos
    104  1.1  leo 			mount_msdos /dev/sd0d /mnt/gemdos
    105  1.1  leo 
    106  1.1  leo 		You can use `disklabel sd0' to find out what types
    107  1.1  leo 		of partitions are on the disk `sd0'.
    108  1.1  leo 
    109  1.1  leo 		Next goto the directory in which you stored the
    110  1.1  leo 		distribution sets.  If e.g. you stored them in the
    111  1.1  leo 		root directory of the partition:
    112  1.1  leo 
    113  1.1  leo 			cd /mnt/gemdos
    114  1.1  leo 
    115  1.1  leo 		When there, run "Set_tmp_dir" and choose the default
    116  1.1  leo 		temporary directory, by hitting return at the
    117  1.1  leo 		prompt.
    118  1.1  leo 
    119  1.1  leo 		Run the "Extract" command, giving it as its sole
    120  1.1  leo 		argument the name of the distribution set you wish
    121  1.1  leo 		to extract.  For example, to extract the base
    122  1.1  leo 		distribution, use the command:
    123  1.1  leo 
    124  1.1  leo 			Extract base11
    125  1.1  leo 
    126  1.1  leo 		and to extract the games distribution:
    127  1.1  leo 
    128  1.1  leo 			Extract game11
    129  1.1  leo 
    130  1.1  leo 		If the distribution sets are in different directories,
    131  1.1  leo 		you will need to cd to each directory in turn, runing
    132  1.1  leo 		"Set_tmp_dir" and the appropriate "Extract" command(s).
    133  1.1  leo 
    134  1.1  leo 		Continue this process until you've finished installing
    135  1.1  leo 		all of the sets which you desire to have on your
    136  1.1  leo 		hard disk.  Once you have extracted all sets and
    137  1.1  leo 		are at the "#" prompt again, proceed to the section
    138  1.1  leo 		"Configuring Your System," below.
    139  1.1  leo 
    140  1.1  leo 	To install from tape:
    141  1.1  leo 
    142  1.1  leo 		The first thing you should do is pick a temporary
    143  1.1  leo 		directory where the distribution files can be stored.
    144  1.1  leo 		To do this, use the command "Set_tmp_dir" and enter
    145  1.1  leo 		your choice.  The default is /mnt/usr/distrib.
    146  1.1  leo 
    147  1.1  leo 		After you have picked a temporary directory,
    148  1.1  leo 		you should issue the load command:
    149  1.1  leo 
    150  1.1  leo 			Load_tape
    151  1.1  leo 
    152  1.1  leo 		Next, you will be told to insert the media into
    153  1.1  leo 		the appropriate drive, and hit return.  Continue
    154  1.1  leo 		to follow instructions until you are returned to
    155  1.1  leo 		the "#" prompt.
    156  1.1  leo 
    157  1.1  leo 		Go to the directory which contains the first
    158  1.1  leo 		distribution set you wish to install.  This is
    159  1.1  leo 		either the directory you specified above, or possibly
    160  1.1  leo 		a subdirectory of that directory.
    161  1.1  leo 
    162  1.1  leo 		When there, run "Set_tmp_dir" again, and choose
    163  1.1  leo 		the default temporary directory, by hitting
    164  1.1  leo 		return at the prompt.
    165  1.1  leo 
    166  1.1  leo 		Run the "Extract" command, giving it as its sole
    167  1.1  leo 		argument the name of the distribution set you
    168  1.1  leo 		wish to extract.  For example, to extract the base
    169  1.1  leo 		distribution, use the command:
    170  1.1  leo 
    171  1.1  leo 			Extract base11
    172  1.1  leo 
    173  1.1  leo 		and to extract the games distribution:
    174  1.1  leo 
    175  1.1  leo 			Extract game11
    176  1.1  leo 
    177  1.1  leo 		After the extraction is complete, go to the location
    178  1.1  leo 		of the next set you want to extract, "Set_tmp_dir"
    179  1.1  leo 		again, and once again issue the appropriate
    180  1.1  leo 		extract command.  Continue this process until
    181  1.1  leo 		you've finished installing all of the sets which you
    182  1.1  leo 		desire to have on your hard disk.
    183  1.1  leo 
    184  1.1  leo 		After each set is finished, if you know that you
    185  1.1  leo 		are running low on space you can remove the
    186  1.1  leo 		distribution files for that set by saying:
    187  1.1  leo 
    188  1.1  leo 			rm set_name.??
    189  1.1  leo 
    190  1.1  leo 		For example, if you wish to remove the distribution
    191  1.1  leo 		files for the game09 set, after the "Extract game09"
    192  1.1  leo 		command has completed, issue the command:
    193  1.1  leo 
    194  1.1  leo 			rm game11.??
    195  1.1  leo 
    196  1.1  leo 		Once you have extracted all sets and are at the "#" prompt
    197  1.1  leo 		again, proceed to the section "Configuring Your System,"
    198  1.1  leo 		below.
    199  1.1  leo 
    200  1.1  leo Configuring Your System:
    201  1.1  leo ----------- ---- ------
    202  1.1  leo 
    203  1.1  leo Once you have finished extracting all of the distribution sets that
    204  1.1  leo you want on your hard drive and are back at the "#" prompt,
    205  1.1  leo you are ready to configure your system.
    206  1.1  leo 
    207  1.1  leo The configuration utility expects that you have installed the base
    208  1.1  leo system.  If you have not, you will not be able to run it successfully
    209  1.1  leo (nor will you have a functional system regardless of configuration).
    210  1.1  leo 
    211  1.1  leo To configure the newly installed operating system, run the
    212  1.1  leo command "Configure".
    213  1.1  leo 
    214  1.1  leo Configure will ask for the machine's hostname, domain name, and other
    215  1.1  leo network configuration information.
    216  1.1  leo 
    217  1.1  leo Once you have supplied `Configure' all that it requests, your machine
    218  1.1  leo will be configured well enough that when you reboot it it will
    219  1.1  leo almost be a completely functional NetBSD system.  Note you should
    220  1.1  leo ignore the errors from `chown' they will be corrected shortly.
    221  1.1  leo 
    222  1.1  leo Once you are done with `Configure', halt the system with the "halt"
    223  1.1  leo command (wait for "halted" to be displayed) and reboot.  Then again
    224  1.1  leo boot NetBSD this time with the command:
    225  1.1  leo 
    226  1.1  leo 	loadbsd netbsd
    227  1.1  leo 
    228  1.1  leo You need to do your final tweeks now.  First mount your file systems
    229  1.1  leo like so:
    230  1.1  leo 
    231  1.1  leo 	mount -av
    232  1.1  leo 
    233  1.1  leo Next you need to re-make your devices to get the ownership correct:
    234  1.1  leo 
    235  1.1  leo 	cd /dev
    236  1.1  leo 	MAKEDEV all
    237  1.1  leo 
    238  1.1  leo Your system is now complete but not completely configured; you
    239  1.1  leo should adjust the /etc/sendmail.cf file as necessary to suit your
    240  1.1  leo site and/or disable sendmail and other network related programs.
    241  1.1  leo These things can be found in /etc/netstart.  Use vi, if you installed
    242  1.1  leo the man pages you can type `man vi' or `man ed' for instructions
    243  1.1  leo on how to use these somewhat non-intuitive editors.
    244  1.1  leo 
    245  1.1  leo As mentioned at the end of the `Configure' run, you should copy the
    246  1.1  leo NetBSD kernel onto the root partition as "/netbsd". There is also
    247  1.1  leo another option to this. As NetBSD/Atari has to be booted from TOS,
    248  1.1  leo you could do the following:
    249  1.1  leo 	Reserve a small GEMDOS partition of about 4Mb. This is
    250  1.1  leo 	enough to put in a few kernels. Put the netbsd kernel
    251  1.1  leo 	into this partition. Also, edit your /etc/fstab to always
    252  1.1  leo 	mount this partition, say as /kernels. Now make a symlink
    253  1.1  leo 	from /netbsd to /kernels/netbsd.
    254  1.1  leo 	This sceme is particulary handy when you want to make your
    255  1.1  leo 	own kernel. When compilation is finished, you just copy
    256  1.1  leo 	your kernel to /kernels/netbsd and reboot. It's wise to
    257  1.1  leo 	make sure there is _always_ a 'know to work' kernel image
    258  1.1  leo 	present.
    259  1.1  leo 
    260  1.1  leo To get the proper timezone settings, link /etc/localtime to the
    261  1.1  leo appropriate file in /usr/share/zoneinfo. The link provided is to
    262  1.1  leo /usr/share/zoneinfo/US/Pacific.
    263  1.1  leo 
    264  1.1  leo Once you are done with the rest of configuration unmount your file
    265  1.1  leo systems and halt your system, then reboot:
    266  1.1  leo 
    267  1.1  leo 	cd /
    268  1.1  leo 	umount -av
    269  1.1  leo 	halt
    270  1.1  leo 	<reboot>
    271  1.1  leo 
    272  1.1  leo Finally you can now boot your system and it will be completely
    273  1.1  leo functional:
    274  1.1  leo 
    275  1.1  leo 	loadbsd -a netbsd
    276  1.1  leo 
    277  1.1  leo When it boots off of the hard drive, you will have a complete
    278  1.1  leo NetBSD system!  CONGRATULATIONS! (You really deserve them!!!)
    279