From owner-freebsd-hackers Mon Mar 15 9:13:58 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from gateway.cybernet.com (gateway.cybernet.com [192.245.33.1]) by hub.freebsd.org (Postfix) with ESMTP id 2B3DE14C3F for ; Mon, 15 Mar 1999 09:13:56 -0800 (PST) (envelope-from mtaylor@cybernet.com) Received: from spiffy.cybernet.com (spiffy.cybernet.com [192.245.33.55]) by gateway.cybernet.com (8.8.8/8.8.8) with ESMTP id MAA09318; Mon, 15 Mar 1999 12:12:58 -0500 (EST) (envelope-from mtaylor@cybernet.com) Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <199903151245.XAA14560@at.dotat.com> Date: Mon, 15 Mar 1999 12:13:42 -0500 (EST) Reply-To: mtaylor@cybernet.com Organization: Cybernet Systems From: "Mark J. Taylor" To: Leigh Hart Subject: Re: bootable cd q Cc: freebsd-hackers@FreeBSD.ORG, "Curtis Wilbar [STAFF]" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Actually, it is not all that difficult (if I am reading your question correctly): you just have to provide mkisofs with the 1.44 MB boot floppy image (or 2.88 MB). If I remember correctly: The EL-TORITO standard expects a certain header on the CD-ROM ("EL-TORITO", go figure), which points to a catalog file, which has the location (in blocks, I belive) of the file to use for the floppy image (during boot, the CD-ROM emulates the "A:" drive). The image can be 1.44 MB or 2.88 MB (not sure if 720 KB is acceptable). On FreeBSD's 2.2.x's bootable CD-ROM, the floppy image used is the standard GENERIC kernel with a MFS root file system (boot.flp). I haven't figured out how 3.1 does it yet (there is a new 3-stage boot loader now), but I'd bet that they are using a 2.88 MB disk image, to get around the 2 boot floppy install. If you want to use the CD-ROM's filesystem, then you should investigate using "-C" boot prompt. Alternatively, in your /etc/rc script that is in the boot floppy image, you can search for and mount the CD-ROM somewhere, and chroot all of your commands. Take a look at the src/release/ directory for boot floppy creation. It's a little complicated to roll your own, but there are lots of "templates" there. :) --- Mark J. Taylor Networking Research Cybernet Systems mtaylor@cybernet.com 727 Airport Blvd. PHONE (734) 668-2567 Ann Arbor, MI 48108 FAX (734) 668-8780 http://www.cybernet.com/ http://www.netmax.com/ On 15-Mar-99 Leigh Hart wrote: > Hi Curtis, > > "Curtis Wilbar [STAFF]" wrote: >> >> Can anyone point me to a website, ftpsite, etc that would detail >> how to make a freebsd bootable cd-rom ? I've found info on mkisofs >> and in general how it works, but I'm looking for freebsd specific >> info (i.e. how to make a bootable cd from the downloaded images/etc). >> >> I'd appreciate any info you could provide. > > cd /usr/share/examples/worm/ > > read it and weep (it is *not* easy). > > then go to /usr/src/release and investigate write_mfs_in_kernel.c, > you will need it. The process has changed a bit since I did it on > FreeBSD-2.2.5, so I won't go into detaills here about what I did, > it was an ugly hack, but then again, el toro (yip yip yeehaa sp!??!) > CD booting is ugly at the best of times. > > Cheers > > Leigh > -- >| "By the time they had diminished | Leigh Hart, | >| from 50 to 8, the other dwarves | Dotat Communications Pty Ltd | >| began to suspect 'Hungry' ..." | GPO Box 487 Adelaide SA 5001 | >| -- Gary Larson, "The Far Side" | http://www.dotat.com/hart/ | > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message