<?xml version="1.0" encoding="iso-8859-1"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Boot an ISO via Grub2</title>
	<atom:link href="http://michael-prokop.at/blog/2009/05/25/boot-an-iso-via-grub2/feed/" rel="self" type="application/rss+xml" />
	<link>http://michael-prokop.at/blog/2009/05/25/boot-an-iso-via-grub2/</link>
	<description>... and even if no one reads it</description>
	<lastBuildDate>Thu, 04 Feb 2010 14:16:25 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Kim</title>
		<link>http://michael-prokop.at/blog/2009/05/25/boot-an-iso-via-grub2/comment-page-1/#comment-14175</link>
		<dc:creator>Kim</dc:creator>
		<pubDate>Wed, 10 Jun 2009 15:35:24 +0000</pubDate>
		<guid isPermaLink="false">http://michael-prokop.at/blog/?p=2098#comment-14175</guid>
		<description>Great article! 

But how to get Grub2 on a media eg. USB-Stick in first place?</description>
		<content:encoded><![CDATA[<p>Great article! </p>
<p>But how to get Grub2 on a media eg. USB-Stick in first place?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AndrewBoldman</title>
		<link>http://michael-prokop.at/blog/2009/05/25/boot-an-iso-via-grub2/comment-page-1/#comment-14158</link>
		<dc:creator>AndrewBoldman</dc:creator>
		<pubDate>Thu, 04 Jun 2009 11:53:32 +0000</pubDate>
		<guid isPermaLink="false">http://michael-prokop.at/blog/?p=2098#comment-14158</guid>
		<description>Hi, cool post. I have been wondering about this topic,so thanks for writing.</description>
		<content:encoded><![CDATA[<p>Hi, cool post. I have been wondering about this topic,so thanks for writing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mirabilos</title>
		<link>http://michael-prokop.at/blog/2009/05/25/boot-an-iso-via-grub2/comment-page-1/#comment-14154</link>
		<dc:creator>mirabilos</dc:creator>
		<pubDate>Wed, 03 Jun 2009 17:47:36 +0000</pubDate>
		<guid isPermaLink="false">http://michael-prokop.at/blog/?p=2098#comment-14154</guid>
		<description>Hi again.

First off, you generate the appropriate El Torito boot
image for GNU GRUB2 by something like this:

$ grub-mkimage -o core.img biosdisk iso9660
$ cat /usr/lib/grub/i386-pc/cdboot.img core.img &gt;torito.img

Then you can use -b torito.img with the same options you&#039;re
using otherwise (do *not* forget -no-emul-boot
-boot-load-size 4 -boot-info-table), it doesn&#039;t even need
to reside in the filesystem itself, as mkisofs will include
it in the appropriate place itself. (The core.img may,
however, reside at /boot/grub/ in the filesystem.)

You *must* include several other files in the filesystem
though:

$ cd /usr/lib/grub; for a in *.mod efiemu??.o command.lst \
    moddep.lst fs.lst handler.lst parttool.lst; do
        test -e $a &amp;&amp; cp $a ~/cddir/boot/grub/
  done

The other thing you ask for, loopback chaining, is not
possible, because grub&#039;s loopback code will not be ac-
cessible from within the chained-to bootloader. Sorry.
You could achieve something similar with MEMDISK, but
only for relatively small images.</description>
		<content:encoded><![CDATA[<p>Hi again.</p>
<p>First off, you generate the appropriate El Torito boot<br />
image for GNU GRUB2 by something like this:</p>
<p>$ grub-mkimage -o core.img biosdisk iso9660<br />
$ cat /usr/lib/grub/i386-pc/cdboot.img core.img &gt;torito.img</p>
<p>Then you can use -b torito.img with the same options you&#8217;re<br />
using otherwise (do *not* forget -no-emul-boot<br />
-boot-load-size 4 -boot-info-table), it doesn&#8217;t even need<br />
to reside in the filesystem itself, as mkisofs will include<br />
it in the appropriate place itself. (The core.img may,<br />
however, reside at /boot/grub/ in the filesystem.)</p>
<p>You *must* include several other files in the filesystem<br />
though:</p>
<p>$ cd /usr/lib/grub; for a in *.mod efiemu??.o command.lst \<br />
    moddep.lst fs.lst handler.lst parttool.lst; do<br />
        test -e $a &amp;&amp; cp $a ~/cddir/boot/grub/<br />
  done</p>
<p>The other thing you ask for, loopback chaining, is not<br />
possible, because grub&#8217;s loopback code will not be ac-<br />
cessible from within the chained-to bootloader. Sorry.<br />
You could achieve something similar with MEMDISK, but<br />
only for relatively small images.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mart</title>
		<link>http://michael-prokop.at/blog/2009/05/25/boot-an-iso-via-grub2/comment-page-1/#comment-14147</link>
		<dc:creator>Mart</dc:creator>
		<pubDate>Tue, 02 Jun 2009 18:40:30 +0000</pubDate>
		<guid isPermaLink="false">http://michael-prokop.at/blog/?p=2098#comment-14147</guid>
		<description>I haven&#039;t tried grub2 yet, but what I would like to be able to do is easily boot a .iso file WITHOUT examining its content and finding the kernel and specifying, just like when you put a CD in your CD drive.

So with grub2, is it possible to do something like:

&lt;code&gt;
loopback loop (hd0,0)/myfolder/mycd.iso
chainloader (loop)
&lt;/code&gt;

So that it would do the &lt;strong&gt;same thing&lt;/strong&gt; as if booted from the CD?  Because I&#039;ve been trying to do this with grub4dos that can boot from .iso, but whenever I try to boot from a Linux distro .iso, it doesn&#039;t work because it can&#039;t find the data on the CD or something...</description>
		<content:encoded><![CDATA[<p>I haven&#8217;t tried grub2 yet, but what I would like to be able to do is easily boot a .iso file WITHOUT examining its content and finding the kernel and specifying, just like when you put a CD in your CD drive.</p>
<p>So with grub2, is it possible to do something like:</p>
<p><code><br />
loopback loop (hd0,0)/myfolder/mycd.iso<br />
chainloader (loop)<br />
</code></p>
<p>So that it would do the <strong>same thing</strong> as if booted from the CD?  Because I&#8217;ve been trying to do this with grub4dos that can boot from .iso, but whenever I try to boot from a Linux distro .iso, it doesn&#8217;t work because it can&#8217;t find the data on the CD or something&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mark</title>
		<link>http://michael-prokop.at/blog/2009/05/25/boot-an-iso-via-grub2/comment-page-1/#comment-14146</link>
		<dc:creator>mark</dc:creator>
		<pubDate>Tue, 02 Jun 2009 12:23:20 +0000</pubDate>
		<guid isPermaLink="false">http://michael-prokop.at/blog/?p=2098#comment-14146</guid>
		<description>Yep, exactly, I will see if your suggestion works. Basically what I need is an El Torito image for GRUB 2. 

The following command:

&lt;em&gt;
mkisofs -R -b boot/grub/stage2_eltorito -no-emul-boot -boot-load-size 4 -boot-info-table -o grub.iso iso
&lt;/em&gt;

will create the current GRUB1 boot loader on the CD (when the ISO is burned) so when the CD starts, GRUB launches and menu.lst is displayed.

So I what I need is something like this instead:

&lt;em&gt;
mkisofs -R -b boot/grub/stage2_eltorito_for_GRUB2 -no-emul-boot -boot-load-size 4 -boot-info-table -o grub.iso iso
&lt;/em&gt;

so when the ISO is burned GRUB2 loads. All I want to is to use GRUB2 as a boot loader on my CD instead of GRUB1 or isolinux.

Just for the record, this is my command if I want to use isolinux as a boot loder but I want to use GRUB2 instead.

&lt;em&gt;
mkisofs -o livecd.iso -r -J -l -b isolinux/isolinux.bin -c isolinux/boot.cat -V livecd -no-emul-boot -boot-load-size 4 -boot-info-table .
&lt;/em&gt;&lt;em&gt;&lt;/em&gt;</description>
		<content:encoded><![CDATA[<p>Yep, exactly, I will see if your suggestion works. Basically what I need is an El Torito image for GRUB 2. </p>
<p>The following command:</p>
<p><em><br />
mkisofs -R -b boot/grub/stage2_eltorito -no-emul-boot -boot-load-size 4 -boot-info-table -o grub.iso iso<br />
</em></p>
<p>will create the current GRUB1 boot loader on the CD (when the ISO is burned) so when the CD starts, GRUB launches and menu.lst is displayed.</p>
<p>So I what I need is something like this instead:</p>
<p><em><br />
mkisofs -R -b boot/grub/stage2_eltorito_for_GRUB2 -no-emul-boot -boot-load-size 4 -boot-info-table -o grub.iso iso<br />
</em></p>
<p>so when the ISO is burned GRUB2 loads. All I want to is to use GRUB2 as a boot loader on my CD instead of GRUB1 or isolinux.</p>
<p>Just for the record, this is my command if I want to use isolinux as a boot loder but I want to use GRUB2 instead.</p>
<p><em><br />
mkisofs -o livecd.iso -r -J -l -b isolinux/isolinux.bin -c isolinux/boot.cat -V livecd -no-emul-boot -boot-load-size 4 -boot-info-table .<br />
</em><em></em></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mirabilos</title>
		<link>http://michael-prokop.at/blog/2009/05/25/boot-an-iso-via-grub2/comment-page-1/#comment-14145</link>
		<dc:creator>mirabilos</dc:creator>
		<pubDate>Tue, 02 Jun 2009 11:56:12 +0000</pubDate>
		<guid isPermaLink="false">http://michael-prokop.at/blog/?p=2098#comment-14145</guid>
		<description>I still don&#039;t exactly know what you&#039;re doing, but GRUB 2 is pretty
much undocumented.

I can only suggest to look at /usr/bin/grub_mkrescue, which creates
an El Torito image by doing a &#12300;cat cdboot.img core.img &gt;grub_eltorito&#12301;

Be sure to include biosdisk and cd9660 modules in core.img and the
other *.mod on the CD in /boot/grub though.

(Of course, we also have a way to boot grub2 from the MirOS first
stage bootloader&#8230; not just via HD/USB, but also via El Torito&#8230;
but that&#8217;d be another topic.)</description>
		<content:encoded><![CDATA[<p>I still don&#8217;t exactly know what you&#8217;re doing, but GRUB 2 is pretty<br />
much undocumented.</p>
<p>I can only suggest to look at /usr/bin/grub_mkrescue, which creates<br />
an El Torito image by doing a &#12300;cat cdboot.img core.img &gt;grub_eltorito&#12301;</p>
<p>Be sure to include biosdisk and cd9660 modules in core.img and the<br />
other *.mod on the CD in /boot/grub though.</p>
<p>(Of course, we also have a way to boot grub2 from the MirOS first<br />
stage bootloader&#8230; not just via HD/USB, but also via El Torito&#8230;<br />
but that&#8217;d be another topic.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mark</title>
		<link>http://michael-prokop.at/blog/2009/05/25/boot-an-iso-via-grub2/comment-page-1/#comment-14144</link>
		<dc:creator>mark</dc:creator>
		<pubDate>Tue, 02 Jun 2009 11:49:54 +0000</pubDate>
		<guid isPermaLink="false">http://michael-prokop.at/blog/?p=2098#comment-14144</guid>
		<description>&lt;em&gt;Secondly, the method Mika writes about in here is *not*
about making an ISO bootable. It’s rather about using a
grub2 installed on the *hard disc* to load a kernel and
initrd image from within an ISO (it doesn’t matter if it
is bootable or not).&lt;/em&gt;

Thanks for that. To be honest, that&#039;s kind of what I wanted all this way :) So far, I currently have to extract the ISO, put it its own folder and modify the cfg file to add the folder to the path. The problem is, it doesn&#039;t always work even if you put the right entries and it&#039;s pointing to the right files. Depending on the distro, you will get messages relating to being unable to mount thefile system etc etc...it all varies.

I still would like to know though, what would be the GRUB 2 equvilent to the command I have above? I want to use GRUB2. Do I replace stage2_eltorito with core.img?</description>
		<content:encoded><![CDATA[<p><em>Secondly, the method Mika writes about in here is *not*<br />
about making an ISO bootable. It’s rather about using a<br />
grub2 installed on the *hard disc* to load a kernel and<br />
initrd image from within an ISO (it doesn’t matter if it<br />
is bootable or not).</em></p>
<p>Thanks for that. To be honest, that&#8217;s kind of what I wanted all this way <img src='http://michael-prokop.at/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  So far, I currently have to extract the ISO, put it its own folder and modify the cfg file to add the folder to the path. The problem is, it doesn&#8217;t always work even if you put the right entries and it&#8217;s pointing to the right files. Depending on the distro, you will get messages relating to being unable to mount thefile system etc etc&#8230;it all varies.</p>
<p>I still would like to know though, what would be the GRUB 2 equvilent to the command I have above? I want to use GRUB2. Do I replace stage2_eltorito with core.img?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mirabilos</title>
		<link>http://michael-prokop.at/blog/2009/05/25/boot-an-iso-via-grub2/comment-page-1/#comment-14138</link>
		<dc:creator>mirabilos</dc:creator>
		<pubDate>Mon, 01 Jun 2009 11:57:28 +0000</pubDate>
		<guid isPermaLink="false">http://michael-prokop.at/blog/?p=2098#comment-14138</guid>
		<description>@mark: I think you&#8217;re a little confused.

First of, if you have /boot/grub/stage2 and stage1*, then
you have GNU grub-legacy; if you have /boot/grub/core.img
and *.mod, then you have GNU grub2.

Secondly, the method Mika writes about in here is *not*
about making an ISO bootable. It&#8217;s rather about using a
grub2 installed on the *hard disc* to load a kernel and
initrd image from within an ISO (it doesn&#8217;t matter if it
is bootable or not).

To make a bootable ISO/CD, you do things as usual. Your
current way of doing it uses grub-legacy but is just fine.</description>
		<content:encoded><![CDATA[<p>@mark: I think you&#8217;re a little confused.</p>
<p>First of, if you have /boot/grub/stage2 and stage1*, then<br />
you have GNU grub-legacy; if you have /boot/grub/core.img<br />
and *.mod, then you have GNU grub2.</p>
<p>Secondly, the method Mika writes about in here is *not*<br />
about making an ISO bootable. It&#8217;s rather about using a<br />
grub2 installed on the *hard disc* to load a kernel and<br />
initrd image from within an ISO (it doesn&#8217;t matter if it<br />
is bootable or not).</p>
<p>To make a bootable ISO/CD, you do things as usual. Your<br />
current way of doing it uses grub-legacy but is just fine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mark</title>
		<link>http://michael-prokop.at/blog/2009/05/25/boot-an-iso-via-grub2/comment-page-1/#comment-14136</link>
		<dc:creator>mark</dc:creator>
		<pubDate>Mon, 01 Jun 2009 10:53:16 +0000</pubDate>
		<guid isPermaLink="false">http://michael-prokop.at/blog/?p=2098#comment-14136</guid>
		<description>hi,

I currently use GRUB 0.9 (I think) an I am using the following command to make a bootable ISO which can be burned on a CD

mkisofs -R -b boot/grub/stage2_eltorito -no-emul-boot -boot-load-size 4 -boot-info-table -o grub.iso iso

I got these instructions from: http://www.gnu.org/software/grub/manual/html_node/Making-a-GRUB-bootable-CD_002dROM.html

Now, I am really keen on using GRUB 2 instead so I can boot ISOs directly. Based on the mkisofs command above, what would be the equivilent for GRUB 2 so I can use GRUB 2 as a boot loader rather than GRUB 1?

Just like Jay, I have been searching and surfing the entire Google and I ended up here :)

P.S. How do I know what version of GRUB I have?</description>
		<content:encoded><![CDATA[<p>hi,</p>
<p>I currently use GRUB 0.9 (I think) an I am using the following command to make a bootable ISO which can be burned on a CD</p>
<p>mkisofs -R -b boot/grub/stage2_eltorito -no-emul-boot -boot-load-size 4 -boot-info-table -o grub.iso iso</p>
<p>I got these instructions from: <a href="http://www.gnu.org/software/grub/manual/html_node/Making-a-GRUB-bootable-CD_002dROM.html" rel="nofollow">http://www.gnu.org/software/grub/manual/html_node/Making-a-GRUB-bootable-CD_002dROM.html</a></p>
<p>Now, I am really keen on using GRUB 2 instead so I can boot ISOs directly. Based on the mkisofs command above, what would be the equivilent for GRUB 2 so I can use GRUB 2 as a boot loader rather than GRUB 1?</p>
<p>Just like Jay, I have been searching and surfing the entire Google and I ended up here <img src='http://michael-prokop.at/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>P.S. How do I know what version of GRUB I have?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mirabilos</title>
		<link>http://michael-prokop.at/blog/2009/05/25/boot-an-iso-via-grub2/comment-page-1/#comment-14123</link>
		<dc:creator>mirabilos</dc:creator>
		<pubDate>Fri, 29 May 2009 08:37:52 +0000</pubDate>
		<guid isPermaLink="false">http://michael-prokop.at/blog/?p=2098#comment-14123</guid>
		<description>https://www.mirbsd.org/permalinks/wlog-10_e20090527-tg.htm

Too bad we can&#8217;t do that to MirOS bsd4grml, which _is_ part of
recent grml editions after all, yet. GNU GRUB2 cannot boot the
kernel (nor a stock 4.4OpenBSD one, FWIW), and while the MirOS
bootloader (ldbsd.com) is a multiboot OS kernel it doesn&#8217;t ac-
cept a module/initrd with the kernel yet. May just hack it&#8230;</description>
		<content:encoded><![CDATA[<p><a href="https://www.mirbsd.org/permalinks/wlog-10_e20090527-tg.htm" rel="nofollow">https://www.mirbsd.org/permalinks/wlog-10_e20090527-tg.htm</a></p>
<p>Too bad we can&#8217;t do that to MirOS bsd4grml, which _is_ part of<br />
recent grml editions after all, yet. GNU GRUB2 cannot boot the<br />
kernel (nor a stock 4.4OpenBSD one, FWIW), and while the MirOS<br />
bootloader (ldbsd.com) is a multiboot OS kernel it doesn&#8217;t ac-<br />
cept a module/initrd with the kernel yet. May just hack it&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
