Re: Question on the removable flag of USB devices

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

 



Matthew Dharm wrote:
> On Mon, May 25, 2009 at 01:45:54PM -0300, Rogério Brito wrote:
>> The question is: how are devices determined to be removable or not?
>> Sorry if this question is too naive.
> 
> It's a bit that the device reports.  The usb-storage driver passes this bit
> to the SCSI layer.

Wasn't this bit actually about removable _media_ rather than
hotpluggable transports?  (I.e. hardware where you can pull the medium
out of the drive mechanism.)  So in this sense, an USB attached HDD
should actually not present itself as "removable" unless it's a SyQuest
or Zip or something like that.

Furthermore, if that's what the discussed bit stands for, than it is
rather arbitrary to base a policy on it whether a volume may be mounted
by non-root users or not.

Rogério, perhaps static fstab entries based on /dev/disk/by-id/... can help.
-- 
Stefan Richter
-=====-==--= -=-= ==-=-
http://arcgraph.de/sr/
--
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