Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Apr 2001 16:47:27 -0700 (PDT)
From:      Rick Duvall <maillist@coastsight.com>
To:        Mike Meyer <mwm@mired.org>
Cc:        questions@freebsd.org
Subject:   Re: Custom boot cd for FreeBSD
Message-ID:  <Pine.BSF.4.21.0104261642390.35657-100000@ns1.coastsight.com>
In-Reply-To: <Pine.BSF.4.21.0104261004390.34157-100000@ns1.coastsight.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Okay, I have gotten this far:

I took boot.flp from the cd-rom floppies/boot.flp, and I used vnconfig to
mount it on /mnt.  I replaced kernel.gz with my own kernel.gz, and
modified boot/loader.conf to just have the command "start" in it and
nothing else.  I added /boot/cdboot to the floppy image, but I don't know
if that did anything.

I unmount /dev/vn0a and vnconfig -u vn0, and then burn a cd.

The cd boots, to an extent.

It boots to the boot: prompt, where I have to put in boot -C (is there a
way around having to do that?), then it loads the kernel (white text).

It get's to:

acd0: CDROM <HITACHI CDR-7830> at ata1-master using PIO3
Mounting root from cd9660:cd0a
no such device 'cd'
setrootbyname failed
iso_mountroot: can't find rootvp
Root mount failed: 6
Mounting root from cd9660:acd0a

Then, it just hangs there and won't go any further.

What should I try next?

Thanks.

Sincerely,

Rick Duvall

On Thu, 26 Apr 2001, Rick Duvall wrote:

> Okay...  So, I guess my next question is (after trying everything on that
> page), how do I make the bootable 2.88M floppy image to burn to the
> CD?  Do I actually need to create a physical floppy disk, or can I just
> make an image of a disk?
> 
> Sincerely,
> 
> Rick Duvall
> 
> On Mon, 23 Apr 2001, Mike Meyer wrote:
> 
> > Rick Duvall <maillist@coastsight.com> types:
> > > Could somebody please document, make a FAQ, or something about making a
> > > custom boot cd for FreeBSD.  It is documented on how to make a custom
> > > bootable floppy with a custom kernel, but not a cd.  What if the kernel
> > > won't fit on a floppy?  the bootable cd would be nice.  Use mkisofs with
> > > el-torito to make an image, ftp it over to a winblows box and use the cd
> > > creating software, or write with cdrecord.
> > 
> > The handbook now has an entry on creating CDs at <URL:
> > http://www.freebsd.org/doc/en_US.ISO_8859-1/books/handbook/creating-cds.html
> > >. It doesn't have a lot of detail on creating a bootable CD (I still
> > haven't done that), but the general idea is that you create an image
> > of a bootable floppy - except you get to use a 2.88M floppy for the
> > kernel - and put that in the tree for the CD. You then use the -b flag
> > of mkisofs to point out where the boot image is in the tree, and it
> > should do the rest.
> > 
> > If you do this and find problems, or can provide clarifications, feel
> > free to let me know and I'll submit them, or do a send-pr on them
> > yourself.
> > 
> > 	<mike
> > --
> > Mike Meyer <mwm@mired.org>			http://www.mired.org/home/mwm/
> > Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
> > 
> > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > with "unsubscribe freebsd-questions" in the body of the message
> > 
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0104261642390.35657-100000>