From: Marco Gerards <mgerards@xs4all.nl>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: Using GRUB2 for booting from CD
Date: Mon, 13 Aug 2007 19:40:35 +0200 [thread overview]
Message-ID: <87bqdb5o4s.fsf@xs4all.nl> (raw)
In-Reply-To: <8c0c43de0708120914i6e759dbar83f286e826f02a48@mail.gmail.com> (Alex Roman's message of "Sun, 12 Aug 2007 12:14:46 -0400")
"Alex Roman" <alex.roman@gmail.com> writes:
Hi,
> I've managed to (finally :( ) use GRUB2 as a bootloader on a CD-ROM.
> It loads the kernel and all modules I tell grub-mkimage to include.
>
> The problem is that it doens't know how to mount the root to be able
> to load other modules, read configuration files, etc. There is an
> iso9660 already there, but how can I tell grub2 to actually mount the
> CD-ROM drive as an iso9660 filesystem?
Does this mean you implemented IDE support, etc? :-)
The filesystem should automatically be detected. What you can do is
dumping the first sector of the CDROM to see if it is read correctly.
Have a look at grub_iso9660_mount. It first tries to read the
superblock. Next it does is checking if it is actually an ISO9660
filesystem (by checking for "CD001"). This function should reach
"return data" if it is indeed a ISO9660 filesystem.
What you could do first is checking if grub-emu can read your
filesystem image. That way you can easily see if the problem is in my
code or in your code.
--
Marco
next prev parent reply other threads:[~2007-08-13 17:38 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 [this message]
2007-08-13 18:44 ` Alex Roman
2007-08-14 0:40 ` Alex Roman
2007-08-15 9:24 ` Jeroen Dekkers
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=87bqdb5o4s.fsf@xs4all.nl \
--to=mgerards@xs4all.nl \
--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.