Hello, On Mon, Jun 20, 2005 at 08:40:52AM +0200, Martin Pitt wrote: > 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)
It seems it only looks for /sys/.../removable: | [EMAIL PROTECTED]:~ $ LC_MESSAGES=C pmount -d /dev/sda1 | resolved /dev/sda1 to device /dev/sda1 | mount point to be used: /media/sda1 | no iocharset given, current locale encoding is UTF-8 | locale encoding uses UTF-8, setting iocharset to 'utf8' | Cleaning lock directory /var/lock/pmount/_dev_sda1 | device_whitelist: checking /etc/pmount.allow... | device_whitlisted(): nothing matched, returning 0 | find_sysfs_device: looking for sysfs directory for device 8:1 | find_sysfs_device: checking whether /dev/sda1 is on /sys/block/sda (8:0) | find_sysfs_device: major device numbers matchfind_sysfs_device: minor device numbers do not match, checking partitions...find_sysfs_device: checking whether device /dev/sda1 matches partition 8:0 | find_sysfs_device: checking whether device /dev/sda1 matches partition 8:1 | find_sysfs_device: -> partition matches, belongs to block device /sys/block/sda | device_removable: corresponding block device for /dev/sda1 is /sys/block/sda | get_blockdev_attr: value of /sys/block/sda/removable == 0 | Error: device /dev/sda1 is not removable | policy check failed | [EMAIL PROTECTED]:~ $ Daniel -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

