Re: usb hard disk and udev

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

 



On Sun, 2005-07-17 at 19:32 +0200, Marcel Janssen wrote:
> Hi,
> 
> I'm trying to get my USB hard disks mounted always the same way with udev but 
> find some trouble making the rules.
> I've been reading a bit of the following : 
> http://www.reactivated.net/writing_udev_rules.html
> 
> And the rule :
> BUS="usb", KERNEL="sd*", SYSFS{product}="USB 2.0 Storage Device", NAME="%k", 
> SYMLINK="usbhd%n"
> 
> Seems to be what I want, but I don't understand yet how it can make sure that 
> my disk always gets the same mount point (I have multiple USB disks from 
> different vendors and want them assigned always to the same device)
> One thing is the SYSFS{product}. I can't find this description for my device 
> so I can't make the correct rule. Or, can I just take the vendor string in 
> from the below output instead ?
> 
> udevinfo -a -p /sys/block/sdd/sdd1

I just realized you aren't running udevinfo on the drive, but on the
partition. Try something like so:

# udevinfo -a -p `udevinfo -q path -n /dev/sda` <--(assuming sda)

A great howto is here:
http://gentoo-wiki.com/HOWTO_USB_Mass_Storage_Device

Travis


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux