USB drive not mounted

Bug #14892 reported by Nicolas Riesco
6
Affects Status Importance Assigned to Milestone
pmount (Ubuntu)
Fix Released
Medium
Martin Pitt

Bug Description

I've got a USB drive with several partitions connected to my laptop. Although,
Ubuntu detects the device and its partitions, it fails to mount it automatically.

I've tracked the problem down to pmount. This is what I get when i try to pmount
manually:

        xxx@yyyyyy:~$ pmount -d /dev/sda2

        resolved /dev/sda2 to device /dev/sda2
        mount point to be used: /media/sda2
        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_sda2
        find_sysfs_device: looking for sysfs directory for device 8:2
        find_sysfs_device: checking whether /dev/sda2 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/sda2 matches partition 8:0
        find_sysfs_device: checking whether device /dev/sda2 matches partition 8:5
        find_sysfs_device: checking whether device /dev/sda2 matches partition 8:3
        find_sysfs_device: checking whether device /dev/sda2 matches partition 8:2
        find_sysfs_device: -> partition matches, belongs to block device
/sys/block/sda
        device_removable: corresponding block device for /dev/sda2 is /sys/block/sda
        get_blockdev_attr: value of /sys/block/sda/removable == 0
        policy check passed
        attempting mount: executing '/bin/mount -t udf -o
rw,nosuid,nodev,user,sync,atime,noexec,uid=1000,gid=1000,umask=007,iocharset=utf8
/dev/sda2 /media/sda2'

It seems the problem it's got to do with the type "-t udf". Actually, I can
mount this partition manually, as follows:

        xxx@yyyyyy:~$ pmount -d -t ext3 /dev/sda2

        resolved /dev/sda2 to device /dev/sda2
        mount point to be used: /media/sda2
        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_sda2
        find_sysfs_device: looking for sysfs directory for device 8:2
        find_sysfs_device: checking whether /dev/sda2 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/sda2 matches partition 8:0
        find_sysfs_device: checking whether device /dev/sda2 matches partition 8:5
        find_sysfs_device: checking whether device /dev/sda2 matches partition 8:3
        find_sysfs_device: checking whether device /dev/sda2 matches partition 8:2
        find_sysfs_device: -> partition matches, belongs to block device
/sys/block/sda
        device_removable: corresponding block device for /dev/sda2 is /sys/block/sda
        get_blockdev_attr: value of /sys/block/sda/removable == 0
        policy check passed
        attempting mount: executing '/bin/mount -t ext3 -o
rw,nodev,noauto,nosuid,user,sync,atime,noexec /dev/sda2 /media/sda2'
        mount attempt terminated with status 0

PS: During the installation, using the hoary-rc-install-i386 cd, the USB drive
was detected and mounted perfectly.
It stopped working after an upgrade on April, 1st.

Revision history for this message
Nicolas Riesco (nicolas-riesco) wrote :
Download full text (3.5 KiB)

Tonight, on April 5th, after updating my usb drive is mounted automatically
again. Therefore, I beleive that the new version of pmount 0.7.2-0ubuntu1 solves
this problem.

This is the output I get now:

xxx@yyyyyy:~$ pmount -d /dev/sda2
resolved /dev/sda2 to device /dev/sda2
mount point to be used: /media/sda2
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_sda2
find_sysfs_device: looking for sysfs directory for device 8:2
find_sysfs_device: checking whether /dev/sda2 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/sda2 matches partition 8:0
find_sysfs_device: checking whether device /dev/sda2 matches partition 8:5
find_sysfs_device: checking whether device /dev/sda2 matches partition 8:3
find_sysfs_device: checking whether device /dev/sda2 matches partition 8:2
find_sysfs_device: -> partition matches, belongs to block device /sys/block/sda
device_removable: corresponding block device for /dev/sda2 is /sys/block/sda
get_blockdev_attr: value of /sys/block/sda/removable == 0
policy check passed
attempting mount: executing '/bin/mount -t udf -o
rw,nosuid,nodev,user,sync,atime,noexec,uid=1000,gid=1000,umask=007,iocharset=utf8
/dev/sda2 /media/sda2'
mount attempt terminated with status 8192
attempting mount: executing '/bin/mount -t udf -o
rw,nosuid,nodev,user,sync,atime,noexec,uid=1000,gid=1000,umask=007 /dev/sda2
/media/sda2'
mount attempt terminated with status 8192
attempting mount: executing '/bin/mount -t iso9660 -o
rw,nosuid,nodev,user,sync,atime,noexec,uid=1000,gid=1000 /dev/sda2 /media/sda2'
mount attempt terminated with status 8192
attempting mount: executing '/bin/mount -t iso9660 -o
rw,nosuid,nodev,user,sync,atime,noexec,uid=1000,gid=1000 /dev/sda2 /media/sda2'
mount attempt terminated with status 8192
attempting mount: executing '/bin/mount -t vfat -o
rw,nosuid,nodev,user,quiet,sync,atime,noexec,uid=1000,gid=1000,umask=077,iocharset=utf8
/dev/sda2 /media/sda2'
mount attempt terminated with status 8192
attempting mount: executing '/bin/mount -t vfat -o
rw,nosuid,nodev,user,quiet,sync,atime,noexec,uid=1000,gid=1000,umask=077
/dev/sda2 /media/sda2'
mount attempt terminated with status 8192
attempting mount: executing '/bin/mount -t ntfs -o
ro,nosuid,nodev,user,sync,atime,noexec,uid=1000,gid=1000,umask=077,iocharset=utf8
/dev/sda2 /media/sda2'
mount attempt terminated with status 8192
attempting mount: executing '/bin/mount -t ntfs -o
ro,nosuid,nodev,user,sync,atime,noexec,uid=1000,gid=1000,umask=077 /dev/sda2
/media/sda2'
mount attempt terminated with status 8192
attempting mount: executing '/bin/mount -t hfsplus -o
rw,nosuid,nodev,user,sync,atime,noexec,uid=1000,gid=1000 /dev/sda2 /media/sda2'
mount attempt terminated with status 8192
attempting mount: executing '/bin/mount -t hfsplus -o
rw,nosuid,nodev,user,sync,atime,noexec,uid=1000,gid=1000 /dev/sda2 /media/sda2'
mount attempt terminated with status 8192
attempting mount: executing '/bin/mount -t hfs -o
rw,nosuid,nodev,user,sync,atim...

Read more...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.