prep revision 1.4
1First and foremost, before beginning the installation process, MAKE 2SURE YOU HAVE A RELIABLE BACKUP of any data on your hard disk that you 3wish to keep. Mistakes in partitioning your hard disk may lead 4to data loss. 5 6Before you begin, you should be aware of the geometry issues that may 7arise in relation to your hard disk. First of all, you should know 8about sector size. You can count on this to be 512 bytes; other sizes 9are rare (and currently not supported). Of particular interest are 10the number of sectors per track, the number of tracks per cylinder 11(also known as the number of heads), and the number of cylinders. 12Together they describe the disk geometry. 13 14The BIOS has a limit of 1024 cylinders and 63 sectors per track for 15doing BIOS I/O. This is because of the old programming interface 16to the BIOS that restricts these values. Most of the big disks 17currently being used have more than 1024 real cylinders. Some have 18more than 63 sectors per track. Therefore, the BIOS can be instructed 19to use a fake geometry that accesses most of the disk and the fake 20geometry has less than or equal to 1024 cylinders and less than or 21equal to 63 sectors. This is possible because the disks can be 22addressed in a way that is not restricted to these values, and the 23BIOS can internally perform a translation. This can be activated 24in most modern BIOSes by using 'Large' or 'LBA' mode for the disk. 25 26NetBSD does not have the mentioned limitations with regard to the 27geometry. However, since the BIOS has to be used during startup, 28it is important to know about the geometry the BIOS uses. The 29NetBSD kernel should be on a part of the disk where it can be 30loaded using the BIOS, within the limitations of the BIOS 31geometry. The install program will check this for you, and 32will give you a chance to correct this if this is not the case. 33 34If you have not yet installed any other systems on the harddisk 35that you plan to install NetBSD on, or if you plan to use the 36disk entirely for NetBSD, you may wish to check your BIOS 37settings for the 'Large' or 'LBA' modes, and activate 38them for the harddisk in question. While they are not needed 39by NetBSD as such, doing so will remove the limitations mentioned 40above, and will avoid hassle should you wish to share the disk with 41other systems. Do NOT change these settings if you already have 42data on the disk that you want to preserve! 43 44In any case, it is wise to check your the BIOS settings for the 45harddisk geometry before beginning the installation, and write 46them down. While this should usually not be needed, it enables 47you to verify that the install program determines these values 48correctly. 49 50The geometry that the BIOS uses will be referred to as the "BIOS 51geometry", the geometry that NetBSD uses is the "real geometry". 52 53Sysinst will try to discover both the real geometry and BIOS 54geometry. If a Master Boot Record (MBR) has been written to 55your disk by DOS, Windows 95, NT, or another system, sysinst should 56have no trouble find the BIOS geometry. If the disk has not had a MBR 57written to it, it may be much more difficult to get the BIOS geometry. 58 59It is *important* that sysinst know the proper BIOS geometry to be able 60to get NetBSD to boot, regardless of where on your disk you put it. 61It is less of a concern if the disk is going to be used entirely for 62NetBSD. If you intend to have several OSes on your disk, this becomes 63a much larger issue. 64 65Another issue with geometry is with SCSI disks. The geometry reported 66by the disk often does not address all addressable sectors on the disk. 67sysinst will assist you if you want to choose a fake geometry for 68NetBSD to use so it can get access to more sectors. This is not 69the same as the BIOS fake geometry. 70