2000-10-29 17:08:04 +03:00
|
|
|
.\" $NetBSD: install,v 1.7 2000/10/29 14:08:06 lukem Exp $
|
1999-01-13 10:30:01 +03:00
|
|
|
.\"
|
2000-10-10 16:55:15 +04:00
|
|
|
.\" Copyright (c) 1999, 2000 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.
|
|
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
|
|
.\" must display the following acknowledgement:
|
|
|
|
.\" This product includes software developed by the NetBSD
|
|
|
|
.\" Foundation, Inc. and its contributors.
|
|
|
|
.\" 4. Neither the name of The NetBSD Foundation nor the names of its
|
|
|
|
.\" contributors may be used to endorse or promote products derived
|
|
|
|
.\" from this software without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" 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.
|
|
|
|
.\"
|
|
|
|
The miniroot's install program is very simple to use. It will guide
|
|
|
|
you through the entire process, and is well automated. Additional
|
1995-11-17 09:54:39 +03:00
|
|
|
improvements are planned for future releases.
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
1995-11-17 09:54:39 +03:00
|
|
|
The miniroot's install program will:
|
2000-10-10 16:55:15 +04:00
|
|
|
.(enum
|
1999-01-13 10:30:01 +03:00
|
|
|
Allow you to place disklabels on additional disks.
|
|
|
|
Note that partition sizes and offsets are expressed
|
|
|
|
in sectors. When you fill out the disklabel, you will
|
2000-10-29 17:08:04 +03:00
|
|
|
need to specify partition types and file system parameters.
|
2000-03-14 01:37:10 +03:00
|
|
|
If you're unsure what these values should be, use the
|
1999-01-13 10:30:01 +03:00
|
|
|
following:
|
2000-10-10 16:55:15 +04:00
|
|
|
.(disp
|
1999-01-13 10:30:01 +03:00
|
|
|
fstype: 4.2BSD
|
|
|
|
fsize: 1024
|
|
|
|
bsize: 4096
|
|
|
|
cpg: 16
|
2000-10-10 16:55:15 +04:00
|
|
|
.disp)
|
|
|
|
.Pp
|
1999-01-13 10:30:01 +03:00
|
|
|
If the partition will be a swap partition, use the following:
|
2000-10-10 16:55:15 +04:00
|
|
|
.(disp
|
1999-01-13 10:30:01 +03:00
|
|
|
fstype: swap
|
|
|
|
fsize: 0 (or blank)
|
|
|
|
bsize: 0 (or blank)
|
|
|
|
cpg: 0 (or blank)
|
2000-10-10 16:55:15 +04:00
|
|
|
.disp)
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
|
|
|
You will also need to specify the number of partitions.
|
2000-10-29 17:08:04 +03:00
|
|
|
The number of partitions is determined by the
|
|
|
|
.Sq index
|
|
|
|
of
|
|
|
|
the last partition letter, where
|
|
|
|
.Li a
|
|
|
|
=
|
|
|
|
.Li 1 ,
|
|
|
|
.Li b
|
|
|
|
=
|
|
|
|
.Li 2 ,
|
|
|
|
etc.
|
|
|
|
Therefore, if the last filled partition is partition
|
|
|
|
.Sq Li g ,
|
1999-01-13 10:30:01 +03:00
|
|
|
there are 7 partitions. Any partitions with size of 0
|
|
|
|
may be removed from the list.
|
|
|
|
.Pp
|
2000-10-29 17:08:04 +03:00
|
|
|
If the disk is the boot disk, you
|
|
|
|
.Em must
|
|
|
|
offset the root partition
|
|
|
|
.Pq Pa /
|
|
|
|
.Pq Sq Li a
|
|
|
|
one cylinder, as the \*M boot code
|
1999-01-13 10:30:01 +03:00
|
|
|
if large enough to spill past the label area. In this case,
|
2000-10-29 17:08:04 +03:00
|
|
|
the
|
|
|
|
.Sq Li c
|
|
|
|
partition must be fstype
|
|
|
|
.Li boot .
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
2000-10-29 17:08:04 +03:00
|
|
|
Anything after a
|
|
|
|
.Sq Li #
|
|
|
|
is a comment.
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
|
|
|
The following is an example disklabel partition map:
|
2000-10-10 16:55:15 +04:00
|
|
|
.(disp
|
1995-11-17 09:54:39 +03:00
|
|
|
7 partitions:
|
2000-10-10 16:55:15 +04:00
|
|
|
# size offset fstype [fsize bsize cpg]
|
1999-01-13 10:30:01 +03:00
|
|
|
a: 30912 448 4.2BSD 1024 8192 16 # (Cyl. 1 - 69)
|
|
|
|
b: 130816 31360 swap # (Cyl. 70 - 361)
|
|
|
|
c: 1296512 0 boot # (Cyl. 0 - 2893)
|
|
|
|
e: 81984 162176 4.2BSD 1024 8192 16 # (Cyl. 362 - 544)
|
|
|
|
f: 102592 244160 4.2BSD 1024 4096 16 # (Cyl. 545 - 773)
|
|
|
|
g: 949760 346752 4.2BSD 1024 8192 16 # (Cyl. 774 - 2893)
|
2000-10-10 16:55:15 +04:00
|
|
|
.disp)
|
1999-01-13 10:30:01 +03:00
|
|
|
.It
|
2000-10-29 17:08:04 +03:00
|
|
|
Create file systems on target partitions.
|
1999-01-13 10:30:01 +03:00
|
|
|
.It
|
|
|
|
Allow you to set up your system's network configuration.
|
|
|
|
Remember to specify host names without the domain name
|
2000-10-29 17:08:04 +03:00
|
|
|
appended to the end. For example use
|
|
|
|
.Li foo
|
|
|
|
instead of
|
|
|
|
.Li foo.bar.org .
|
|
|
|
If, during the process of configuring
|
1999-01-13 10:30:01 +03:00
|
|
|
the network interfaces, you make a mistake, you will
|
|
|
|
be able to re-configure that interface by simply selecting
|
|
|
|
it for configuration again.
|
|
|
|
.It
|
2000-10-29 17:08:04 +03:00
|
|
|
Mount target file systems. You will be given the opportunity
|
1999-01-13 10:30:01 +03:00
|
|
|
to manually edit the resulting
|
|
|
|
.Pa /etc/fstab .
|
|
|
|
.It
|
|
|
|
Extract binary sets from the media of your choice.
|
|
|
|
.It
|
|
|
|
Copy configuration information gathered during the
|
2000-10-29 17:08:04 +03:00
|
|
|
installation process to your root file system
|
|
|
|
.Pq Pa / .
|
1999-01-13 10:30:01 +03:00
|
|
|
.It
|
2000-10-29 17:08:04 +03:00
|
|
|
Make device nodes in your root file system under
|
|
|
|
.Pa /dev .
|
1999-01-13 10:30:01 +03:00
|
|
|
.It
|
2000-10-29 17:08:04 +03:00
|
|
|
Copy a new kernel onto your root partition
|
|
|
|
.Pq Pa / .
|
1999-01-13 10:30:01 +03:00
|
|
|
.It
|
|
|
|
Install a new boot block.
|
|
|
|
.It
|
2000-10-29 17:08:04 +03:00
|
|
|
Check your file systems for integrity.
|
2000-10-10 16:55:15 +04:00
|
|
|
.enum)
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
1995-11-17 09:54:39 +03:00
|
|
|
First-time installation on a system through a method other than the
|
|
|
|
installation program is possible, but strongly discouraged.
|