Hi!

Daniel Bayer [2005-06-19 22:46 +0200]:
> I just updated to kernel 2.6.12 and now I can't mount my usb
> harddrive with pmount anymore because it is not marked as removeable
> in /sys:
> | [EMAIL PROTECTED]:/ $ cat /sys/block/sdb/removable 
> | 0
> | [EMAIL PROTECTED]:/ $ 
> 
> My usbstick still works fine:
> | [EMAIL PROTECTED]:/ $ cat /sys/block/sda/removable 
> | 1
> | [EMAIL PROTECTED]:/ $
> 
> I don't know if this is intended by the kernel folk or if it is
> just a bug, but maybe you should consider detecting removeable media
> similar like hal does in /etc/udev/scripts/device-removable.sh.

In fact I already do, if a device is attached to USB or FireWire, it
is also permitted to be mounted. What does

  pmount -d /dev/sdbX

say? (With X being an appropriate partition number of course)

Martin
-- 
Martin Pitt                 Debian GNU/Linux Developer
[EMAIL PROTECTED]                      [EMAIL PROTECTED]
http://www.piware.de             http://www.debian.org


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to