<p>What version of grub are you using and how are you attempting to install it in the image? As David T. mentioned, no partitions can be a problem, but grub likes to installed on real devices anyway, which can be an issue. Very late GRUBs can be used on certain types of images, in certain conditions... and if it is an older grub it needs a bios mapping.</p>

<div class="gmail_quote">On Aug 29, 2011 3:01 PM, &quot;David Hillman&quot; &lt;<a href="mailto:hillmands@gmail.com">hillmands@gmail.com</a>&gt; wrote:<br type="attribution">&gt; I am trying to test out a custom firmware that is supposed to be loaded to a<br>
&gt; router board.  The test is done using QEMU.  I...<br>&gt; <br>&gt; <br>&gt;    1. build the kernel and initrd using the tools from the board<br>&gt;    manufacturer.<br>&gt;    2. used qemu-img to create a raw disk image<br>
&gt;    3. mkfs.ext2 to format the image<br>&gt;    4. mounted the image to my Ubuntu filesystem as a loop device<br>&gt;    5. used debootstrap to build a minimal filesystem, plus added tools<br>&gt;    required for the board to run<br>
&gt;    6. copied over the kernel and initrd to /boot on the mounted filesystem<br>&gt;    7. chrooted into the system to setup grub menu.1st, etc<br>&gt;    8. exited out of and booted the router system using QEMU<br>&gt; <br>
&gt; No matter what I do, Grub gives up and throws an error about not being able<br>&gt; to read the filesystem.  I know the ext2 driver is in the initrd.<br>&gt; Manually setting up the partition info and telling Grub to boot from the<br>
&gt; prompt gives the same error.<br>&gt; <br>&gt; Is there something else I should be looking for?  My understanding of the<br>&gt; Linux boot process might be fuzzy here, plus I am not that familiar with<br>&gt; Grub.<br>
&gt; It&#39;s what was recommended to test inside QEMU.<br></div>