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

tim richardson te.richardson at gmail.com
Tue Jul 10 16:33:59 UTC 2007




Marius Gedminas-2 wrote:
> 
> 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
> 

Marius, When I enter the path to a drive in the directory 
/dev/disk/by-uuid/
I get this result: 
Unable to determine the bus type of device 
/dev/disk/by-uuid/DEE0C7E7E0C7C3CD

same if I make my own symlink


-- 
View this message in context: http://www.nabble.com/using-udev-to-consistently-name-the--dev--node-for-a-sata-drive-tf4053787.html#a11524544
Sent from the ubuntu-users mailing list archive at Nabble.com.





More information about the ubuntu-users mailing list