All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeroen Dekkers <jeroen@vrijschrift.org>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: Using GRUB2 for booting from CD
Date: Wed, 15 Aug 2007 11:24:15 +0200	[thread overview]
Message-ID: <873ayl177k.wl@dekkers.cx> (raw)
In-Reply-To: <8c0c43de0708131740j60a74092q436f5e73a7ea91a9@mail.gmail.com>

At Mon, 13 Aug 2007 20:40:27 -0400,
Alex Roman wrote:
> 
> OK, I've done the following in grub-emu...
> 
> I have a map file that looks like this:
> (fd0) floppy.img
> (cd0) grub2-iso.iso
> 
> grub2-iso.iso is an iso I generate using genisoimage (mkisofs). I can
> mount it just fine.
> 
> floppy.img is a floppy image I generate... It contains grub, basically
> and a few modules.
> 
> I run grub-emu -d grub2 -m mapfile -r fd0
> 
> grub2 is my build directory.
> 
> I tried ls (cd0)/ but that did not work. The iso9660_mount function is
> saying that it couldn't read the superblock.
> 
> Then I saw on your (Marco) blog about the loopback command. So I tried
> it as follows:
> 
> loopback cd1 (host)/path/to/grub2-iso.iso
> 
> Now, ls (cd1)/ goes a bit further, it can read the superblock, but it
> says it couldn't find the magic "CD001". I printed the data it reads
> from the ISO and it's all 0's...
> 
> 
> Am I doing anything wrong from what you can see here? I'd like to know
> if it's something I'm doing wrong in my procedure or in my code...

Read what's in the file directly and compare it to what grub-emu
reads. If it reads something different than that's a bug in the
grub-emu or loopback code. 

Also don't forget about the possiblity that qemu might be buggy,
especially if you're using bios functions that aren't really used that
much. Testing on real hardware is really necessary sometimes.

And whether your code is wrong or not is very difficult to tell if you
don't post your code...

Jeroen Dekkers



  reply	other threads:[~2007-08-15  9:24 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-12 16:14 Using GRUB2 for booting from CD Alex Roman
2007-08-13 17:40 ` Marco Gerards
2007-08-13 18:44   ` Alex Roman
2007-08-14  0:40     ` Alex Roman
2007-08-15  9:24       ` Jeroen Dekkers [this message]
2007-08-15 13:54         ` Alex Roman
2007-08-16 22:03           ` Jeroen Dekkers
2007-08-16 22:43             ` Alex Roman
2007-08-20 14:45     ` Robert Millan
2007-08-20 23:05       ` Alex Roman
2007-11-10 17:43         ` Marco Gerards

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=873ayl177k.wl@dekkers.cx \
    --to=jeroen@vrijschrift.org \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.