[clug] achieving persistent device (disk) names

Leigh Purdie intersect at gmail.com
Wed Dec 14 05:51:21 GMT 2005

Probably the easiest way to do this, is assign a label to the drive.

So /etc/fstab goes from:
/dev/sda1                /                       ext3    defaults        1 1

LABEL=rootpartition /                       ext3    defaults        1 1

Use 'e2label' to assign an appropriate label (assuming the partition is



On 12/14/05, Michael James <clug at james.st> wrote:
> As the names  /dev/sda,  sdb,  sdc, etc are allocated,
> the system disk keeps getting pushed to the end of the list.
> This is a pain as I have to boot a rescue system
> and edit  /etc/fstab and /boot/grub/menu.1st
> I'd like to offer the system some hints
> so it will always find it's system disk.
> The data disks can be fixed up later.
> Is udev the way to do this?
> If it is, what udev rules will ensure a particular SYSFS disk
> ALWAYS comes out as /dev/sda?
> Or if asking for  "sda"  is unwise, (it will probably already exist)
> is there a convention?  Something like  "/dev/root"  or  "/dev/system"?
> I tried this in  "/etc/udev/udev.rules"  but nothing happened.
> BUS="scsi", SYSFS{model}="PERCRAID Mirror ", NAME="root"
> TIA,
> michaelj
> --
> Konqueror has gotten so clever for its own boots
>   that it has forgotten what a web browser is for.
> --
> linux mailing list
> linux at lists.samba.org
> https://lists.samba.org/mailman/listinfo/linux

More information about the linux mailing list