grub-devel
[Top][All Lists]
Advanced

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

Re: Is it possble to use /dev/disk/by-id/ in grub.conf?


From: Aniruddha
Subject: Re: Is it possble to use /dev/disk/by-id/ in grub.conf?
Date: Wed, 30 Jul 2008 22:16:42 +0200

On Wed, 2008-07-30 at 20:00 +0200, Javier Martín wrote:

> If your problem is what device name to pass to the kernel command
> line, you can use a line like:
>     linux /vmlinuz root=UUID=diskuuidhere
> and the same with LABEL= if your initrd supports them (like Ubuntu's
> default initrd or Gentoo's `genkernel' initrd).
> If, on the other hand, your problem is what device to use in GRUB, I
> think there is a `search' command you can investigate.
> 

If I understand you correctly I have to add the following line to my
grub.conf:

> title=Gentoo Linux (2.6.25-gentoo-r6)
> root (hd0,1)
> kernel /boot/kernel-genkernel-x86-2.6.25-gentoo-r6 root=/dev/ram0 
> init=/linuxrc ramdisk=8192 real_root=LABEL=my_label udev
> genkernel --install --bootloader=grub --menuconfig --disklabel all

Furthermore I have to build genkernel with the "--disklabel" option to make it 
work right?

> genkernel --install --bootloader=grub --menuconfig --disklabel all


Thanks,

Aniruddha






reply via email to

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