From owner-freebsd-hackers Mon May 14 18: 2:51 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from smtp6ve.mailsrvcs.net (smtp6vepub.gte.net [206.46.170.27]) by hub.freebsd.org (Postfix) with ESMTP id 34A1D37B43C for ; Mon, 14 May 2001 18:02:48 -0700 (PDT) (envelope-from babkin@bellatlantic.net) Received: from bellatlantic.net (client-151-198-117-154.nnj.dialup.bellatlantic.net [151.198.117.154]) by smtp6ve.mailsrvcs.net (8.9.1/8.9.1) with ESMTP id BAA21137509; Tue, 15 May 2001 01:07:01 GMT Message-ID: <3B008010.F83DBBD2@bellatlantic.net> Date: Mon, 14 May 2001 21:02:08 -0400 From: Sergey Babkin X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 4.0-19990626-CURRENT i386) X-Accept-Language: en, ru MIME-Version: 1.0 To: Dave Hayes Cc: freebsd-hackers@freebsd.org Subject: Re: Mkisofs and ISO images that boot References: <200105140810.BAA26975@hokkshideh.jetcafe.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Dave Hayes wrote: > > >From the handbook: > > > 10.8.2. mkisofs > > ... > > The last option of general use is -b. This is used to specify the > > location of the boot image in producing a ``El Torito'' bootable > > CD. This option takes an argument, which is the path to a boot image > > from the top of the tree being written to the CD. So, given that > > /tmp/myboot holds a bootable FreeBSD system with the boot image in > > /tmp/myboot/boot/cdboot, you could produce the image of an ISO 9660 > > file system in /tmp/bootable.iso like so: > > # mkisofs -U -R -b boot/cdboot -o /tmp/bootable.iso /tmp/myboot > > Hmm ok. > > $ make installworld DESTDIR=/random/place/FirstCD > ...... > $ ls -l /random/place/FirstCD/boot > ... > -r-xr-xr-x 1 root wheel 149504 May 8 17:00 cdboot* > > Ah! Just what I need, right? So... Nope. You need a full diskette image with kernel on it. This is only a boot loader. The name is the same as in the example but the contents is completely different. > $ cd /random/place > $ mkisofs -U -R -o FirstCD.iso -b boot/cdboot FirstCD > ... > Size of boot image is 292 sectors -> mkisofs: Error - boot image > 'FirstCD/boot/cdboot' is not the an allowable size. > > Ok, I'm kinda stumped, so I go to the man page and see this: > > -b eltorito_boot_image > Specifies the path and filename of the boot image > to be used when making an "El Torito" bootable CD. > ... > make an "El Torito" bootable CD. The boot image > must be exactly the size of either a 1.2, 1.44, or > a 2.88 meg floppy, and mkisofs will use this size > when creating the output iso9660 filesystem.... > > Well. Can anyone shed any light on the apparent inconsistencies There is not inconsistency. Both documents say the same thing. Though the name of the boot image file in Handbiik is poorly chosen. > between the handbook, the man page, and what is -really- needed to > make a bootable CD? Create a floppy image with the UFS filesystem, the boot loader and the kernel image (probably gzipped) on it. I'm not sure whether it has to have the cdboot boot loader or if the floppy loader will do. Then use this image for mkisofs -b. Better use a rewritable CD-ROM for the experiments until you get something working. -SB To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message