2002-06-30 02:37:39 +04:00
|
|
|
.\" $NetBSD: prep,v 1.13 2002/06/29 22:45:30 lukem Exp $
|
2000-10-10 16:55:15 +04:00
|
|
|
.
|
1999-01-13 10:30:01 +03:00
|
|
|
First and foremost, before beginning the installation process,
|
|
|
|
.Em make sure you have a reliable backup
|
|
|
|
of any data on your hard disk that you
|
2002-06-30 02:37:39 +04:00
|
|
|
wish to keep.
|
|
|
|
Mistakes in partitioning your hard disk may lead to data loss.
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
1997-12-19 03:59:56 +03:00
|
|
|
Before you begin, you should be aware of the geometry issues that may
|
2002-06-30 02:37:39 +04:00
|
|
|
arise in relation to your hard disk.
|
|
|
|
First of all, you should know about sector size.
|
|
|
|
You can count on this to be 512 bytes; other sizes are rare
|
|
|
|
(and currently not supported).
|
|
|
|
Of particular interest are the number of sectors per track,
|
|
|
|
the number of tracks per cylinder (also known as the number of heads),
|
|
|
|
and the number of cylinders.
|
1997-12-19 03:59:56 +03:00
|
|
|
Together they describe the disk geometry.
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Tn BIOS
|
|
|
|
has a limit of 1024 cylinders and 63 sectors per track for
|
|
|
|
doing
|
|
|
|
.Tn BIOS
|
2002-06-30 02:37:39 +04:00
|
|
|
I/O.
|
|
|
|
This is because of the old programming interface
|
1999-01-13 10:30:01 +03:00
|
|
|
to the
|
|
|
|
.Tn BIOS
|
2002-06-30 02:37:39 +04:00
|
|
|
that restricts these values.
|
|
|
|
Most of the big disks currently being used have more than 1024 real cylinders.
|
|
|
|
Some have more than 63 sectors per track.
|
|
|
|
Therefore, the
|
1999-01-13 10:30:01 +03:00
|
|
|
.Tn BIOS
|
|
|
|
can be instructed
|
1997-12-19 03:59:56 +03:00
|
|
|
to use a fake geometry that accesses most of the disk and the fake
|
|
|
|
geometry has less than or equal to 1024 cylinders and less than or
|
2002-06-30 02:37:39 +04:00
|
|
|
equal to 63 sectors.
|
|
|
|
This is possible because the disks can be addressed in a way that is
|
|
|
|
not restricted to these values, and the
|
1999-01-13 10:30:01 +03:00
|
|
|
.Tn BIOS
|
2002-06-30 02:37:39 +04:00
|
|
|
can internally perform a translation.
|
|
|
|
This can be activated in most modern BIOSes by using
|
1999-01-13 10:30:01 +03:00
|
|
|
.Em Large
|
|
|
|
or
|
|
|
|
.Em LBA
|
|
|
|
mode for the disk.
|
|
|
|
.Pp
|
|
|
|
.Nx
|
2002-06-30 02:37:39 +04:00
|
|
|
does not have the mentioned limitations with regard to the geometry.
|
|
|
|
However, since the
|
1999-01-13 10:30:01 +03:00
|
|
|
.Tn BIOS
|
|
|
|
has to be used during startup,
|
|
|
|
it is important to know about the geometry the
|
|
|
|
.Tn BIOS
|
2002-06-30 02:37:39 +04:00
|
|
|
uses.
|
|
|
|
The
|
1999-01-13 10:30:01 +03:00
|
|
|
.Nx
|
|
|
|
kernel should be on a part of the disk where it can be loaded using the
|
|
|
|
.Tn BIOS ,
|
|
|
|
within the limitations of the
|
|
|
|
.Tn BIOS
|
2002-06-30 02:37:39 +04:00
|
|
|
geometry.
|
|
|
|
The install program will check this for you, and
|
1997-12-19 03:59:56 +03:00
|
|
|
will give you a chance to correct this if this is not the case.
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
1997-12-25 02:12:47 +03:00
|
|
|
If you have not yet installed any other systems on the hard disk
|
1999-01-13 10:30:01 +03:00
|
|
|
that you plan to install
|
|
|
|
.Nx
|
|
|
|
on, or if you plan to use the
|
|
|
|
disk entirely for
|
|
|
|
.Nx ,
|
|
|
|
you may wish to check your
|
|
|
|
.Tn BIOS
|
2000-10-29 17:08:04 +03:00
|
|
|
settings for the
|
|
|
|
.Sq Large
|
|
|
|
or
|
|
|
|
.Sq LBA
|
|
|
|
modes, and activate
|
2002-06-30 02:37:39 +04:00
|
|
|
them for the hard disk in question.
|
|
|
|
While they are not needed by
|
1999-01-13 10:30:01 +03:00
|
|
|
.Nx
|
|
|
|
as such, doing so will remove the limitations mentioned
|
1997-12-19 03:59:56 +03:00
|
|
|
above, and will avoid hassle should you wish to share the disk with
|
2002-06-30 02:37:39 +04:00
|
|
|
other systems.
|
|
|
|
Do
|
1999-01-13 10:30:01 +03:00
|
|
|
.Em not
|
|
|
|
change these settings if you already have
|
1997-12-19 03:59:56 +03:00
|
|
|
data on the disk that you want to preserve!
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
|
|
|
In any case, it is wise to check your the
|
|
|
|
.Tn BIOS
|
|
|
|
settings for the
|
2002-06-30 02:37:39 +04:00
|
|
|
hard disk geometry before beginning the installation, and write them down.
|
|
|
|
While this should usually not be needed, it enables you to verify
|
|
|
|
that the install program determines these values correctly.
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
|
|
|
The geometry that the
|
|
|
|
.Tn BIOS
|
|
|
|
uses will be referred to as the
|
|
|
|
.Tn Em BIOS
|
|
|
|
.Em geometry ,
|
|
|
|
the geometry that
|
|
|
|
.Nx
|
|
|
|
uses is the
|
|
|
|
.Em real geometry .
|
|
|
|
.Pp
|
2001-04-07 22:25:46 +04:00
|
|
|
.Ic sysinst ,
|
|
|
|
the
|
|
|
|
.Nx
|
|
|
|
installation program, will try to discover both the real geometry and
|
1999-01-13 10:30:01 +03:00
|
|
|
.Tn BIOS
|
|
|
|
geometry.
|
|
|
|
.Pp
|
|
|
|
It is
|
|
|
|
.Em important
|
|
|
|
that
|
2001-04-07 22:25:46 +04:00
|
|
|
.Ic sysinst
|
1999-01-13 10:30:01 +03:00
|
|
|
know the proper
|
|
|
|
.Tn BIOS
|
|
|
|
geometry to be able
|
|
|
|
to get
|
|
|
|
.Nx
|
|
|
|
to boot, regardless of where on your disk you put it.
|
1997-12-19 03:59:56 +03:00
|
|
|
It is less of a concern if the disk is going to be used entirely for
|
1999-01-13 10:30:01 +03:00
|
|
|
.Nx .
|
|
|
|
If you intend to have several OSes on your disk, this becomes
|
1997-12-19 03:59:56 +03:00
|
|
|
a much larger issue.
|