2009-04-23 05:56:48 +04:00
|
|
|
.\" $NetBSD: install,v 1.35 2009/04/23 01:56:48 snj Exp $
|
1999-01-13 10:30:01 +03:00
|
|
|
.\"
|
2002-06-29 13:33:10 +04:00
|
|
|
.\" Copyright (c) 1999-2002 The NetBSD Foundation, Inc.
|
1999-01-13 10:30:01 +03:00
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
|
|
|
|
.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
|
|
.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
|
|
.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
|
|
|
|
.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
|
|
.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
|
|
.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
|
|
.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
|
|
.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
|
|
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
.\" POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
.\"
|
|
|
|
Installing
|
|
|
|
.Nx
|
|
|
|
is a relatively complex process, but, if you have
|
1994-09-19 21:45:35 +04:00
|
|
|
this document in hand and are careful to read and remember the
|
|
|
|
information which is presented to you by the install program, it
|
|
|
|
shouldn't be too much trouble.
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
1994-09-19 21:45:35 +04:00
|
|
|
Before you begin, you must have already prepared your hard disk as
|
|
|
|
detailed in the section on preparing your system for install.
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
2000-10-29 17:08:04 +03:00
|
|
|
The following is a walk-through of the steps necessary to get
|
|
|
|
.Nx
|
2002-06-29 13:33:10 +04:00
|
|
|
installed on your hard disk.
|
|
|
|
If you wish to stop the installation, you may press
|
2000-10-29 17:08:04 +03:00
|
|
|
.Key CONTROL-C
|
|
|
|
at any prompt, but if you do, you'll have to
|
1994-09-19 21:45:35 +04:00
|
|
|
begin again from scratch.
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
|
|
|
Transfer the miniroot file system onto the hard disk partition
|
|
|
|
used by
|
|
|
|
.Nx
|
|
|
|
for swapping, as described in the "Preparing
|
|
|
|
your System for
|
|
|
|
.Nx
|
|
|
|
Installation" section above.
|
2002-08-02 18:35:49 +04:00
|
|
|
.Ss2 Booting
|
2000-10-10 16:55:15 +04:00
|
|
|
.Nx ,
|
|
|
|
with boot blocks installed
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
2002-06-29 13:33:10 +04:00
|
|
|
[This description is for V40 (OS 3.1) ROMs.
|
|
|
|
For older ROMs, there might be small differences.
|
|
|
|
Check your
|
2000-10-29 17:08:04 +03:00
|
|
|
.Tn AmigaDOS
|
|
|
|
documentation
|
1999-01-13 10:30:01 +03:00
|
|
|
to learn about the exact procedure.]
|
|
|
|
Using bootblocks may not work on some
|
2000-10-29 17:08:04 +03:00
|
|
|
systems, and may require a mountable file system on others.
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
2000-10-10 16:55:15 +04:00
|
|
|
Reboot your machine, holding down both mouse buttons if you
|
1999-01-13 10:30:01 +03:00
|
|
|
have a 2-button mouse, the outer mouse buttons if you have
|
2002-06-29 13:33:10 +04:00
|
|
|
a 3-button mouse.
|
|
|
|
On the DraCo, press the left mouse button
|
1999-01-13 10:30:01 +03:00
|
|
|
instead, when the boot screen prompts you for it.
|
|
|
|
.Pp
|
|
|
|
From the boot menu, select
|
|
|
|
.Ic Boot Options .
|
|
|
|
Select the swap partition with the miniroot, and then
|
|
|
|
.Ic ok .
|
|
|
|
Select
|
|
|
|
.Ic Boot No now .
|
|
|
|
The machine will boot the bootblock, which
|
2002-06-29 13:33:10 +04:00
|
|
|
will prompt your for a command line.
|
|
|
|
You have a few seconds time to change the default.
|
|
|
|
Entering an empty line will accept the default.
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
|
|
|
The bootblock uses command lines of the form:
|
|
|
|
.br
|
|
|
|
.Ar \ \ \ \ file Op Ar options
|
|
|
|
.br
|
|
|
|
.No where Ar file
|
|
|
|
is the kernel file name on the partition where the
|
|
|
|
boot block is on, and
|
|
|
|
.Op options
|
2002-08-02 18:35:49 +04:00
|
|
|
may contain the following:
|
2000-10-29 17:08:04 +03:00
|
|
|
.Pp
|
2002-08-02 18:35:49 +04:00
|
|
|
If you have an AGA machine, and your monitor will handle
|
|
|
|
the dblNTSC mode, you may include the
|
|
|
|
.Fl A
|
|
|
|
option to enable the dblNTSC display mode.
|
2000-10-29 17:08:04 +03:00
|
|
|
.Pp
|
2002-08-02 18:35:49 +04:00
|
|
|
If your machine has a fragmented physical memory space, as,
|
|
|
|
e.g., DraCo machines, you should add the
|
|
|
|
.Fl n2
|
|
|
|
option to enable the use of all memory segments.
|
2000-10-10 16:55:15 +04:00
|
|
|
.Ss2 Once your kernel boots
|
1999-01-13 10:30:01 +03:00
|
|
|
You should see the screen clear and some information about
|
2002-06-29 13:33:10 +04:00
|
|
|
your system as the kernel configures the hardware.
|
|
|
|
Note which hard disk device(s) are configured
|
2008-09-06 22:18:32 +04:00
|
|
|
.Pq Li sd0 , Li sd1 , No etc.
|
2002-06-29 13:33:10 +04:00
|
|
|
Then you will be prompted for a root device.
|
|
|
|
At this time type
|
2000-10-29 17:08:04 +03:00
|
|
|
.Li sd0b ,
|
1999-01-13 10:30:01 +03:00
|
|
|
where
|
2000-10-29 17:08:04 +03:00
|
|
|
.Li sd0
|
1999-01-13 10:30:01 +03:00
|
|
|
is the device which contains the swap
|
|
|
|
partition you created during the hard disk preparation.
|
2000-10-29 17:08:04 +03:00
|
|
|
When prompted for a dump device, answer
|
|
|
|
.Sq Ic none
|
|
|
|
for the install
|
2002-06-29 13:33:10 +04:00
|
|
|
(normally, you would tell it one of the swap devices).
|
|
|
|
When prompted for the root file system type, confirm
|
2000-10-29 17:08:04 +03:00
|
|
|
.Sq Ic generic ,
|
|
|
|
which will auto-detect it.
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
|
|
|
If the system should hang after entering the root device, try
|
|
|
|
again with
|
2000-10-29 17:08:04 +03:00
|
|
|
.Pp
|
2002-08-02 18:35:49 +04:00
|
|
|
.Dl Ic "netbsd -I ff -b"
|
2000-10-29 17:08:04 +03:00
|
|
|
.Pp
|
2002-08-02 18:35:49 +04:00
|
|
|
This disables synchronous transfer on all SCSI devices on the first bus.
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
2002-06-29 13:33:10 +04:00
|
|
|
The system should continue to boot.
|
|
|
|
For now ignore
|
2000-10-29 17:08:04 +03:00
|
|
|
.Dq WARNING
|
|
|
|
messages about bad dates in clocks, and a warning about
|
|
|
|
.Pa /etc/rc
|
2002-06-29 13:33:10 +04:00
|
|
|
not existing.
|
|
|
|
Eventually you will be be asked to enter the pathname of the shell, just press
|
2000-10-29 17:08:04 +03:00
|
|
|
.Key RETURN .
|
2002-06-29 13:33:10 +04:00
|
|
|
After a short while, you will be asked to select the type of your keyboard.
|
|
|
|
After
|
1999-01-13 10:30:01 +03:00
|
|
|
you have entered a valid response here, the system asks you if
|
2002-06-29 13:33:10 +04:00
|
|
|
you want to install or upgrade your system.
|
|
|
|
Since you are reading the
|
2000-10-29 17:08:04 +03:00
|
|
|
.Em install
|
|
|
|
section,
|
|
|
|
.Sq Ic i
|
|
|
|
would be the proper response here...
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
2002-06-29 13:33:10 +04:00
|
|
|
The installer starts with a nice welcome messages.
|
|
|
|
Read this message carefully, it also informs you of the risks involved
|
|
|
|
in continuing!
|
|
|
|
If you still want to go on, type
|
2000-10-29 17:08:04 +03:00
|
|
|
.Sq Ic y .
|
2002-06-29 13:33:10 +04:00
|
|
|
The installer now continues by trying to figure out your disk configuration.
|
|
|
|
When it is done, you will be prompted to
|
1999-01-13 10:30:01 +03:00
|
|
|
select a root device from the list of disks it has found.
|
|
|
|
.Pp
|
2000-10-29 17:08:04 +03:00
|
|
|
You should know at this point that the disks are
|
|
|
|
.Em not
|
2002-06-29 13:33:10 +04:00
|
|
|
numbered according to their SCSI-ID!
|
|
|
|
The
|
1999-01-13 10:30:01 +03:00
|
|
|
.Nx
|
2000-10-29 17:08:04 +03:00
|
|
|
kernel numbers the SCSI
|
2002-06-29 13:33:10 +04:00
|
|
|
drives (and other devices on the SCSI bus) sequentially as it finds them.
|
|
|
|
The drive with the lowest SCSI-ID will be called
|
2000-10-29 17:08:04 +03:00
|
|
|
.Li sd0 ,
|
|
|
|
the next one
|
|
|
|
.Li sd1 ,
|
2002-06-29 13:33:10 +04:00
|
|
|
etc.
|
2002-08-16 16:01:39 +04:00
|
|
|
Also, any ATAPI disk drives (e.g. ZIP)
|
2000-10-29 17:08:04 +03:00
|
|
|
will be configured as
|
|
|
|
.Dq SCSI
|
2002-08-16 16:01:39 +04:00
|
|
|
drives, too, and will be configured
|
2000-10-29 17:08:04 +03:00
|
|
|
before any
|
|
|
|
.Sq real
|
2002-08-16 16:01:39 +04:00
|
|
|
SCSI drives if connected to the Amiga internal port on A4000/A1200
|
|
|
|
(if any are present). Real IDE drives will be configured as
|
|
|
|
.Li wd0 ,
|
|
|
|
.Li wd1 ,
|
|
|
|
etc.
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
2000-10-10 16:55:15 +04:00
|
|
|
The installer will offer you to look at the
|
1999-07-21 15:35:27 +04:00
|
|
|
.Nx
|
2002-06-29 13:33:10 +04:00
|
|
|
disk label of the disks at this point.
|
|
|
|
You should do this, to find out
|
1999-07-21 15:35:27 +04:00
|
|
|
what partition letters the
|
|
|
|
.Nx
|
2009-04-23 05:56:48 +04:00
|
|
|
kernel assigned to the partitions you created, and as a check of whether the
|
1999-07-21 15:35:27 +04:00
|
|
|
disk number you are going to use is right.
|
|
|
|
.Pp
|
1999-01-13 10:30:01 +03:00
|
|
|
.Em you are now at the point of no return.
|
|
|
|
If you confirm that
|
2000-10-10 16:55:15 +04:00
|
|
|
you want to install
|
|
|
|
.Nx ,
|
|
|
|
your hard drive will be modified,
|
1999-01-13 10:30:01 +03:00
|
|
|
and perhaps its contents scrambled at the whim of the install
|
2002-06-29 13:33:10 +04:00
|
|
|
program.
|
|
|
|
Type
|
2000-10-29 17:08:04 +03:00
|
|
|
.Key Control-C
|
|
|
|
.Em now
|
|
|
|
if you don't want this.
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
|
|
|
At this time, you will need to tell the installer which partition
|
2002-06-29 13:33:10 +04:00
|
|
|
will be associated with the different file systems.
|
|
|
|
Normally, you'll want to add a partition for
|
2000-10-29 17:08:04 +03:00
|
|
|
.Pa /usr ,
|
|
|
|
at least.
|
2000-10-10 16:55:15 +04:00
|
|
|
.(tag Caveat:
|
|
|
|
.It Em Caveat:
|
2000-10-29 17:08:04 +03:00
|
|
|
Do not use the
|
|
|
|
.Li rsd Ns Ar N Ns Li c
|
|
|
|
or
|
|
|
|
.Li sd Ns Ar N Ns Li c
|
|
|
|
partitions for anything!
|
|
|
|
They are for access to the whole disk only and do
|
2000-01-18 00:57:14 +03:00
|
|
|
.Em not
|
1999-07-21 15:35:27 +04:00
|
|
|
correspond to any Amiga partition!
|
|
|
|
.tag)
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
2000-03-14 01:37:10 +03:00
|
|
|
The install program will now make the file systems you
|
2002-06-29 13:33:10 +04:00
|
|
|
specified.
|
|
|
|
There should be only one error per file system in
|
|
|
|
this section of the installation.
|
|
|
|
It will look like this:
|
2000-10-10 16:55:15 +04:00
|
|
|
.(disp
|
1999-01-13 10:30:01 +03:00
|
|
|
newfs: ioctl (WDINFO): Invalid argument
|
|
|
|
newfs: /dev/rsd0a: can't rewrite disk label
|
2000-10-10 16:55:15 +04:00
|
|
|
.disp)
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
2000-03-14 01:45:46 +03:00
|
|
|
If there are any others, restart from the beginning of
|
2002-06-29 13:33:10 +04:00
|
|
|
the installation process.
|
|
|
|
This error is ok as the Amiga does not write disklabels currently.
|
|
|
|
You should expect this error whenever using newfs.
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
|
|
|
The install will now ask you want to configure any network
|
2002-06-29 13:33:10 +04:00
|
|
|
information.
|
2009-04-23 05:56:48 +04:00
|
|
|
It will ask for the machine's host name, domain
|
1999-01-13 10:30:01 +03:00
|
|
|
name, and other network configuration information.
|
|
|
|
.Pp
|
2009-04-23 05:56:48 +04:00
|
|
|
Since the network configuration might have lead to additional (NFS)
|
2000-10-29 17:08:04 +03:00
|
|
|
file system entries, you get another chance to modify your fstab.
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
|
|
|
You are finally at the point where some real data will be put on
|
2002-06-29 13:33:10 +04:00
|
|
|
your freshly made file systems.
|
|
|
|
Select the device type you wish to install from and off you go....
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
|
|
|
Some notes:
|
2000-10-10 16:55:15 +04:00
|
|
|
.(bullet -offset indent
|
1999-01-13 10:30:01 +03:00
|
|
|
If you want to install from tape, please read the section
|
|
|
|
about how to create such a tape.
|
|
|
|
.It
|
|
|
|
Some tapes (e.g. Archive Viper 150) refuse to operate with
|
2000-10-29 17:08:04 +03:00
|
|
|
the default tape density
|
|
|
|
.Pq Li nrst0 .
|
|
|
|
Try
|
|
|
|
.Li nrst0h ,
|
|
|
|
.Li nrst0m ,
|
|
|
|
or
|
|
|
|
.Li nrst0l
|
|
|
|
instead.
|
1999-01-13 10:30:01 +03:00
|
|
|
.It
|
2000-10-10 16:55:15 +04:00
|
|
|
Install at least the
|
|
|
|
.Sy base
|
|
|
|
and
|
|
|
|
.Sy etc
|
|
|
|
sets.
|
1999-01-13 10:30:01 +03:00
|
|
|
.It
|
|
|
|
If you have to specify a path relative to the mount-point and
|
2000-10-10 16:55:15 +04:00
|
|
|
you need the mount-point itself, use
|
2000-10-29 17:08:04 +03:00
|
|
|
.Sq Pa \&. .
|
2000-10-10 16:55:15 +04:00
|
|
|
.bullet)
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
2002-06-29 13:33:10 +04:00
|
|
|
Next you will be asked to specify the timezone.
|
|
|
|
Just select the timezone you are in.
|
|
|
|
The installer will make the correct setup on your root file system
|
2000-10-29 17:08:04 +03:00
|
|
|
.Pq Pa / .
|
|
|
|
After the timezone-link is installed,
|
1999-01-13 10:30:01 +03:00
|
|
|
the installer will proceed by creating the device nodes on your
|
2000-10-29 17:08:04 +03:00
|
|
|
root file system under
|
|
|
|
.Pa /dev .
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
|
|
|
Be patient, this will take a while...
|
|
|
|
.Pp
|
2000-11-15 02:57:03 +03:00
|
|
|
Next, the installer will copy your keymap settings to the new system.
|
|
|
|
After this, it will copy the kernel from the installation miniroot to
|
|
|
|
the newly installed / upgraded system.
|
|
|
|
If the installed system already has a kernel, it will ask you for
|
|
|
|
confirmation.
|
2002-06-29 13:33:10 +04:00
|
|
|
.Pp If you are doing an upgrade and you did not install the
|
2000-11-15 02:57:03 +03:00
|
|
|
kern.tgz distribution set, this is an old kernel, and you should answer
|
|
|
|
"y" to install a working (although restricted) INSTALL kernel.
|
|
|
|
.Pp
|
|
|
|
If you did install the kern.tgz kernel, you normally should answer "n".
|
|
|
|
.Pp
|
2009-04-23 05:56:48 +04:00
|
|
|
Finally, the installer asks you if you want to install the bootblock
|
2002-06-29 13:33:10 +04:00
|
|
|
code on your root disk.
|
|
|
|
This is a matter of personal choice and can also be done from a running
|
1999-01-13 10:30:01 +03:00
|
|
|
.Nx
|
2002-06-29 13:33:10 +04:00
|
|
|
system.
|
|
|
|
See the
|
2000-10-29 17:08:04 +03:00
|
|
|
.Xr installboot 8
|
1999-01-13 10:30:01 +03:00
|
|
|
manual page about how to do this.
|
|
|
|
.Pp
|
|
|
|
Once the installer is done, halt the system with the
|
2000-10-29 17:08:04 +03:00
|
|
|
.Ic halt
|
|
|
|
command
|
2000-10-10 16:55:15 +04:00
|
|
|
(wait for
|
1999-01-13 10:30:01 +03:00
|
|
|
.Li halted
|
2002-06-29 13:33:10 +04:00
|
|
|
to be displayed) and reboot.
|
|
|
|
Then again boot
|
1999-01-13 10:30:01 +03:00
|
|
|
.Nx
|
2002-08-02 18:35:49 +04:00
|
|
|
this time selecting the root partition
|
2000-10-29 17:08:04 +03:00
|
|
|
.Pq Pa /
|
|
|
|
from the boot menu, and tell it to boot
|
|
|
|
.Pp
|
|
|
|
.Dl "netbsd -s"
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
2002-06-29 13:33:10 +04:00
|
|
|
You need to do your final tweaks now.
|
|
|
|
First mount your file systems like so:
|
2000-10-29 17:08:04 +03:00
|
|
|
.Pp
|
|
|
|
.Dl Ic "mount -av"
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
2009-04-23 05:56:48 +04:00
|
|
|
Your system is now complete, and it is up to you to configure the rest.
|
|
|
|
You may want to start by looking at
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pa /etc/rc.conf .
|
|
|
|
.Pp
|
1994-09-19 21:45:35 +04:00
|
|
|
Once you are done with the rest of configuration unmount your file
|
|
|
|
systems and halt your system, then reboot:
|
2000-10-29 17:08:04 +03:00
|
|
|
.Pp
|
|
|
|
.Dl # Ic "cd /"
|
|
|
|
.Dl # Ic "umount -av"
|
|
|
|
.Dl # Ic "halt"
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
1994-09-19 21:45:35 +04:00
|
|
|
Finally you can now boot your system and it will be completely
|
|
|
|
functional:
|
2000-10-29 17:08:04 +03:00
|
|
|
.Pp
|
2002-08-02 18:35:49 +04:00
|
|
|
.Dl Ic "netbsd"
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
1994-09-19 21:45:35 +04:00
|
|
|
When it boots off of the hard drive, you will have a complete
|
1999-01-13 10:30:01 +03:00
|
|
|
.Nx
|
2000-10-10 16:55:15 +04:00
|
|
|
system!
|
2002-06-29 13:33:10 +04:00
|
|
|
.Em Congratulations!
|
|
|
|
(You really deserve them!!!)
|