install revision 1.16
1 $NetBSD: install,v 1.16 1998/10/07 16:34:12 chopps Exp $ 2 3Installing NetBSD is a relatively complex process, but, if you have 4this document in hand and are careful to read and remember the 5information which is presented to you by the install program, it 6shouldn't be too much trouble. 7 8Before you begin, you must have already prepared your hard disk as 9detailed in the section on preparing your system for install. 10 11The following is a walk-through of the steps necessary to get NetBSD 12installed on your hard disk. If you wish to stop the installation, 13you may hit Control-C at any prompt, but if you do, you'll have to 14begin again from scratch. 15 16 Transfer the miniroot file system onto the hard disk partition 17 used by NetBSD for swapping, as described in the "Preparing 18 your System for NetBSD Installation" section above. 19 20 * Booting from AmigaOS, using loadbsd: 21 22 You then need to have "ixemul.library" in your LIBS: directory 23 on AmigaDOS. You also need to have the "loadbsd" program 24 in your command path. If AmigaDOS complains about loadbsd 25 not being an executable file, be sure that the "Execute" 26 protection bit is set. If not, set it with the command: 27 Protect loadbsd add e 28 29 Next you need to get yourself into NetBSD by loading the 30 kernel from AmigaDOS with loadbsd like so: 31 32 loadbsd -b netbsd 33 34 If you have an AGA machine, and your monitor will handle 35 the dblNTSC mode, you may also include the "-A" option to 36 enable the dblNTSC display mode. 37 38 If your machine has a fragmented physical memory space, as, 39 e.g., DraCo machines, you should add the "-n2" option to 40 enable the use of all memory segments. 41 42 * Directly booting NetBSD, with boot blocks installed: 43 44 [This description is for V40 (OS 3.1) ROMs. For older ROMs, 45 there might be small differences. Check your AmigaOS documentation 46 to learn about the exact procedure.] 47 48[XXX should note someplace that using bootblocks may not work on some 49 systems, and may require a mountable filesystem on others?] 50 51 Reboot your machine, holding down both mouse buttons if you 52 have a 2-button mouse, the outer mouse buttons if you have 53 a 3-button mouse. On the DraCo, press the left mouse button 54 instead, when the boot screen prompts you for it. 55 56 From the boot menu, select "Boot Options". 57 Select the swap partition with the miniroot, and then "ok". 58 Select "Boot" now. The machine will boot the bootblock, which 59 will prompt your for a command line. You have a few seconds time 60 to change the default. Entering an empty line will accept the 61 default. 62 63 The bootblock uses command lines of the form: 64 65 file options 66 67 where file is the kernel file name on the partition where the 68 boot block is on, and options are the same as with loadbsd. 69 E.g., instead of "loadbsd -bsSn2 netbsd" use "netbsd -bsSn2". 70 71 * Once your kernel boots: 72 73 You should see the screen clear and some information about 74 your system as the kernel configures the hardware. Note which 75 hard disk device(s) are configured (sd0, sd1, etc). Then 76 you will be prompted for a root device. At this time type 77 'sd0b', where 'sd0' is the device which contains the swap 78 partition you created during the hard disk preparation. 79 When prompted for a dump device, answer 'none' for the install 80 (normally, you would tell it one of the swap devices). When 81 prompted for the root filesystem type, confirm 'generic', which 82 will auto-detect it. 83 84 If the system should hang after entering the root device, try 85 again with 86 87 loadbsd -I ff -b netbsd 88 89 This disables synchronous transfer on all SCSI devices. 90 91 The system should continue to boot. For now ignore WARNING: 92 messages about bad dates in clocks, and a warning about /etc/rc 93 not existing. Eventually you will be be asked to enter the 94 pathname of the shell, just hit return. After a short while, 95 you will be asked to select the type of your keyboard. After 96 you have entered a valid response here, the system asks you if 97 you want to install or upgrade your system. Since you are 98 reading the 'install' section, 'i' would be the proper 99 response here... 100 101 The installer starts with a nice welcome messages. Read this 102 message carefully, it also informs you of the risks involved 103 in continuing! If you still want to go on, type 'y'. The 104 installer now continues by trying to figure out your disk 105 configuration. When it is done, you will be prompted to 106 select a root device from the list of disks it has found. 107 108 You should know at this point that the disks are NOT numbered 109 according to their scsi-id! The NetBSD kernel numbers the scsi 110 drives (and other devices on the scsi bus) sequentially as it 111 finds them. The drive with the lowest scsi id will be called sd0, 112 the next one sd1, etc. Also, any Amiga internal IDE disk drives 113 will be configured as "SCSI" drives, and will be configured 114 before any 'real' SCSI drives (if any are present). 115 116 YOU ARE NOW AT THE POINT OF NO RETURN. If you confirm that 117 you want to install NetBSD, your hard drive will be modified, 118 and perhaps its contents scrambled at the whim of the install 119 program. Type Control-C NOW if you don't want this. 120 121 At this time, you will need to tell the installer which partition 122 will be associated with the different filesystems. 123 124 The install program will now make the the file systems you 125 specified. There should be only one error per file system in 126 this section of the installation. It will look like this: 127 128 newfs: ioctl (WDINFO): Invalid argument 129 newfs: /dev/rsd0a: can't rewrite disk label 130 131 If there are any others, restart from the the beginning of 132 the installation process. This error is ok as the Amiga 133 does not write disklabels currently. You should expect 134 this error whenever using newfs. 135 136 The install will now ask you want to configure any network 137 information. It ill ask for the machine's host name, domain 138 name, and other network configuration information. 139 140 Since the network configuration might have lead to additional (nfs) 141 filesystem entries, you get another chance to modify your fstab. 142 143 You are finally at the point where some real data will be put on 144 your freshly made filesystems. Select the device type you wish 145 to install from and off you go.... 146 Some notes: 147 - If you want to install from tape, please read the section 148 about how to create such a tape. 149 - Some tapes (e.g. Archive Viper 150) refuse to operate with 150 the default tape density ("nrst0"). Try "nrst0h", 151 "nrst0m", or "nrst0l" instead. 152 - Install at least the base and etc sets. 153 - If you have to specify a path relative to the mount-point and 154 you need the mount-point itself, enter '.'. 155 156 Next you will be asked to specify the timezone. Just select the 157 timezone you are in. The installer will make the correct setup 158 on your root filesystem. After the timezone-link is installed, 159 the installer will proceed by creating the device nodes on your 160 root filesystem. 161 162 Be patient, this will take a while... 163 164 Finally, the installer ask you if you want to install the bootblock 165 code on your root disk. This is a matter of personal choice and can 166 also be done from a running NetBSD system. See the 'installboot(8)' 167 manual page about how to do this. 168 169 170Once the installer is done, halt the system with the "halt" command 171(wait for "halted" to be displayed) and reboot. Then again boot 172NetBSD this time with the command: 173 174 loadbsd netbsd 175 176or select the root partition from the boot menu, and tell it to boot 177 178 netbsd -s 179 180You need to do your final tweaks now. First mount your file systems 181like so: 182 183 mount -av 184 185Your system is now complete but not completely configured; you 186should adjust the /etc/sendmail.cf file as necessary to suit your 187site. You should also examine and adjust the settings in /etc/rc.conf. 188You can use vi or ed to edit the files. If you installed the man pages 189you can type `man vi' or `man ed' for instructions on how to use these 190somewhat non-intuitive editors. 191 192Once you are done with the rest of configuration unmount your file 193systems and halt your system, then reboot: 194 195 cd / 196 umount -av 197 halt 198 <reboot> 199 200Finally you can now boot your system and it will be completely 201functional: 202 203 loadbsd -a netbsd 204 205When it boots off of the hard drive, you will have a complete 206NetBSD system! CONGRATULATIONS! (You really deserve them!!!) 207