Re: need absolute location/device of usb flash disk

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

 



Joseph Mack NA3T wrote:
> I'm going to be writing images to usb flash disks on 15 ports on multiple 
> hubs. I need to know which port on a hub is associated with which 
> /dev/sd?? device, so I can tell the user where to insert their flash key 
> and when the write is done.
..
> What should I do to give the device a name determined from an absolute 
> location?

Check the links in /dev/disk/by-path, which might already be what you
want, or can at least give you some ideas for how to make your own
links.  On my system they're generated by /lib/udev/rules.d/60-persistent-storage.rules.


-jim

--
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