Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NxQ3s-0007kg-VK for mharc-grub-devel@gnu.org; Thu, 01 Apr 2010 15:28:17 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NxQ3r-0007jY-SZ for grub-devel@gnu.org; Thu, 01 Apr 2010 15:28:15 -0400 Received: from [140.186.70.92] (port=37341 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NxQ3q-0007iF-MD for grub-devel@gnu.org; Thu, 01 Apr 2010 15:28:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NxQ3p-0007A7-GW for grub-devel@gnu.org; Thu, 01 Apr 2010 15:28:14 -0400 Received: from qmta04.westchester.pa.mail.comcast.net ([76.96.62.40]:33906) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NxQ3p-00079h-DQ for grub-devel@gnu.org; Thu, 01 Apr 2010 15:28:13 -0400 Received: from omta14.westchester.pa.mail.comcast.net ([76.96.62.60]) by qmta04.westchester.pa.mail.comcast.net with comcast id 0BvJ1e0061HzFnQ54KUCqf; Thu, 01 Apr 2010 19:28:12 +0000 Received: from [192.168.0.4] ([69.242.201.158]) by omta14.westchester.pa.mail.comcast.net with comcast id 0KUB1e00S3RZVhR3aKUBm7; Thu, 01 Apr 2010 19:28:12 +0000 From: Drake Donahue To: The development of GNU GRUB In-Reply-To: <105814123160@192.168.2.69> References: <4BB4D0DD.3070106@gmail.com> <105814123160@192.168.2.69> Content-Type: multipart/mixed; boundary="=-JF6tek4T2Kk259OEGENl" Date: Thu, 01 Apr 2010 15:28:10 -0400 Message-Id: <1270150090.5654.3.camel@oddman.donahues.us.> Mime-Version: 1.0 X-Mailer: Evolution 2.26.3 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. Subject: Re: How to prepare an ISO 9660 CD for booting via GRUB ? X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Apr 2010 19:28:16 -0000 --=-JF6tek4T2Kk259OEGENl Content-Type: text/plain Content-Transfer-Encoding: 7bit On Thu, 2010-04-01 at 19:59 +0200, Thomas Schmitt wrote: > Hi, > > > Your question is how to make a cd with grub on it ? > > Yes. > > GNU xorriso is like cdrtools + growisofs in > one single binary. > My question about GRUB on CD shall improve the > mkisofs-like aspect of xorriso. I am able to > influence ISO image production in any detail. > But i need instructions how to prepare it so > that a PC BIOS starts GRUB correctly. > > I expect a BIOS to ignore the first 16 blocks > of a CD unless an El Torito record points to > an address in there. > > Robert Millan's example > > > cat boot.img core.img> tmp > > > mkisofs --embedded-boot tmp -o grub.iso -r somedir > places GRUB files into those 16 blocks. > But it does not produce an El Torito record > when run with his latest mkisofs and a dummy > file "tmp". > So either his mkisofs wants to see real GRUB > files or my theory about BIOS + CD + GRUB is > wrong. > > > > menuentry "ISO Live - Ubuntu 9.10 Karmic AMD64" { > > insmod loopback > > insmod iso9660 > > set isofile="/iso/lucid-desktop-amd64.iso" > > Interesting example. It is astounding what one > can do with a bootloader nowadays. > > It would be in my current focus of interest, > if that ISO image itself is equipped with > GRUB and boots from real CD. In that case i > would like to know an URL for downloading it. > > > Have a nice day :) > > Thomas > > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel Attached is a script I use to make a legacy grub booting cd that provides an alternate way to boot the system it was built on. --=-JF6tek4T2Kk259OEGENl Content-Disposition: attachment; filename="grubcd" Content-Type: text/plain; name="grubcd"; charset="us-ascii" Content-Transfer-Encoding: 7bit mkdir iso #mkdir -p iso/boot/grub cp -rf /boot/ iso/boot/ rm iso/boot/grub/menu.lst cp iso/boot/grub/grub.conf iso/boot/grub/menu.lst rm iso/boot/grub/grub.conf* mkisofs -R -b boot/grub/stage2_eltorito -no-emul-boot -boot-load-size 4 -boot-info-table -o grub.iso iso #genisoimage -R -b boot/grub/stage2_eltorito \ -input-charset iso8859-1 \ -V "iso" \ -no-emul-boot \ -boot-load-size 4 -boot-info-table -o grub.iso iso #This produces a file named grub.iso, which then can be burned into a CD (or a DVD). mkisofs has already set up the disc to boot from the boot/grub/stage2_eltorito file, so there is no need to setup GRUB on the disc. (Note that the -boot-load-size 4 bit is required for compatibility with the BIOS on many older machines.) Y#ou can use the device `(cd)' to access a CD-ROM in your config file. This is not required; GRUB automatically sets the root device to `(cd)' when booted from a CD-ROM. It is only necessary to refer to `(cd)' if you want to access other drives as well. --=-JF6tek4T2Kk259OEGENl--