|
楼主 |
发表于 2004-5-30 00:27:02
|
显示全部楼层
Making a bootable OpenBSD installation CDROM for i386 using snapshot.
http://www.cocoavillagepublishin ... openbsd/tips/cdrom/
This information is distributed in the hope that it will be useful, with the understanding that the information presented is from various sources and application experiences, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. The information for installing that is on the OpenBSD website is sufficient for someone familiar with administering BSD Unix. For the purpose of documenting what you do and doing what you document we clarify some of the information here for this specific solution.
A situation may arise where you need a bootable install cdrom for OpenBSD immediately or you need a recent or snapshot release to install by cdrom. Otherwise you should purchase the install cdrom to support OpenBSD: http://openbsd.org/orders.html
Most new computers based on the i386 architecture can now finally boot from a CDROM. These instructions outline how to create a bootable CDROM for installing OpenBSD on this architecture..
Get your files organized. The OpenBSD installer expects to see a CDROM with a directory structure of /version_number/architecture/, where version_number is the current version, and architecture is i386. For a minimal boot image, all that's needed are the tarred gzipped install files, the bsd kernel, and the cdromxx.fs floppy image.
These files need to be arranged in a directory, example for an OpenBSD snapshot for i386 build targeted for 3.4 version.
mkdir OpenBSD
mkdir OpenBSD/3.5
mkdir OpenBSD/3.5/i386
If you know what you are doing and have a machine with current, you could make your own install software rather than using the FTP site, read man release if you are up to the challenge ;). Else, use ftp to copy the necessary files into the OpenBSD/3.3/i386 directory. Also try to pick a nearer mirror of ftp.openbsd.org to spread out the load on the supporting infrastructure.
$ cd OpenBSD/snapshots/i386
$ ftp -n ftp://ftp.openbsd.org/pub/OpenBSD/snapshots/i386/*
$ ls #example
CKSUM INSTALL.dbr INSTALL.mbr MD5
bsd.rd etc35.tgz floppyC35.fs man35.tgz
xfont35.tgz INSTALL.ata INSTALL.i386 INSTALL.os2br
base35.tgz cdrom35.fs floppy35.fs game35.tgz
misc35.tgz xserv35.tgz INSTALL.chs INSTALL.linux
INSTALL.pt bsd comp35.tgz floppyB35.fs
index.txt xbase35.tgz xshare35.tgz
$ cd ../../.. # one folder above OpenBSD
Now all you need is to use mkisofs or mkhybrid to create an iso image:
mkhybrid -r -b 3.5/i386/cdrom35.fs -c "boot.catalog" -o OpenBSD_snapshot.iso OpenBSD
This command creates a ISO9660 CD with Rock Ridge extensions, which will boot from the floppy image in cdrom34.fs. The image is output to OpenBSD.iso. You can then burn this onto a CDROM with anything that knows how to burn ISO images. I've used cdrecord on OpenBSD, or copied the file onto a Windows box and used the recording software there.
Or if you are using a Microsoft platform to make the cdrom, Make sure the files are brought over to your MS machine in "binary" not ascii and use a cdrom burning software like "Nero" and setup to be ISO9660 with no extensions like Joliet and set the boot file as afore mentioned.
It is best to purchase the original installation cdroms, but if you must use current builds, the above can work. And you should go to the OpenBSD website and donate money, labor and/or hardware! The sales of OpenBSD official cdroms are a large part of the funding that makes OpenBSD possible. Yes you should feel guilt if you benefit but don't purchase the authentic OpenBSD installation cdroms, participate in development, help other users, nor fund OpenBSD: http://openbsd.org/goals.html#funding |
|