2001-07-24 21:30:55 +04:00
|
|
|
.\" $NetBSD: prep,v 1.9 2001/07/24 17:30:56 nra Exp $
|
2000-10-10 16:55:15 +04:00
|
|
|
.
|
1995-10-09 23:43:23 +03:00
|
|
|
Note you will be modifying your HD's if you mess something up here you
|
1999-01-13 10:30:01 +03:00
|
|
|
could lose everything on all the drives that you work with. It is
|
1995-10-09 23:43:23 +03:00
|
|
|
therefore advised that you:
|
2000-10-10 16:55:15 +04:00
|
|
|
.(bullet
|
1999-01-13 10:30:01 +03:00
|
|
|
Write down your current configurations. Do this
|
|
|
|
by writing down all partition info (especially their sizes).
|
|
|
|
.It
|
|
|
|
.Em Back up the partitions you are keeping.
|
2000-10-10 16:55:15 +04:00
|
|
|
.bullet)
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
2000-10-29 17:08:04 +03:00
|
|
|
If
|
|
|
|
.Nx
|
|
|
|
has to share the disk with another operating system, you can
|
|
|
|
either take care of partitioning your harddisk before installing
|
|
|
|
.Nx
|
|
|
|
or delay this until the installer requests you to do it. If you decide to do
|
|
|
|
it now, please create space for at least
|
|
|
|
.Pa /
|
|
|
|
(root), swap and
|
|
|
|
.Pa /usr
|
|
|
|
partitions and possibly at least one more for
|
|
|
|
.Pa /local
|
|
|
|
if you have the space.
|
|
|
|
Whatever you decide, take note of the paragraphs below!
|
|
|
|
You need this info to create bootable disks.
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
2000-10-10 16:55:15 +04:00
|
|
|
.(tag Warning:
|
|
|
|
.It Em Warning:
|
1999-01-13 10:30:01 +03:00
|
|
|
The AHDI partioning function erases all partions on your harddisk
|
|
|
|
even if they are not changed!
|
2000-10-29 17:08:04 +03:00
|
|
|
We know this is rather stupid, but don't say we didn't warn you.
|
2000-10-10 16:55:15 +04:00
|
|
|
.tag)
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
2000-10-29 17:08:04 +03:00
|
|
|
If you want to use an AHDI partitioning scheme and you want to be able to
|
|
|
|
boot directly into
|
|
|
|
.Nx ,
|
|
|
|
there are some constraints on the partition layout.
|
|
|
|
.Pp
|
|
|
|
As you might know; every hard disk has a
|
|
|
|
.Sq root sector
|
|
|
|
that contains information about the size of the hard disk and the partitions
|
|
|
|
on the hard disk.
|
2001-07-24 21:30:55 +04:00
|
|
|
The root sector can only contain the necessary data for four
|
1996-11-05 12:57:44 +03:00
|
|
|
partitions. Nobody thought that this limitation would cause any problems.
|
2001-07-24 21:30:55 +04:00
|
|
|
After all, 640 KByte should be enough. As hard disk grew, it was necessary
|
1996-11-05 12:57:44 +03:00
|
|
|
to define more than four partitions. In order to be more or less compatible
|
2000-10-10 16:55:15 +04:00
|
|
|
with the old format, a new type of partition entry was defined: XGM partions.
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
2000-10-29 17:08:04 +03:00
|
|
|
An XGM partition is a
|
|
|
|
.Sq look over there
|
|
|
|
sign: Another root sector can be
|
1996-11-05 12:57:44 +03:00
|
|
|
found at the start of the XGM partition. This root sector contains the
|
|
|
|
remaining real partitions. And this is the big mystery: Partitions defined
|
2000-10-29 17:08:04 +03:00
|
|
|
in the root sector of the hard disk are called
|
|
|
|
.Sq "primary partitions" ,
|
1996-11-05 12:57:44 +03:00
|
|
|
partitions defined in the root sector of an XGM partition are called
|
2000-10-29 17:08:04 +03:00
|
|
|
.Sq "extended partitions" .
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
1996-11-05 12:57:44 +03:00
|
|
|
The bootblock will only work if the first NBD partition is a primary
|
2000-10-29 17:08:04 +03:00
|
|
|
partition. This is not a limitation of
|
|
|
|
.Nx
|
|
|
|
but a limitation of
|
|
|
|
.Tn TOS Ns / Ns AHDI:
|
1996-11-05 12:57:44 +03:00
|
|
|
You can only boot from primary partitions.
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
1996-11-05 12:57:44 +03:00
|
|
|
If you are creating your partitions with HDX, you'll have to be very careful
|
|
|
|
to fulfill this rule. HDX has some very strange ideas when it comes to
|
|
|
|
extended partitions. Fortunately, you can edit this stuff: The
|
2000-10-29 17:08:04 +03:00
|
|
|
.Dq "Edit partition scheme of the unit"
|
2001-07-24 21:30:55 +04:00
|
|
|
dialog box has a button labeled
|
2000-10-29 17:08:04 +03:00
|
|
|
.Dq "expert" .
|
1996-11-05 12:57:44 +03:00
|
|
|
This button is inactive unless you have defined more than four partitions.
|
2000-10-29 17:08:04 +03:00
|
|
|
Click on it
|
|
|
|
.Em after
|
|
|
|
you have defined the sizes of the partitions.
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
1996-11-05 12:57:44 +03:00
|
|
|
A new dialog box appears on the screen. The left side contains two blocks of
|
|
|
|
partitions: The upper block always contains the first four partitions, the
|
|
|
|
lower block contains the last three partitions. If you have defined less than
|
2000-10-29 17:08:04 +03:00
|
|
|
7 partitions, some fields of the lower block will contain the string
|
|
|
|
.Dq "unused" .
|
1996-11-05 12:57:44 +03:00
|
|
|
Some of the partitions will be displayed in reverse video: These are the
|
|
|
|
extended partitions.
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
1996-11-05 12:57:44 +03:00
|
|
|
The right side contains six possible ranges for the extended partitions. It
|
|
|
|
is not possible to define your own range, you will have to use one of the
|
|
|
|
schemes offered by HDX. To quote from Ghostbusters: Choose and die.
|
|
|
|
The default scheme used by HDX is the first scheme: Extended partitions start
|
|
|
|
with the second partition and end with the second to last partition. If you
|
|
|
|
have defined 7 partitions, partitions #2 to #5 will be extended partitions,
|
|
|
|
while partitions #1, #6 and #7 will be primary partitions.
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
1996-11-05 12:57:44 +03:00
|
|
|
You can move the extended partition range by clicking on one of the buttons
|
2001-07-24 21:30:55 +04:00
|
|
|
on the right side of the dialog box. Try to find one where your first
|
2000-10-29 17:08:04 +03:00
|
|
|
.Nx
|
1996-11-05 12:57:44 +03:00
|
|
|
partition is a primary partition. Golden rules:
|
2000-10-10 16:55:15 +04:00
|
|
|
.(bullet
|
2000-10-29 17:08:04 +03:00
|
|
|
If the disk contains no
|
|
|
|
.Tn GEMDOS
|
|
|
|
partitions, don't use AHDI.
|
|
|
|
Let
|
|
|
|
.Nx
|
1999-01-13 10:30:01 +03:00
|
|
|
handle it alone.
|
|
|
|
.It
|
2000-10-29 17:08:04 +03:00
|
|
|
If the disk contains one
|
|
|
|
.Tn GEMDOS
|
|
|
|
partition, make it partition #1 and
|
1999-01-13 10:30:01 +03:00
|
|
|
start the extended partition range at partition #3. This allows you
|
2000-10-29 17:08:04 +03:00
|
|
|
to boot from both the
|
|
|
|
.Tn GEMDOS
|
|
|
|
and the
|
|
|
|
.Nx
|
|
|
|
partitions.
|
1999-01-13 10:30:01 +03:00
|
|
|
.It
|
2000-10-29 17:08:04 +03:00
|
|
|
If the disk contains two
|
|
|
|
.Tn GEMDOS
|
|
|
|
partitions, use partitions #1 and #2
|
|
|
|
for
|
|
|
|
.Tn GEMDOS ,
|
|
|
|
partition #3 for NetBSD-root. Start the extended partition
|
1999-01-13 10:30:01 +03:00
|
|
|
range with partition #4.
|
|
|
|
.It
|
2000-10-29 17:08:04 +03:00
|
|
|
If your disks contains three or more
|
|
|
|
.Tn GEMDOS
|
|
|
|
partitions, you are in
|
|
|
|
trouble. Try using partitions #1 and #2 as the first two
|
|
|
|
.Tn GEMDOS
|
|
|
|
partitions. Use partition #3 as the first
|
|
|
|
.Nx
|
|
|
|
partition. Start the
|
|
|
|
extended partition range with partition #4. Put the other
|
|
|
|
.Nx
|
1999-01-13 10:30:01 +03:00
|
|
|
extended partition range.
|
2000-10-10 16:55:15 +04:00
|
|
|
.bullet)
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
1996-11-05 12:57:44 +03:00
|
|
|
Good luck, you'll need it...
|