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