scsi ID_SERIAL as a udev rule

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

 



Hello all,

First, thank you for uedv ... sure beats the days of manual mounting!

I'm trying to set the group ownership of a specific harddrive so that
it is accessible as a raw device inside a virtual machine.  I think I
have the correct rule but it doesn't appear to work:

SUBSYSTEM=="block", PROGRAM="/lib/udev/scsi_id --whitelisted --export
--page=0x80 --device=/dev/sdc | grep ^ID_SERIAL= | cut -f2 -d'='",
RESULT="SATA_WDC_WD2002FYPS-_WD-WCAVY0######", GROUP="vmware"


Also, I have not successfully limited the rule by only the scsi serial
id ... the /dev/sdc is still in there.

Not sure if I'm going about it the right way.   usb devices have their
UUID/serial #s exposed vi the udev attrs or sysfs but I can't find the
scsi id's so that I can build a udev rule.

Can someone please point me in the right direction?

I tried googling this but I didn't find anything on the topic
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux