最初に戻る | 情報源 | 材料 | NFS | 設定・作業 | その他 | sparc の例

Installing from NFS:

Before you can install from NFS, you must have already configured
your NFS server to support your machine as a diskless client.
Instructions for configuring the server are found in the section
entitled "Getting the NetBSD System onto Useful Media" above.

First, at the Sun PROM monitor prompt, enter a boot command
using the network interface as the boot device.  On desktop
machines this is "le", and "ie" on the others.  Examples:

        >b le() -s
        >b ie() -s

After the boot program loads the RAMDISK kernel, you should
see the welcome screen as shown in the "tape boot" section
above.  You must configure the network interface before you
can use any network resources.  For example the command:

        ssh> ifconfig le0 inet 192.233.20.198 up

will bring up the network interface with that address.  The next
step is to copy the miniroot from your server.  This can be done
using either NFS or remote shell.  (In the examples that follow,
the server has IP address 192.233.20.195)  You may then need to
add a default route if the server is on a different subnet:

        ssh> route add default 192.233.20.255  1

You can look at the route table using:

        ssh> route show

Now mount the NFS filesystem containing the miniroot image:

        ssh> mount -r 192.233.20.195:/server/path /mnt

The procedure is simpler if you have space for an expanded
(not compressed) copy of the miniroot image.  In that case:

        ssh> dd if=/mnt/miniroot of=/dev/rsd0b bs=8k

Otherwise, you will need to use "zcat" to expand the miniroot
image while copying.  This is tricky because the "ssh" program
(small shell) does not handle sh(1) pipeline syntax.  Instead,
you first run the reader in the background with its input set
to /dev/pipe and then run the other program in the foreground
with its output to /dev/pipe.  The result looks like this:

        ssh> run -bg dd if=/dev/pipe of=/dev/rsd0b obs=8k
        ssh> run -o /dev/pipe zcat /mnt/install/miniroot.gz

To load the miniroot using rsh to the server, you would use a
pair of commands similar to the above.  Here is another example:

        ssh> run -b dd if=/dev/pipe of=/dev/rsd0b obs=8k
        ssh> run -o /dev/pipe rsh 192.233.20.195 zcat miniroot.gz