help-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GRUB on a bootable Linux CD


From: spam . spam . spam . spam
Subject: GRUB on a bootable Linux CD
Date: Tue, 07 Jun 2011 13:03:21 +0200
User-agent: Internet Messaging Program (IMP) 3.2.8

Hello,

GRUB in installed on my CD.
In '/boot/grub/grub.cfg', the Linux kernel '/boot/vmlinuz' is gived.
Also, the option 'root=/dev/xxx' is given.

The problem is that xxx must be the CD device and it can be different on each
computer. For example, this is not the same device name if it's a master disc or
a slave disc.

So, a solution I found on the Internet is to give an other device for root : an
initial ram disc. We do it like this : 'root=/dev/ram0'. In this ram disc I have
some scripts which are launched and can found the good device... When I found
it, I mount the CD in a directory. This is a bad solution because my root in my
file system is now the initial ram disc and I prefer the root is the CD.

I try to find an easier way to determine the boot device (without using an
initial ram disc). For example, I try to give in grub.cfg this : 'root=(cd)' (I
read this in the GRUB documentation). But I am not sure this is what I need.

Is there a way to give the correct root device in grub.cfg (corresponding to my
CD)?

Thank you.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]