All of lore.kernel.org
 help / color / mirror / Atom feed
* Question about menu.lst
@ 2008-05-04 12:10 giggz
  2008-05-04 12:42 ` Lubomir Rintel
  0 siblings, 1 reply; 6+ messages in thread
From: giggz @ 2008-05-04 12:10 UTC (permalink / raw)
  To: grub-devel

Hi,

Sorry If it isn't the right place to post...I don't find a grub users
list...

I have several kernel on my laptop. Most of them are compiled by myself.
But to compare the performance I have an official debian kernel (486).
The problem is that official debian kernels are compiled with ide (so
hd* device) and my personal jkernel with PATA support (so sd* device).
So the root= option is not the same.

I would like to define a regle to set root=/dev/hda1 for all the *-486
kernels through the  # kopt_*_486=root=/dev/hda1 ro option. But I want
to keep the general regle : # kopt=root=/dev/sda1 ro
Is there a way to do that ?

Best regards,
Guillaume




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Question about menu.lst
  2008-05-04 12:10 Question about menu.lst giggz
@ 2008-05-04 12:42 ` Lubomir Rintel
  2008-05-04 12:49   ` giggz
  2008-05-06 15:08   ` Robert Millan
  0 siblings, 2 replies; 6+ messages in thread
From: Lubomir Rintel @ 2008-05-04 12:42 UTC (permalink / raw)
  To: The development of GRUB 2

On Sun, 2008-05-04 at 14:10 +0200, giggz wrote:
> Hi,
> 
> Sorry If it isn't the right place to post...I don't find a grub users
> list...
> 
> I have several kernel on my laptop. Most of them are compiled by myself.
> But to compare the performance I have an official debian kernel (486).
> The problem is that official debian kernels are compiled with ide (so
> hd* device) and my personal jkernel with PATA support (so sd* device).
> So the root= option is not the same.
> 
> I would like to define a regle to set root=/dev/hda1 for all the *-486
> kernels through the  # kopt_*_486=root=/dev/hda1 ro option. But I want
> to keep the general regle : # kopt=root=/dev/sda1 ro
> Is there a way to do that ?

Actually, you might want to use UUID or LABEL of the file system instead
of device file name.

You can get or set UUID or label with tune2fs like this:

# tune2fs -l /dev/sda1		(get information)
# tune2fs -L root-fs /dev/sda1	(set label)

And then set a kernel root parameter as follows:

root=LABEL=my-root-fs

Hope that helps.

-- 
Lubomir Rintel (Was: Kundrak)




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Question about menu.lst
  2008-05-04 12:42 ` Lubomir Rintel
@ 2008-05-04 12:49   ` giggz
  2008-05-06 15:08   ` Robert Millan
  1 sibling, 0 replies; 6+ messages in thread
From: giggz @ 2008-05-04 12:49 UTC (permalink / raw)
  To: grub-devel

Lubomir Rintel a écrit :
> On Sun, 2008-05-04 at 14:10 +0200, giggz wrote:
>> Hi,
>>
>> Sorry If it isn't the right place to post...I don't find a grub users
>> list...
>>
>> I have several kernel on my laptop. Most of them are compiled by myself.
>> But to compare the performance I have an official debian kernel (486).
>> The problem is that official debian kernels are compiled with ide (so
>> hd* device) and my personal jkernel with PATA support (so sd* device).
>> So the root= option is not the same.
>>
>> I would like to define a regle to set root=/dev/hda1 for all the *-486
>> kernels through the  # kopt_*_486=root=/dev/hda1 ro option. But I want
>> to keep the general regle : # kopt=root=/dev/sda1 ro
>> Is there a way to do that ?
> 
> Actually, you might want to use UUID or LABEL of the file system instead
> of device file name.
> 
> You can get or set UUID or label with tune2fs like this:
> 
> # tune2fs -l /dev/sda1		(get information)
> # tune2fs -L root-fs /dev/sda1	(set label)
> 
> And then set a kernel root parameter as follows:
> 
> root=LABEL=my-root-fs
> 

Hi,

thx for your quick answer. my /etc/fstab sill use it. But I have read
that in order to use uuid in the grub menu.lst I must have an
initrd...and in my self-compiled kernels I don't build any initrd...

Cheers

> Hope that helps.
> 




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Question about menu.lst
  2008-05-04 12:42 ` Lubomir Rintel
  2008-05-04 12:49   ` giggz
@ 2008-05-06 15:08   ` Robert Millan
  2008-05-06 18:47     ` Vesa Jääskeläinen
  1 sibling, 1 reply; 6+ messages in thread
From: Robert Millan @ 2008-05-06 15:08 UTC (permalink / raw)
  To: The development of GRUB 2

On Sun, May 04, 2008 at 02:42:00PM +0200, Lubomir Rintel wrote:
> Actually, you might want to use UUID or LABEL of the file system instead
> of device file name.
> 
> You can get or set UUID or label with tune2fs like this:
> 
> # tune2fs -l /dev/sda1		(get information)
> # tune2fs -L root-fs /dev/sda1	(set label)

Would be cool if we had some way to probe for this in GRUB's "search" command.

This would make a lot of the current device.map headache disappear.

-- 
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Question about menu.lst
  2008-05-06 15:08   ` Robert Millan
@ 2008-05-06 18:47     ` Vesa Jääskeläinen
  2008-05-07 12:49       ` Robert Millan
  0 siblings, 1 reply; 6+ messages in thread
From: Vesa Jääskeläinen @ 2008-05-06 18:47 UTC (permalink / raw)
  To: The development of GRUB 2

Robert Millan wrote:
> On Sun, May 04, 2008 at 02:42:00PM +0200, Lubomir Rintel wrote:
>> Actually, you might want to use UUID or LABEL of the file system instead
>> of device file name.
>>
>> You can get or set UUID or label with tune2fs like this:
>>
>> # tune2fs -l /dev/sda1		(get information)
>> # tune2fs -L root-fs /dev/sda1	(set label)
> 
> Would be cool if we had some way to probe for this in GRUB's "search" command.
> 
> This would make a lot of the current device.map headache disappear.
> 

I think labels are already supported :)




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Question about menu.lst
  2008-05-06 18:47     ` Vesa Jääskeläinen
@ 2008-05-07 12:49       ` Robert Millan
  0 siblings, 0 replies; 6+ messages in thread
From: Robert Millan @ 2008-05-07 12:49 UTC (permalink / raw)
  To: The development of GRUB 2

On Tue, May 06, 2008 at 09:47:10PM +0300, Vesa Jääskeläinen wrote:
> Robert Millan wrote:
> >On Sun, May 04, 2008 at 02:42:00PM +0200, Lubomir Rintel wrote:
> >>Actually, you might want to use UUID or LABEL of the file system instead
> >>of device file name.
> >>
> >>You can get or set UUID or label with tune2fs like this:
> >>
> >># tune2fs -l /dev/sda1		(get information)
> >># tune2fs -L root-fs /dev/sda1	(set label)
> >
> >Would be cool if we had some way to probe for this in GRUB's "search" 
> >command.
> >
> >This would make a lot of the current device.map headache disappear.
> >
> 
> I think labels are already supported :)

Sorry, I was confusing labels with UUIDs.  The problem with labels is that
they aren't garanteed to be unique;  is that correct?

-- 
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-05-07 12:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-04 12:10 Question about menu.lst giggz
2008-05-04 12:42 ` Lubomir Rintel
2008-05-04 12:49   ` giggz
2008-05-06 15:08   ` Robert Millan
2008-05-06 18:47     ` Vesa Jääskeläinen
2008-05-07 12:49       ` Robert Millan

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.