2003-02-12 11:18:22 +03:00
|
|
|
.\" $NetBSD: prep,v 1.12 2003/02/12 08:18:22 leo Exp $
|
2000-10-10 16:55:15 +04:00
|
|
|
.
|
2002-05-27 16:39:57 +04:00
|
|
|
.Ss2 Preparing your hard disk for the NetBSD installation.
|
1995-10-09 23:43:23 +03:00
|
|
|
Note you will be modifying your HD's if you mess something up here you
|
2002-06-29 13:46:39 +04:00
|
|
|
could lose everything on all the drives that you work with.
|
|
|
|
It is therefore advised that you:
|
2000-10-10 16:55:15 +04:00
|
|
|
.(bullet
|
2002-06-29 13:46:39 +04:00
|
|
|
Write down your current configurations.
|
|
|
|
Do this by writing down all partition info (especially their sizes).
|
1999-01-13 10:30:01 +03:00
|
|
|
.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
|
2002-06-29 13:46:39 +04:00
|
|
|
or delay this until the installer requests you to do it.
|
|
|
|
If you decide to do it now, please create space for at least
|
2000-10-29 17:08:04 +03:00
|
|
|
.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.
|
2002-06-29 13:46:39 +04:00
|
|
|
The root sector can only contain the necessary data for four partitions.
|
|
|
|
Nobody thought that this limitation would cause any problems.
|
|
|
|
After all, 640 KByte should be enough.
|
|
|
|
As hard disk grew, it was necessary to define more than four partitions.
|
|
|
|
In order to be more or less compatible 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
|
2002-06-29 13:46:39 +04: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
|
2002-06-29 13:46:39 +04:00
|
|
|
partition.
|
|
|
|
This is not a limitation of
|
2000-10-29 17:08:04 +03:00
|
|
|
.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
|
2002-06-29 13:46:39 +04:00
|
|
|
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
|
2002-06-29 13:46:39 +04: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
|
2002-06-29 13:46:39 +04: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.
|
1996-11-05 12:57:44 +03:00
|
|
|
The default scheme used by HDX is the first scheme: Extended partitions start
|
2002-06-29 13:46:39 +04:00
|
|
|
with the second partition and end with the second to last partition.
|
|
|
|
If you
|
1996-11-05 12:57:44 +03:00
|
|
|
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
|
2002-06-29 13:46:39 +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
|
2002-06-29 13:46:39 +04: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
|
2002-06-29 13:46:39 +04: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 ,
|
2002-06-29 13:46:39 +04:00
|
|
|
partition #3 for NetBSD-root.
|
|
|
|
Start the extended partition range with partition #4.
|
1999-01-13 10:30:01 +03:00
|
|
|
.It
|
2000-10-29 17:08:04 +03:00
|
|
|
If your disks contains three or more
|
|
|
|
.Tn GEMDOS
|
2002-06-29 13:46:39 +04:00
|
|
|
partitions, you are in trouble.
|
|
|
|
Try using partitions #1 and #2 as the first two
|
2000-10-29 17:08:04 +03:00
|
|
|
.Tn GEMDOS
|
2002-06-29 13:46:39 +04:00
|
|
|
partitions.
|
|
|
|
Use partition #3 as the first
|
2000-10-29 17:08:04 +03:00
|
|
|
.Nx
|
2002-06-29 13:46:39 +04:00
|
|
|
partition.
|
|
|
|
Start the extended partition range with partition #4.
|
|
|
|
Put the other
|
2000-10-29 17:08:04 +03:00
|
|
|
.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
|
2002-05-27 16:39:57 +04:00
|
|
|
.Ss2 Booting the installer on an existing system
|
|
|
|
If you already have
|
|
|
|
.Nx
|
2002-06-29 13:46:39 +04:00
|
|
|
installed, it is easy.
|
|
|
|
Just boot into single user state on your current system, or use the
|
2002-05-27 16:39:57 +04:00
|
|
|
.Ic shutdown now
|
2002-06-29 13:46:39 +04:00
|
|
|
command to shutdown to single-user state.
|
|
|
|
Then copy the installer using
|
2002-05-27 16:39:57 +04:00
|
|
|
.Ic dd :
|
|
|
|
.Pp
|
|
|
|
.Dl Ic "dd if=sysinst.fs of=/dev/rsd0b"
|
|
|
|
.Pp
|
|
|
|
where
|
|
|
|
.Li /dev/rsd0b
|
|
|
|
should be the device path of the swap partition your system
|
2002-06-29 13:46:39 +04:00
|
|
|
is configured to use.
|
|
|
|
Once the file is copied, reboot back to the booter
|
|
|
|
and use the '-b' option to make the kernel prompt for a root device.
|
|
|
|
Now enter the swap device as your root device to start the installer.
|
2002-05-27 16:39:57 +04:00
|
|
|
.Pp
|
|
|
|
.Ss2 Booting the installer on new systems.
|
|
|
|
If your system has more than 6MB RAM, you can skip directly to the section
|
|
|
|
about
|
|
|
|
.Ic loadbsd.ttp,
|
|
|
|
since the amount of RAM is enough to load the installer into.
|
|
|
|
.Pp
|
|
|
|
For new new installations on small memory systems, things are a bit more
|
2002-06-29 13:46:39 +04:00
|
|
|
complicated.
|
|
|
|
The easiest way is to mark an AHDI partition as id 'SWP'.
|
|
|
|
You can either accomplish this with HDdriver or use the
|
2002-05-27 16:39:57 +04:00
|
|
|
.Ic chg_pid.ttp
|
2002-06-29 13:46:39 +04:00
|
|
|
program supplied on the bootfloppy.
|
|
|
|
To use the fifth partition of your
|
2002-05-27 16:39:57 +04:00
|
|
|
first drive to a swap partition, do the following:
|
2002-06-29 13:46:39 +04:00
|
|
|
.Pp
|
2002-05-27 16:39:57 +04:00
|
|
|
.Dl Ic "chg_pid -w 0 4 SWP"
|
|
|
|
.Pp
|
|
|
|
As you can see, both the drive and the partition numbers are zero
|
|
|
|
based.
|
|
|
|
.Pp
|
|
|
|
When a swap partition has been created, you can transfer the installer using
|
|
|
|
the
|
|
|
|
.Ic file2swp.ttp
|
2002-06-29 13:46:39 +04:00
|
|
|
command, which is also on the bootfloppy.
|
|
|
|
This program copies a (gzipped)file
|
|
|
|
to the first AHDI partition with id 'SWP' on the designated disk.
|
|
|
|
To copy sysinst.fs to your first SCSI disk, use:
|
2002-05-27 16:39:57 +04:00
|
|
|
.Pp
|
|
|
|
.Dl Ic "file2swp -w -f sysinst.fs s0"
|
|
|
|
.Pp
|
|
|
|
Note that
|
|
|
|
.Ic file2swp
|
|
|
|
automatically detects a gzipped file, there is no need for a .gz extension.
|
|
|
|
.Ss2 Using loadbsd.ttp
|
|
|
|
To start the installer, you first need to load a
|
|
|
|
.Nx
|
2002-06-29 13:46:39 +04:00
|
|
|
kernel.
|
|
|
|
This can be done in a couple ways, both of which currently require
|
2002-05-27 16:39:57 +04:00
|
|
|
.Tn GEMDOS .
|
|
|
|
You need either the bootfloppy provided in the
|
|
|
|
distribution or you can copy the
|
|
|
|
.Ic loadbsd.ttp
|
|
|
|
program and
|
|
|
|
kernel to a boot floppy disk (1.44 MB needed) or put them on a
|
|
|
|
.Tn TOS
|
2002-06-29 13:46:39 +04:00
|
|
|
partition.
|
|
|
|
Select the loadbsd program and it will ask for parameters, supply:
|
2002-05-27 16:39:57 +04:00
|
|
|
.Sq Ic "-b netbsd"
|
|
|
|
(or whatever name
|
2002-06-29 13:46:39 +04:00
|
|
|
you copied the kernel to).
|
|
|
|
You can, of course, also run it from the shell command-line in
|
2002-05-27 16:39:57 +04:00
|
|
|
.Tn MiNT :
|
|
|
|
.Pp
|
|
|
|
.Dl Ic "loadbsd -b a:/netbsd"
|
|
|
|
.Pp
|
|
|
|
You should see the screen clear and some information about
|
2002-06-29 13:46:39 +04:00
|
|
|
your system as the kernel configures the hardware.
|
|
|
|
Then you will be prompted for a root device.
|
|
|
|
If you copied the installer to a swap partition, as explained above,
|
|
|
|
you have to enter the swap partition as the boot device.
|
|
|
|
When you used your first SCSI disk, this will be
|
2002-05-27 16:39:57 +04:00
|
|
|
.Ic sd0b.
|
|
|
|
On the first IDE drive it would be
|
|
|
|
.Ic wd0b.
|
|
|
|
.Pp
|
|
|
|
When you didn't copy the installer to swap, need to use the RAMdisk, so
|
|
|
|
remove the
|
|
|
|
.Tn GEMDOS
|
|
|
|
kernel boot floppy from the drive if present and insert the
|
|
|
|
.Nx
|
2002-06-29 13:46:39 +04:00
|
|
|
install floppy 1.
|
2003-02-12 11:18:22 +03:00
|
|
|
Now enter the name of the boot device depending on the floppy type you have
|
|
|
|
inserted. Use:
|
|
|
|
.(bullet
|
|
|
|
.Ic md0a
|
|
|
|
for the old installer (1MB filesystem) on 720KB floppy's.
|
|
|
|
.It
|
|
|
|
.Ic md1a
|
|
|
|
for the sysinst installer on 720KB floppy's.
|
|
|
|
.It
|
|
|
|
.Ic md2a
|
|
|
|
for the sysinst installer on 1.44MB floppy's.
|
|
|
|
.bullet)
|
|
|
|
The kernel will load the install file system into RAMdisk.
|
2002-06-29 13:46:39 +04:00
|
|
|
While the kernel is loading, it will show a
|
2002-05-27 16:39:57 +04:00
|
|
|
.Sq \&.
|
2002-06-29 13:46:39 +04:00
|
|
|
for each track loaded.
|
|
|
|
After loading 80 tracks, it will ask you to insert the next floppy.
|
|
|
|
At this time, insert the
|
2002-05-27 16:39:57 +04:00
|
|
|
.Nx
|
2002-06-29 13:46:39 +04:00
|
|
|
install floppy 2 and press any key.
|
|
|
|
The kernel continues loading another 40 tracks before it continues to boot.
|