.\" $NetBSD: xfer,v 1.17 2024/11/19 03:28:27 kalvisd Exp $ .\" .\" Copyright (c) 1999-2004 The NetBSD Foundation, Inc. .\" 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. .\" . .\" ---------- MD description about installation medium . Installing on a .Sq bare machine requires some bootable device; either a tape, CD-ROM or floppy drive or a NFS server together with a machine that can act as a MOP loader, such as another machine running .Nx . .Nx*M can use both BOOTP/DHCP and BOOTPARAMS for netboot installations. .Pp . .\" --------- MI instructions for getting distribution off installation medium . .so ../common/xfer . .\" ---------- MD instructions on setting up boot media . .Ss2 Creating boot tapes . Fetch the bootable bootfs image from .Pp .Dl Pa \&.../NetBSD-\*V/\*M/installation/bootfs/boot.fs .Pp and write it on the beginning of the tape. Under .Nx this is done (for MSCP tape, with SCSI tape the name is .Li nrst0 ) via: .Pp .Dl # Ic "mt -f /dev/nrmt0 rewind" .Dl # Ic "dd if=boot.fs of=/dev/nrmt0 conv=osync" .Dl # Ic "mt -f /dev/nrmt0 rewoffl" .Pp Under .Tn Ultrix the tape name is different: .Pp .Dl # Ic "mt -f /dev/rmt0h rewind" .Dl # Ic "dd if=boot.fs of=/dev/rmt0h conv=osync" .Dl # Ic "mt -f /dev/rmt0h rewoffl" .Pp Of course, if you have a tape unit other than unit 0 you have to use the corresponding unit number. .Pp If you wish to install the sets from tape you will need to download the *.\*[setsuffix] files from .Pp .Dl Pa \&.../NetBSD-\*V/\*M/binary/sets Ns Ar {50,33} .Pp (if your disk is less than 200 MB you will probably want to exclude the X sets) and then before the .Ic "mt ... rewoffl" run .Pp .Dl # Ic "tar -cvf /dev/nrmt0 *.\*[setsuffix]" .Pp When you have booted the bootfs and completed the disk partitioning you will be prompted to .Ic select medium for install. At this point you will need to press .Key CONTROL-Z to suspend the install tool, then .Pp .Dl # Ic "cd /mnt" .Dl # Ic "mt -f /dev/nrmt0 rewind" .Dl # Ic "mt -f /dev/nrmt0 fsf" .Dl # Ic "tar -xvf /dev/nrmt0" .Dl # Ic "fg" .Pp then select .Dq "install from local dir" and give .Pa /mnt . .(Note If your disk is small you will need to be careful about filling it up. .Note) .Pp If you are using any other OS to create bootable tapes, remember that the blocksize .Em must be 512 for the file to be bootable! Otherwise it just won't work. . .Ss2 Creating boot floppies . Fetch the bootable bootfs image from .Pp .Dl Pa \&.../NetBSD-\*V/\*M/installation/bootfs/boot.fs .Pp and .Ic gunzip it. It is a 1.2MB bootable image that will boot from any floppy of size 1.2MB and bigger. Note that you .Em cannot install from RX50 floppies due to the small size. This may change in the future. .Pp All floppies except RX50 use a standardized format for storing data so writing the bootfs to the floppy can be done on any PC. From .Tn MS-DOS the preferred way to do this is using .Ic rawrite.exe . . .Ss2 Booting from NFS server . All VAXen that can boot over network use MOP, a .Tn DEC protocol. To be able to use MOP, a MOP daemon must be present on one of the machines on the local network. The boot principle is: .(bullet -compact -offset indent The VAX broadcasts a request to load an image. .It A mopd answers and sends the boot program to the VAX. .It The boot program does rarp/bootp requests, mounts the root file system and loads the kernel. .It The kernel is loaded and starts executing. .bullet) .Pp If your machine has a disk and network connection, it may be convenient for you to install .Nx over the network. This involves temporarily booting your machine over NFS, just long enough so you can initialize its disk. This method requires that you have access to an NFS server on your network which you can configure to support diskless boot for your machine. Configuring the NFS server is normally a task for a system administrator, and is not trivial. .Pp If you are using a .Nx system as the boot-server, have a look at the .Xr diskless 8 manual page for guidelines on how to proceed with this. If the server runs another operating system, consult the documentation that came with it. (For example .Xr add_client 8 on .Tn SunOS . ) .Pp You also must install a MOP loader. If you are booting from another .Nx machine, the MOP daemons are included in the distribution, otherwise you may have to install a MOP loader. A loader can be found at .Lk ftp.stacken.kth.se:/pub/OS/NetBSD/mopd Fetch the latest and read the installation instructions. .Pp The boot program that should be loaded is called boot and is located in .Pp .Dl Pa \&.../NetBSD-\*V/\*M/installation/netboot/boot .Pp The kernel to load is the same kernel as the bootfs uses and can be found in .Pp .Dl Pa \&.../NetBSD-\*V/\*M/installation/netboot/netbsd.ram.gz .Pp From the install program started in the kernel the rest of the system can be installed. .Pp The boot program is also available as a MOP image, in .Dl Pa \&.../NetBSD-\*V/\*M/installation/netboot/boot.mop .Pp Use this version if your MOP loader cannot interpret ELF images. .Pp More details are available at .Lk https://www.NetBSD.org/docs/network/netboot/intro.vax.html and .Lk https://www.NetBSD.org/docs/network/netboot/ .Pp There is also a very good (if somewhat out of date) FAQ, describing the process of netbooting VAXen from many different OSes, at .Lk https://web.archive.org/web/20031004185104/http://world.std.com/~bdc/projects/vaxen/old/VAX-netboot-HOWTO.html