Package: usbmount Version: 0.0.17 Severity: serious Hi there,
I didn't use my USB-disk for two or three months now, but I know that I never had any trouble ... in the meantime usbmount 0.0.17 came out and I believe there is where the trouble starts. Unfortunately usbmount 0.0.16 isn't available anymore in debian repositories, so I cannot doublecheck if it works with that. My USB-disk (not flash) has two partitions: 1. vfat 2. ext3. Both partitions are recognized and have no errors. When the disk is connected, it is recognized and usbmount mounts them with correct FS types, but both partitions on the exact same location (/media/usb0): -------- excerpt from /var/log/syslog -------- Jul 1 00:55:05 sokrates kernel: [440465.213768] sdb: sdb1 sdb2 Jul 1 00:55:05 sokrates kernel: [440465.265885] sd 6:0:0:0: [sdb] Attached SCSI disk Jul 1 00:55:05 sokrates kernel: [440465.266074] sd 6:0:0:0: Attached scsi generic sg1 type 0 Jul 1 00:55:05 sokrates usbmount[21891]: trying to acquire lock /var/run/usbmount/.mount-dev-sdb.lock Jul 1 00:55:05 sokrates usbmount[21891]: acquired lock /var/run/usbmount/.mount-dev-sdb.lock Jul 1 00:55:05 sokrates usbmount[21891]: testing whether /dev/sdb is readable Jul 1 00:55:05 sokrates usbmount[21891]: /dev/sdb does not contain a filesystem or disklabel Jul 1 00:55:06 sokrates usbmount[21916]: trying to acquire lock /var/run/usbmount/.mount-dev-sdb2.lock Jul 1 00:55:06 sokrates usbmount[21920]: trying to acquire lock /var/run/usbmount/.mount-dev-sdb1.lock Jul 1 00:55:06 sokrates usbmount[21916]: acquired lock /var/run/usbmount/.mount-dev-sdb2.lock Jul 1 00:55:06 sokrates usbmount[21916]: testing whether /dev/sdb2 is readable Jul 1 00:55:06 sokrates usbmount[21920]: acquired lock /var/run/usbmount/.mount-dev-sdb1.lock Jul 1 00:55:06 sokrates usbmount[21920]: testing whether /dev/sdb1 is readable Jul 1 00:55:06 sokrates usbmount[21916]: /dev/sdb2 contains a filesystem or disklabel Jul 1 00:55:06 sokrates usbmount[21920]: /dev/sdb1 contains a filesystem or disklabel Jul 1 00:55:06 sokrates usbmount[21916]: /dev/sdb2 contains filesystem type ext3 Jul 1 00:55:06 sokrates usbmount[21916]: mountpoint /media/usb0 is available for /dev/sdb2 Jul 1 00:55:06 sokrates usbmount[21916]: executing command: mount -text3 -onoexec,nodev,noatime /dev/sdb2 /media/usb0 Jul 1 00:55:06 sokrates usbmount[21920]: /dev/sdb1 contains filesystem type vfat Jul 1 00:55:06 sokrates usbmount[21920]: mountpoint /media/usb0 is available for /dev/sdb1 Jul 1 00:55:06 sokrates usbmount[21920]: executing command: mount -tvfat -onoexec,nodev,noatime /dev/sdb1 /media/usb0 Jul 1 00:55:06 sokrates kernel: [440466.513924] kjournald starting. Commit interval 5 seconds Jul 1 00:55:06 sokrates kernel: [440466.519001] EXT3 FS on sdb2, internal journal Jul 1 00:55:06 sokrates kernel: [440466.519044] EXT3-fs: recovery complete. Jul 1 00:55:06 sokrates kernel: [440466.519260] EXT3-fs: mounted filesystem with ordered data mode. Jul 1 00:55:06 sokrates usbmount[21916]: executing command: run-parts /etc/usbmount/mount.d Jul 1 00:55:06 sokrates usbmount[21920]: executing command: run-parts /etc/usbmount/mount.d -------- end excerpt from /var/log/syslog -------- -------- some commands -------- $ mount | grep usb none on /proc/bus/usb type usbfs (rw,nosuid,nodev,devgid=1004,devmode=664) /dev/sdb1 on /media/usb0 type vfat (rw,noexec,nodev,noatime) /dev/sdb2 on /media/usb0 type ext3 (rw,noexec,nodev,noatime) # umount /dev/sdb1 umount: cannot umount /dev/sdb1 -- /dev/sdb2 is mounted over it on the same point. -------- some commands -------- It seems that usbmount is in a race when checking the available mountpoint and find it both times available ... it's just a matter of luck which partition is mounted first. This might lead to data loss, since a standard user might not recognize that there is such problem. Regards Hans-Georg Bork PS: It might be possible that the bug lies within udev which starts usbmount simultaneous. If this is true, please forward to them. --- System information. --- Architecture: i386 Kernel: Linux 2.6.26-3-sokrates.home Debian Release: squeeze/sid 500 unstable www.debian-multimedia.org 500 unstable ftp.de.debian.org 500 testing ftp.be.debian.org --- Package information. --- Depends (Version) | Installed =============================-+-=========== udev | 0.141-1 lockfile-progs | 0.1.13 Package's Recommends field is empty. Package's Suggests field is empty.
signature.asc
Description: This is a digitally signed message part