Re: Assign specific device name to USB device on , specific bus?

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

 



On Sun, Nov 29, 2009 at 07:58:19PM -0800, Subodh Nijsure wrote:
> I have hardware that has USB hub on it and on Bus 02 I have storage
> device. And Bus 01 is a USB port to which any USB device can be
> connected. What I want to do is -- device connected to BUS 02, should
> always be enumerated as /dev/sda## . That way the software that is
> looking for internal storage will not have to worry about order in
> which things are enumerated. I have tried few things with udev rules
> but without success. Is it possible to do this?

Yes, use a label on the filesystem and then use the symlink in
/dev/disk/by-label/ that will always point to exactly where your device
is, no matter where it is on any bus.

All distros already implement this so you should be fine.

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux