Package: pmount
Version: 0.9.18-2
Severity: normal

Pmount reports that a SDHC card is not removable (hence cannot be 
mounted) when in fact the device is removable.

SDHC card is split into an unencrypted partition (/dev/sdb1) and a LUKS 
encrypted partition (/dev/sdb2).

Output of pmount -d /dev/sdb2 follows:

Checking for device '/dev/sdb2' in '/etc/fstab'
 -> not foundmount point to be used: /media/sdb2
no iocharset given, current locale encoding is UTF-8
locale encoding uses UTF-8, setting iocharset to 'utf8'
locale encoding uses UTF-8: will mount FAT with utf8 optionCleaning lock 
directory /var/lock/pmount_dev_sdb2
Checking for device '/dev/sdb2' in '/etc/mtab'
 -> not foundChecking for device '/dev/sdb2' in '/proc/mounts'
 -> not founddevice_whitelist: checking /etc/pmount.allow...
device_whitlisted(): nothing matched, returning 0
find_sysfs_device: looking for sysfs directory for device 8:18
find_sysfs_device: checking whether /dev/sdb2 is on /sys/block/sda (8:0)
find_sysfs_device: major device numbers match
find_sysfs_device: minor device numbers do not match, checking partitions...
find_sysfs_device: checking whether device /dev/sdb2 matches partition 8:0
find_sysfs_device: checking whether device /dev/sdb2 matches partition 8:1
find_sysfs_device: checking whether device /dev/sdb2 matches partition 8:2
find_sysfs_device: checking whether /dev/sdb2 is on /sys/block/sdb (8:16)
find_sysfs_device: major device numbers match
find_sysfs_device: minor device numbers do not match, checking partitions...
find_sysfs_device: checking whether device /dev/sdb2 matches partition 8:16
find_sysfs_device: checking whether device /dev/sdb2 matches partition 8:17
find_sysfs_device: checking whether device /dev/sdb2 matches partition 8:18
find_sysfs_device: -> partition matches, belongs to block device /sys/block/sdb
device_removable: could not find a sysfs device for /dev/sdb2
Error: device /dev/sdb2 is not removable
policy check failed

sysfs correctly reports that the device is in fact removable:
cat /sys/block/sdb/removable ->
1

Whitelisting /dev/sdb2 in /etc/pmount.allow is the current work around.
After whitelisting, device is correctly mounted (after prompting for LUKS 
password of course).


-- System Information: Debian Release: 5.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.28-6.slh.1-sidux-686 (SMP w/1 CPU core; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages pmount depends on:
ii  libblkid1                     1.41.3-1   block device id library
ii  libc6                         2.7-18     GNU C Library: Shared libraries
ii  libdbus-1-3                   1.2.12-1   simple interprocess messaging syst
ii  libhal-storage1               0.5.11-8   Hardware Abstraction Layer - share
ii  libhal1                       0.5.11-8   Hardware Abstraction Layer - share
ii  libsysfs2                     2.1.0-5    interface library to sysfs

pmount recommends no packages.

Versions of packages pmount suggests:
ii  cryptsetup                    2:1.0.6-7  configures encrypted block devices
ii  hal                           0.5.11-8   Hardware Abstraction Layer

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to