$: lsb_release -rd Description: Ubuntu 11.10 Release: 11.10
$: apt-cache policy usbmount usbmount: Installed: 0.0.21 Candidate: 0.0.21 Version table: *** 0.0.21 0 500 http://de.archive.ubuntu.com/ubuntu/ oneiric/universe i386 Packages 100 /var/lib/dpkg/status
usbmount uses '/sbin/blkid -p /dev/sdb1' to determine the filesystem type. It seems that the output of blkid changed from natty to oneiric:
natty: $:/sbin/blkid -p /dev/sdb1 /dev/sdb1: UUID="ff3637e4-2a20-4a81-a276-93bea80e1bfa" VERSION="1.0" TYPE="ext3" USAGE="filesystem"
oneiric: $:/sbin/blkid -p /dev/sdb1 /dev/sdb1: UUID="ff3637e4-2a20-4a81-a276-93bea80e1bfa" VERSION="1.0" TYPE="ext3" USAGE="filesystem" PART_ENTRY_SCHEME="dos" PART_ENTRY_TYPE="0x83" PART_ENTRY_FLAGS="0x80" PART_ENTRY_NUMBER="1"
The regexp in
FSTYPE=$(echo "$DEVINFO" | sed 's/.* TYPE="\([^"]*\)".*/\1/g; s/[[:blank:]]*//g;')
triggers on PART_ENTRY_TYPE which finds '0x83' as file system type and prevents it from being mounted.
Attached patch fixes this for me.
Logs before the patch:
Oct 15 19:39:33 eeebox usbmount[814]: loaded usbmount configurations Oct 15 19:39:33 eeebox usbmount[814]: trying to acquire lock /var/run/usbmount/.mount.lock Oct 15 19:39:33 eeebox usbmount[814]: acquired lock /var/run/usbmount/.mount.lock Oct 15 19:39:33 eeebox usbmount[814]: /dev/sdb1 contains filesystem type 0x83 Oct 15 19:39:33 eeebox usbmount[814]: usbmount execution finished
Logs after applying the patch:
Oct 16 12:28:33 eeebox usbmount[4309]: loaded usbmount configurations Oct 16 12:28:33 eeebox usbmount[4309]: trying to acquire lock /var/run/usbmount/.mount.lock Oct 16 12:28:33 eeebox usbmount[4309]: acquired lock /var/run/usbmount/.mount.lock Oct 16 12:28:33 eeebox usbmount[4309]: /dev/sdb1 contains filesystem type ext3 Oct 16 12:28:33 eeebox usbmount[4309]: mountpoint /media/usb0 is available for /dev/sdb1 Oct 16 12:28:33 eeebox usbmount[4309]: executing command: mount -text3 -onoexec,nodev,noatime,nodiratime /dev/sdb1 /media/usb0 Oct 16 12:28:33 eeebox usbmount[4309]: executing command: run-parts /etc/usbmount/mount.d Oct 16 12:28:33 eeebox usbmount[4309]: usbmount execution finished
$: lsb_release -rd
Description: Ubuntu 11.10
Release: 11.10
$: apt-cache policy usbmount de.archive. ubuntu. com/ubuntu/ oneiric/universe i386 Packages dpkg/status
usbmount:
Installed: 0.0.21
Candidate: 0.0.21
Version table:
*** 0.0.21 0
500 http://
100 /var/lib/
usbmount uses '/sbin/blkid -p /dev/sdb1' to determine the filesystem type. It seems that the output of blkid changed from natty to oneiric:
natty: 2a20-4a81- a276-93bea80e1b fa" VERSION="1.0" TYPE="ext3" USAGE="filesystem"
$:/sbin/blkid -p /dev/sdb1
/dev/sdb1: UUID="ff3637e4-
oneiric: 2a20-4a81- a276-93bea80e1b fa" VERSION="1.0" TYPE="ext3" USAGE="filesystem" PART_ENTRY_ SCHEME= "dos" PART_ENTRY_ TYPE="0x83" PART_ENTRY_ FLAGS=" 0x80" PART_ENTRY_ NUMBER= "1"
$:/sbin/blkid -p /dev/sdb1
/dev/sdb1: UUID="ff3637e4-
The regexp in
FSTYPE=$(echo "$DEVINFO" | sed 's/.* TYPE="\ ([^"]*\ )".*/\1/ g; s/[[:blank: ]]*//g; ')
triggers on PART_ENTRY_TYPE which finds '0x83' as file system type and prevents it from being mounted.
Attached patch fixes this for me.
Logs before the patch:
Oct 15 19:39:33 eeebox usbmount[814]: loaded usbmount configurations usbmount/ .mount. lock usbmount/ .mount. lock
Oct 15 19:39:33 eeebox usbmount[814]: trying to acquire lock /var/run/
Oct 15 19:39:33 eeebox usbmount[814]: acquired lock /var/run/
Oct 15 19:39:33 eeebox usbmount[814]: /dev/sdb1 contains filesystem type 0x83
Oct 15 19:39:33 eeebox usbmount[814]: usbmount execution finished
Logs after applying the patch:
Oct 16 12:28:33 eeebox usbmount[4309]: loaded usbmount configurations usbmount/ .mount. lock usbmount/ .mount. lock nodev,noatime, nodiratime /dev/sdb1 /media/usb0 mount.d
Oct 16 12:28:33 eeebox usbmount[4309]: trying to acquire lock /var/run/
Oct 16 12:28:33 eeebox usbmount[4309]: acquired lock /var/run/
Oct 16 12:28:33 eeebox usbmount[4309]: /dev/sdb1 contains filesystem type ext3
Oct 16 12:28:33 eeebox usbmount[4309]: mountpoint /media/usb0 is available for /dev/sdb1
Oct 16 12:28:33 eeebox usbmount[4309]: executing command: mount -text3 -onoexec,
Oct 16 12:28:33 eeebox usbmount[4309]: executing command: run-parts /etc/usbmount/
Oct 16 12:28:33 eeebox usbmount[4309]: usbmount execution finished