using udev to consistently name the /dev/ node for a sata drive

Marius Gedminas marius at pov.lt
Tue Jul 10 04:55:33 UTC 2007


On Tue, Jul 10, 2007 at 06:34:49AM +0200, Tim Richardson wrote:
> I have two SATA disks in my machine. One is the boot disk which also has the
> ext3 partitions. The other is my original Win XP disk.
> 
> fstab uses UUID and Feisty works fine.
> But from time to time, the drive names in /dev/sd* are swapped. /dev/sda is
> not always my boot disk. Sometimes it is the Win XP disk.
> 
> This causes chaos for vmware server, because I like to add my WinXP drive as
> a physical drive, and vmware server lets me address drives only by the /dev/
> name.
> 
> can I make a rule for udev that identifies sata disks (or scsi disks) using
> UUID as the kernel name, and then making sure the /dev/ name will always be
> the same?

Use /dev/disk/by-uuid/*.

Marius Gedminas
-- 
Bumper sticker: If you can read this, I can hit my brakes and sue you.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20070710/7864f780/attachment.sig>


More information about the ubuntu-users mailing list