prep revision 1.4
1 $NetBSD: prep,v 1.4 1998/01/09 18:46:10 perry Exp $ 2 3Note you will be modifying your HD's if you mess something up here you 4could lose everything on all the drives that you mess with. It is 5therefore advised that you: 6 7 Write down your current configurations. Do this 8 by writing down all partition info (especially their sizes). 9 10 Back up the partitions you are keeping. 11 12If NetBSD has a disk of it's own, you can delay the partitioning until 13the installer requests you to do it. This means that you can safely skip 14the rest of this section. 15 16If NetBSD has to share the disk with another operating system, you must 17take care of partitioning your harddisk before installing NetBSD; creating 18space for at least root, swap and /usr partitions and possibly at 19least one more for /local if you have the space. 20 21Warning: The AHDI partioning function erases all partions on your harddisk 22 even if they are not changed! 23 I know this is rather stupid, but don't say I didn't warn you. 24 25If you want to use an AHDI partitioning sceme and you want to be able to boot 26directly into NetBSD, there are some constraints on the partition layout. 27 28As you might know; every hard disk has a "root sector" that contains 29information about the size of the hard disk and the partitions on the hard 30disk. The root sector can only contain the neccessary data for four 31partitions. Nobody thought that this limitation would cause any problems. 32After all, 640 KByte should be enough. As hard disk grew, it was neccessary 33to define more than four partitions. In order to be more or less compatible 34with the old format, a new type of partition entry was defined: XGM partions. 35 36An XGM partition is a "look over there" sign: Another root sector can be 37found at the start of the XGM partition. This root sector contains the 38remaining real partitions. And this is the big mystery: Partitions defined 39in the root sector of the hard disk are called "primary partitions", 40partitions defined in the root sector of an XGM partition are called 41"extended partitions". 42 43The bootblock will only work if the first NBD partition is a primary 44partition. This is not a limitation of NetBSD but a limitation of TOS/AHDI: 45You can only boot from primary partitions. 46 47If you are creating your partitions with HDX, you'll have to be very careful 48to fulfill this rule. HDX has some very strange ideas when it comes to 49extended partitions. Fortunately, you can edit this stuff: The 50"Edit partition scheme of the unit" dialog box has a button label "expert". 51This button is inactive unless you have defined more than four partitions. 52Click on it *after* you have defined the sizes of the partitions. 53 54A new dialog box appears on the screen. The left side contains two blocks of 55partitions: The upper block always contains the first four partitions, the 56lower block contains the last three partitions. If you have defined less than 577 partitions, some fields of the lower block will contain the string "unused". 58Some of the partitions will be displayed in reverse video: These are the 59extended partitions. 60 61The right side contains six possible ranges for the extended partitions. It 62is not possible to define your own range, you will have to use one of the 63schemes offered by HDX. To quote from Ghostbusters: Choose and die. 64The default scheme used by HDX is the first scheme: Extended partitions start 65with the second partition and end with the second to last partition. If you 66have defined 7 partitions, partitions #2 to #5 will be extended partitions, 67while partitions #1, #6 and #7 will be primary partitions. 68 69You can move the extended partition range by clicking on one of the buttons 70on the right side of the dalog box. Try to find one where your first NetBSD 71partition is a primary partition. Golden rules: 72 * If the disk contains no GEMDOS partitions, don't use AHDI. Let NetBSD 73 handle it alone. 74 * If the disk contains one GEMDOS partition, make it partition #1 and 75 start the extended partition range at partition #3. This allows you 76 to boot from both the GEMDOS and the NetBSD partitions. 77 * If the disk contains two GEMDOS partitions, use partitions #1 and #2 78 for GEMDOS, partition #3 for NetBSD-root. Start the extended partition 79 range with partition #4. 80 * If your disks contains three or more GEMDOS partitions, you are in 81 trouble. Try using partitions #1 and #2 as the first two GEMDOS 82 partitions. Use partition #3 as the first NetBSD partition. Start the 83 extended partition range with partition #4. Put the other NetBSD 84 extended partition range. 85 86Good luck, you'll need it... 87 88