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

Re: How do I enable UUID in Debian?



Aniruddha (<mailing_list@orange.nl>) wrote:

> Since my harddrive names keep changing after each reboot I have to set
> UUID in grub to make sure I can boot. I've done this before in Gentoo
> and I wonder how this works in Debian.
> 
> Do I have to install a special package? Which line do I have to add to
> my menu.lst? I was thinking about something like this:
> 
>> title                Debian GNU/Linux, kernel 2.6.24-1-686
>> root         (hd2,1)
>> kernel               /boot/vmlinuz-2.6.24-1-686
>> root=UUID=dd4927a2-e1f4-4955-8aa7-76a11d8c3aca init=/linuxrc
>> ramdisk=8192
>> initrd               /boot/initrd.img-2.6.24-1-686
> 
> 
> Is this correct? Thanks in advance!

I have not tested this for the root partition, but if you use initramfs
for your initrd, which includes udev in the initial ram disk, you
should be able to access /dev/disk/by-uuid/<UUID>

regards
        Andreas Janssen

-- 
Andreas Janssen <andreas.janssen@bigfoot.com>
PGP-Key-ID: 0xDC801674 ICQ #17079270
Registered Linux User #267976
http://www.andreas-janssen.de/debian-tipps.html


Reply to: