1*4675fc66Sderaadtdnl $OpenBSD: xfer,v 1.35 2020/05/17 17:04:28 deraadt Exp $ 228c23806SjasonInstallation is supported from several media types, including: 328c23806Sjason 421b44c4dSmiod CD-ROM (NOT supported if booting from floppy) 5670b07cfSmiod FFS partitions 628c23806Sjason HTTP 728c23806Sjason 80fbae784StjIf you created an OpenBSD CD-ROM (and have a CD-ROM drive), you may be 982f141c1Sjmcable to boot from it, or from the supplied bootable CD-ROM mini image. If you 105c0ab422Smiodcan boot from the CD-ROM, you are home free and can proceed to the 115c0ab422Smiodinstallation steps. If not, you will need to do some setup work to prepare 125c0ab422Smioda bootable image, either a floppy, hard drive, or compatible net boot 135c0ab422Smiodserver. 14663f2bdbSmiod 1528c23806SjasonIn addition to the bootable image, you also need to consider how to 16b2da4de7Smiodaccess the binary distribution sets to actually install the system. 17663f2bdbSmiod 180fbae784StjAlthough you can access the distribution sets directly from one of the 190fbae784StjOpenBSD mirrors over the internet, you may wish to transfer the sets to 200fbae784Stja local HTTP server, or copy them to a partition on the target system's 210fbae784Stjdisk. 2228c23806Sjason 23831fd722SteduOpenBSDXferCDROM 24831fd722Stedu 25926ae4a4SmiodOpenBSDXferFloppyFromDOS 26926ae4a4Smiod 27403bf23eSmiodOpenBSDXferFloppyFromUNIX 28926ae4a4Smiod 29c529027aSjmcCreating a bootable hard disk using SunOS, Solaris or other Unix-like system: 30926ae4a4Smiod 31ab53f47dSmiod If you don't have a floppy drive you can copy the miniroot 32*4675fc66Sderaadt "miniroot{:--:}OSrev.img" onto the hard disk you intend to boot on. 336a14154eSmiod Traditionally, the way to do this is to use dd(1) to place the 346a14154eSmiod bootable filesystem image in the "swap" partition of the disk 356a14154eSmiod (while running in single user mode), and then booting from that 366a14154eSmiod partition. 37926ae4a4Smiod 38926ae4a4Smiod Using the "b" partition allows you to boot without overwriting 396c58c1e9Sjmc any useful parts of the disk; you can also use another partition, 406cbaf5b8Seric but don't use the "a" or "c" partition without understanding the 416cbaf5b8Seric disk label issues described below under "incompatible systems". 42926ae4a4Smiod 436c58c1e9Sjmc This requires that you be running SunOS, Solaris, OpenBSD, or NetBSD, 44926ae4a4Smiod which have a compatible view of SunOS disk labels and partitions. 45926ae4a4Smiod 46926ae4a4Smiod Use the dd(1) utility to copy the file to the hard drive. 47403bf23eSmiod The command would likely be, under SunOS: 48*4675fc66Sderaadt dd if=miniroot{:--:}OSrev.img of=/dev/rsd0b bs=64b 49403bf23eSmiod and under Solaris: 50*4675fc66Sderaadt dd if=miniroot{:--:}OSrev.img of=/dev/rdsk/c0t0d0s1 bs=64b 51926ae4a4Smiod 52926ae4a4Smiod The blocksize is arbitrary as long as it's a multiple of 512-bytes 53926ae4a4Smiod and within the maximum supported by the driver, i.e. bs=126b may 54926ae4a4Smiod not work for all cases. Again, device/partition names may vary, 55926ae4a4Smiod depending on the OS involved. 56926ae4a4Smiod 57926ae4a4Smiod If you are preparing the hard drive on an incompatible system or 58926ae4a4Smiod don't care about the hard disk contents, you can also install the 59926ae4a4Smiod bootable image starting at the beginning of the disk. This lets 60926ae4a4Smiod you prepare a bootable hard-drive even if don't have a working 616c58c1e9Sjmc operating system on your machine, but it is important to understand 62926ae4a4Smiod that the bootable image installed this way includes a "disk label" 63926ae4a4Smiod which can wipe out any pre-existing disklabels or partitioning for 64926ae4a4Smiod the drive. 65926ae4a4Smiod 66c529027aSjmcCreating a network bootable setup using SunOS or other Unix-like system: 6728c23806Sjason 6828c23806Sjason The details of setting up a network bootable environment vary 6928c23806Sjason considerably, depending on the network's host. Extract the 7028c23806Sjason OpenBSD diskless(8) man page from the man{:--:}OSrev.tgz distribution 7128c23806Sjason set or see the copy on the OpenBSD web page. You will also 7228c23806Sjason need to reference the relevant man pages or administrators guide 7328c23806Sjason for the host system. 7428c23806Sjason 7528c23806Sjason Basically, you will need to set up reverse-arp (rarpd) and boot 767a29afb7Sderaadt parameter (rpc.bootparamd) information and make the OpenBSD 777a29afb7Sderaadt bootblock, kernel/miniroot partition, and a swap file available 787a29afb7Sderaadt as required by the netboot setup. 7928c23806Sjason 8028c23806Sjason 81d54be14cSmiodOpenBSDXferPrelude 8228c23806Sjason 83ca3c3366SmiodOpenBSDXferFFS 84