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