2002-06-29 13:33:10 +04:00
|
|
|
.\" $NetBSD: prep,v 1.26 2002/06/29 09:36:23 lukem Exp $
|
2000-10-10 16:55:15 +04:00
|
|
|
.
|
2000-10-29 17:08:04 +03:00
|
|
|
You will need an
|
|
|
|
.Tn AmigaDOS
|
|
|
|
hard drive prep tool to prepare your hard
|
2000-10-10 16:55:15 +04:00
|
|
|
drives for use with
|
|
|
|
.Nx*M .
|
|
|
|
HDToolBox is provided with the
|
1994-09-19 21:45:35 +04:00
|
|
|
system software and on floppy installation disks since Release 2.0
|
2000-10-29 17:08:04 +03:00
|
|
|
of
|
|
|
|
.Tn AmigaDOS ,
|
|
|
|
so we will provide instructions for its use.
|
1999-06-29 19:44:34 +04:00
|
|
|
.Pp
|
2000-10-10 16:55:15 +04:00
|
|
|
Note that
|
|
|
|
.Nx
|
|
|
|
can't currently be installed on disks with a sector
|
2000-10-29 17:08:04 +03:00
|
|
|
size other than 512 bytes (e.g.,
|
|
|
|
.Dq 640 MB
|
2002-06-29 13:33:10 +04:00
|
|
|
90mm M-O media).
|
|
|
|
You can, however, mount ADOSFS partitions on such M-O's.
|
1999-01-13 10:30:01 +03:00
|
|
|
.
|
2000-10-10 16:55:15 +04:00
|
|
|
.Ss2 Preparing your hard disk with HDToolBox
|
1999-01-13 10:30:01 +03:00
|
|
|
.
|
|
|
|
.Pp
|
|
|
|
A full explanation of HDToolBox can be found with your
|
2000-10-29 17:08:04 +03:00
|
|
|
.Tn AmigaDOS
|
|
|
|
manuals and is beyond the scope of this document.
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
|
|
|
The first time you partition a drive, you need to set its drive
|
2002-06-29 13:33:10 +04:00
|
|
|
type so that you have working geometry parameters.
|
|
|
|
To do this you enter the
|
2000-10-29 17:08:04 +03:00
|
|
|
.Dq Change drive type
|
|
|
|
menu, and either use
|
|
|
|
.Dq read parameters from drive
|
|
|
|
or set them manually.
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
2002-06-29 13:33:10 +04:00
|
|
|
Note you will be modifying your HD's.
|
|
|
|
If you mess something up here you could lose everything on all the
|
|
|
|
drives that you configure.
|
|
|
|
It is therefore advised that you:
|
2000-10-10 16:55:15 +04:00
|
|
|
.(enum -offset indent
|
2002-06-29 13:33:10 +04:00
|
|
|
Write down your current configurations.
|
|
|
|
Do this by examining each partition on the drive and the
|
1999-01-13 10:30:01 +03:00
|
|
|
drives parameters (from Change drive type.)
|
|
|
|
.It
|
|
|
|
Back up the partitions you are keeping.
|
2000-10-10 16:55:15 +04:00
|
|
|
.enum)
|
|
|
|
.Pp
|
1999-01-13 10:30:01 +03:00
|
|
|
What you need to do is partition your drives; creating at least
|
2000-10-29 17:08:04 +03:00
|
|
|
root, swap and
|
|
|
|
.Pa /usr
|
|
|
|
partitions and possibly at least one more for
|
|
|
|
.Pa /usr/local
|
|
|
|
if you have the space.
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
2002-06-29 13:33:10 +04:00
|
|
|
This should be done as the HDToolBox manual describes.
|
|
|
|
One thing to note is that if you are not using a Commodore controller you
|
1999-01-13 10:30:01 +03:00
|
|
|
will need to specify the device your SCSI controller uses, e.g.
|
|
|
|
if you have a Warp Engine you would:
|
2000-11-08 01:10:17 +03:00
|
|
|
.(tag From\ cli -offset indent
|
2000-10-10 16:55:15 +04:00
|
|
|
.It From cli
|
2000-10-29 17:08:04 +03:00
|
|
|
.Dl Ic "hdtoolbox warpdrive.device"
|
2000-10-10 16:55:15 +04:00
|
|
|
.It From wb
|
|
|
|
Set the tooltype
|
2000-10-29 17:08:04 +03:00
|
|
|
.Pp
|
|
|
|
.Dl Ic "SCSI_DEVICE_NAME=warpdrive.device"
|
2000-10-10 16:55:15 +04:00
|
|
|
.tag)
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
|
|
|
The important things you need to do above and beyond normal
|
|
|
|
partitioning includes (from Partition Drive section):
|
2000-10-10 16:55:15 +04:00
|
|
|
.(enum
|
|
|
|
Marking all
|
|
|
|
.Nx
|
|
|
|
partitions as non-bootable, with
|
2000-10-29 17:08:04 +03:00
|
|
|
two exceptions: the root partition
|
|
|
|
.Pq Pa / ,
|
|
|
|
if you want to boot
|
2000-10-10 16:55:15 +04:00
|
|
|
.Nx
|
|
|
|
directly, or the swap partition, if you want
|
1999-01-13 10:30:01 +03:00
|
|
|
to boot the installation miniroot directly.
|
|
|
|
.It
|
2000-10-10 16:55:15 +04:00
|
|
|
Changing the file system parameters of the partitions to
|
|
|
|
.Nx
|
2002-06-29 13:33:10 +04:00
|
|
|
ones.
|
|
|
|
This must be done from the partitioning section and
|
2000-10-29 17:08:04 +03:00
|
|
|
.Dq Advanced options
|
|
|
|
must
|
1999-01-13 10:30:01 +03:00
|
|
|
be enabled.
|
2000-10-10 16:55:15 +04:00
|
|
|
.enum)
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
2000-10-10 16:55:15 +04:00
|
|
|
To make the needed changes:
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
2000-10-10 16:55:15 +04:00
|
|
|
.(enum -compact -offset indent
|
2000-10-29 17:08:04 +03:00
|
|
|
Click the
|
|
|
|
.Dq Adv. Options
|
|
|
|
button
|
1999-01-13 10:30:01 +03:00
|
|
|
.It
|
2000-10-29 17:08:04 +03:00
|
|
|
Click the
|
|
|
|
.Dq Change file system
|
|
|
|
button
|
1999-01-13 10:30:01 +03:00
|
|
|
.It
|
2000-10-29 17:08:04 +03:00
|
|
|
Choose
|
|
|
|
.Dq Custom File System
|
1999-01-13 10:30:01 +03:00
|
|
|
.It
|
2000-10-29 17:08:04 +03:00
|
|
|
Turn off
|
|
|
|
.Dq Automount
|
|
|
|
if on.
|
1999-01-13 10:30:01 +03:00
|
|
|
.It
|
|
|
|
Set the dostype to one of these three choices:
|
2000-10-10 16:55:15 +04:00
|
|
|
.(disp
|
2001-02-11 14:30:54 +03:00
|
|
|
root partition : 0x4e425207 (NBR\\007)
|
|
|
|
swap partition : 0x4e425301 (NBS\\001)
|
|
|
|
other partitions: 0x4e425507 (NBU\\007)
|
2000-10-10 16:55:15 +04:00
|
|
|
.disp)
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
2000-10-29 17:08:04 +03:00
|
|
|
Here
|
|
|
|
.Sq Li other
|
|
|
|
refers to other partitions you will
|
2000-10-10 16:55:15 +04:00
|
|
|
format for reading and writing under
|
|
|
|
.Nx
|
|
|
|
(e.g.
|
|
|
|
.Pa /usr )
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
2000-10-29 17:08:04 +03:00
|
|
|
Make sure you press
|
|
|
|
.Key RETURN
|
|
|
|
to enter this value as some versions of HDToolBox will forget your entry
|
1999-01-13 10:30:01 +03:00
|
|
|
if you don't.
|
|
|
|
.It
|
|
|
|
Turn custom boot code off
|
|
|
|
.It
|
|
|
|
Set Reserved Blocks start and end to 0.
|
|
|
|
.It
|
|
|
|
Click Ok.
|
2000-10-10 16:55:15 +04:00
|
|
|
.enum)
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
2000-10-29 17:08:04 +03:00
|
|
|
On the root
|
|
|
|
.Pq Pa /
|
|
|
|
(and, for installation, swap) partition,
|
1999-01-13 10:30:01 +03:00
|
|
|
set instead this:
|
|
|
|
.Pp
|
2000-10-10 16:55:15 +04:00
|
|
|
.(enum -compact -offset indent
|
1999-01-13 10:30:01 +03:00
|
|
|
Turn custom boot code on
|
|
|
|
.It
|
|
|
|
Set Reserved Blocks start and end to 0.
|
|
|
|
.It
|
1999-07-21 15:25:23 +04:00
|
|
|
Set Number of Custom Boot Blocks to 16.
|
1999-01-13 10:30:01 +03:00
|
|
|
.It
|
|
|
|
Set Automount This Partition on
|
|
|
|
.It
|
|
|
|
Click Ok.
|
|
|
|
.Pp
|
2000-10-10 16:55:15 +04:00
|
|
|
Mask and maxtransfer are not used with
|
|
|
|
.Nx .
|
|
|
|
.enum)
|
|
|
|
.(tag Caveat:
|
|
|
|
.It Em Caveat:
|
1999-02-19 18:01:26 +03:00
|
|
|
The swap (for installation) and the root partition (if you plan to
|
2000-10-29 17:08:04 +03:00
|
|
|
use the bootblocks)
|
|
|
|
.Em "must be within the first"
|
|
|
|
4 gigabytes of the disk!
|
1999-02-19 18:01:26 +03:00
|
|
|
The reason for the former is that xstreamtodev uses trackdisk.device
|
2000-10-10 16:55:15 +04:00
|
|
|
compatible I/O-calls, the reason for the latter is that the bootblock
|
1999-02-19 18:01:26 +03:00
|
|
|
gets a 32bit partition offset from the operating system.
|
|
|
|
.tag)
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
2000-10-10 16:55:15 +04:00
|
|
|
Once this is done
|
|
|
|
.Nx*M
|
|
|
|
will be able to recognize your
|
1999-01-13 10:30:01 +03:00
|
|
|
disks and which partitions it should use.
|
|
|
|
.
|
2000-10-10 16:55:15 +04:00
|
|
|
.Ss2 Transferring the miniroot file system
|
1999-01-13 10:30:01 +03:00
|
|
|
.
|
2000-10-10 16:55:15 +04:00
|
|
|
The
|
|
|
|
.Nx*M
|
2000-10-29 17:08:04 +03:00
|
|
|
installation or upgrade now uses a
|
|
|
|
.Em miniroot
|
|
|
|
file system which is installed on the partition used by
|
|
|
|
.Nx
|
2002-06-29 13:33:10 +04:00
|
|
|
for swapping.
|
|
|
|
This removes the requirement of using a floppy disk for the
|
|
|
|
file system used by the installation or upgrade process.
|
|
|
|
It also allows more utilities to be present on the file system
|
|
|
|
than would be available when using an 880 KB floppy disk.
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
2000-10-10 16:55:15 +04:00
|
|
|
Once the hard disk has been prepared for
|
|
|
|
.Nx ,
|
2000-10-29 17:08:04 +03:00
|
|
|
the miniroot file system
|
|
|
|
.Pq Pa miniroot.fs
|
|
|
|
is transferred to the swap
|
1999-01-13 10:30:01 +03:00
|
|
|
partition configured during the hard disk prep (or the existing
|
2002-06-29 13:33:10 +04:00
|
|
|
swap partition in the case of an upgrade).
|
|
|
|
The xstreamtodev utility provided in the
|
2000-10-29 17:08:04 +03:00
|
|
|
.Pa \*M/installation/misc
|
|
|
|
directory can
|
|
|
|
be used on
|
|
|
|
.Tn AmigaDOS
|
|
|
|
to transfer the file system for either a new
|
2002-06-29 13:33:10 +04:00
|
|
|
installation or an upgrade.
|
|
|
|
The file system can also be transferred on an existing
|
2000-10-10 16:55:15 +04:00
|
|
|
.Nx
|
2002-06-29 13:33:10 +04:00
|
|
|
system for an update by using dd.
|
|
|
|
This should only be done after booting
|
2000-10-29 17:08:04 +03:00
|
|
|
.Nx
|
2002-06-29 13:33:10 +04:00
|
|
|
into single-user state.
|
|
|
|
It may also be possible to shutdown to single-user, providing that
|
|
|
|
the single-user state processes are not using the swap partition.
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
2000-10-29 17:08:04 +03:00
|
|
|
On
|
|
|
|
.Tn AmigaDOS ,
|
|
|
|
the command:
|
|
|
|
.Pp
|
|
|
|
.Dl Ic "xstreamtodev --input=miniroot.fs --rdb-name=\*<swap partition\*>"
|
|
|
|
.Pp
|
|
|
|
where \*<swap partition\*> is the name you gave to the
|
|
|
|
.Nx
|
2002-06-29 13:33:10 +04:00
|
|
|
partition to be used for swapping.
|
|
|
|
If
|
2000-10-29 17:08:04 +03:00
|
|
|
.Ic xstreamtodev
|
|
|
|
is unable
|
1999-01-13 10:30:01 +03:00
|
|
|
to determine the SCSI driver device name or the unit number
|
|
|
|
of the specified partition, you may also need to include the
|
|
|
|
option
|
2000-10-29 17:08:04 +03:00
|
|
|
.Pp
|
|
|
|
.Dl Ic --device=\*<driver.name\*>
|
|
|
|
.Pp
|
1999-01-13 10:30:01 +03:00
|
|
|
and/or
|
2000-10-29 17:08:04 +03:00
|
|
|
.Pp
|
|
|
|
.Dl Ic --unit=\*<SCSI unit number\*>
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
2000-10-10 16:55:15 +04:00
|
|
|
To transfer the miniroot using
|
|
|
|
.Nx ,
|
|
|
|
you should be booted up
|
|
|
|
in single user state on the current
|
|
|
|
.Nx
|
|
|
|
system, or use the
|
2000-10-29 17:08:04 +03:00
|
|
|
.Ic shutdown now
|
|
|
|
command to shutdown to single-user state.
|
|
|
|
Then copy the miniroot using
|
|
|
|
.Ic dd :
|
|
|
|
.Pp
|
|
|
|
.Dl Ic "dd if=miniroot.fs of=/dev/rsd0b"
|
|
|
|
.Pp
|
1999-01-13 10:30:01 +03:00
|
|
|
where
|
2000-10-29 17:08:04 +03:00
|
|
|
.Li /dev/rsd0b
|
1999-01-13 10:30:01 +03:00
|
|
|
should be the device path of the swap partition
|
2002-06-29 13:33:10 +04:00
|
|
|
your system is configured to use.
|
|
|
|
Once the file is copied, reboot back to
|
2000-10-29 17:08:04 +03:00
|
|
|
.Tn AmigaDOS
|
|
|
|
to boot the upgrade kernel.
|
2000-10-10 16:55:15 +04:00
|
|
|
.(tag Caveat:
|
|
|
|
.It Em Caveat:
|
1999-01-13 10:30:01 +03:00
|
|
|
Once you have started installation, if you abort it
|
2000-10-29 17:08:04 +03:00
|
|
|
and want to retry you must reinstall the
|
|
|
|
.Pa miniroot.fs
|
|
|
|
on the swap partition.
|
1999-01-13 10:30:01 +03:00
|
|
|
.tag)
|