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

Re: What is the best way to deal with changing device names in Debian?

On Tue,12.Aug.08, 01:04:00, Aniruddha wrote:
> Regularly my hard disk device names change ( e.g. from sdc to sdh to sdb
> etc). When this happens it becomes impossible to boot. 
> To prevent this from happening I 've added 'disk/by id' to fstab
> (because the disks uuid were also changing) and 'boot from uuid' to my
> menu.lst I wonder:
> -What is the best way to prevent the device names change from happening?
> -If it happens what is the best way to quickly fix this problem?
I prefer to use labels, because they are readable (compared to UUID) ;)

$ grep '^# kopt' /boot/grub/menu.lst
# kopt=root=LABEL=sid ro vga=0x368

You have to run 'update-grub' after changing this

$ grep sid /etc/fstab
LABEL=sid	/               ext3    errors=remount-ro,noatime,commit=600 0       1

For ext2/3 you set the labels with e2label.

If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)

Attachment: signature.asc
Description: Digital signature

Reply to: