prep revision 1.3
1NOTE: If you wish to install NetBSD on your whole disk, i.e. you do
2not want DOS or any other operating system to reside on your hard
3disk, you can skip this section and go on to the section that
4describes installation, below.  If you're upgrading your system from a
5previous release of NetBSD, you shouldn't have proceeded directly to
6the section about upgrading; you need none of the information
7presented here.
8
9First and foremost, before beginning the installation process, MAKE
10SURE YOU HAVE A RELIABLE BACKUP of any data on your hard disk that you
11wish to keep.  Repartitioning your hard disk is an excellent way to
12destroy important data.
13
14Second, if you are using a disk controller which supports disk
15geometry translation, be sure to use the same parameters for NetBSD as
16for DOS or the other operating systems installed on your disk.  If you
17do not, it will be much harder to make NetBSD properly coexist with
18them.  Utilities exist which will print out the disk geometry which DOS
19sees; some versions of DOS "fdisk" also do this.  If you have an "EIDE"
20hard disk, DOS and NetBSD probably won't see the same geometry, and you
21must be careful to find out the DOS geometry and tell NetBSD about it
22during the installation.
23
24Third (but related to the second point above), if you are using a hard
25disk with more sectors than DOS or your controller's BIOS supports without
26some kind of software translation utility or other kludge, you MUST
27BE SURE that all partitions which you want to boot from must start below
28cylinder 1024 by the BIOS's idea of the disk, and that all DOS partitions
29MUST EXIST ENTIRELY BELOW cylinder 1024, or you will either not be able to
30boot NetBSD, not be able to boot DOS, or you may experience data loss or
31filesystem corruption.  Be sure you aren't using geometry translation that
32you don't know about, but that the DOS "fdisk" program does!
33
34Fourth, use the DOS "fdisk" program or another partition editor to
35repartition your hard disk.  Create a partition of at least 40M in
36size (preferably much larger), and note its starting offset and its
37length (preferably in units of disk sectors or cylinders).  You will
38need that information when installing NetBSD (and if the offset and
39length are not in those units, you will have to convert them).  Once
40you have created the new NetBSD partition, mark it as having a
41partition type of 0xA5 (165, in decimal).  If you used "fdisk" to
42partition your disk, you will probably have to use a different
43partition editor to mark the partition with the correct type.
44
45
46Finally, do whatever is necessary to restore order to the partition
47you took space away from.  If it was a DOS partition, you probably
48will need to use "format" to create a new file system on it, and then
49restore your important files from your backups.  Other operating
50systems will have different needs; most will need to reformat the
51partition, and if it was their "main" partition, will probably need
52to be reinstalled.
53
54Your hard disk is now prepared to have NetBSD installed on it, and
55you should proceed with the installation instructions.
56