NTFS-3g mounting by usbmount does not work

Bug #1596223 reported by Daniel Eiteneuer
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
usbmount (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I've a problem with usbmount having mounted an usb drive with ntfs.
I'm using Ubuntu 16.04 (4.4.0-24-generic) and usbmount version 0.0.22.

Comparing to the default configuration, I added the the options ntfs and fuseblk to FILESYSTEMS in /etc/usbmount/usbmount.conf, so now it looks like:
FILESYSTEMS="ntfs fuseblk vfat ext2 ext3 ext4 hfsplus"

When plugging in an usb drive with a ntfs partition on the usb drive, it is mounted via the command (have used usbmount debug and syslog to get the mount command):
mount -tntfs -osync,noexec,nodev,noatime,nodiratime /dev/sdb1 /media/usb0
That command is perfectly okay. But access to the mount point is not possible:
ls -lah /media
ls: cannot access '/media/usb0': Transport endpoint is not connected
total 36K
drwxr-xr-x 10 root root 4.0K Jun 25 20:29 .
drwxr-xr-x 23 root root 4.0K Jun 25 21:06 ..
lrwxrwxrwx 1 root root 4 Jun 25 20:29 usb -> usb0
d????????? ? ? ? ? ? usb0
drwxr-xr-x 2 root root 4.0K Jun 25 20:29 usb1
drwxr-xr-x 2 root root 4.0K Jun 25 20:29 usb2
drwxr-xr-x 2 root root 4.0K Jun 25 20:29 usb3
drwxr-xr-x 2 root root 4.0K Jun 25 20:29 usb4
drwxr-xr-x 2 root root 4.0K Jun 25 20:29 usb5
drwxr-xr-x 2 root root 4.0K Jun 25 20:29 usb6
drwxr-xr-x 2 root root 4.0K Jun 25 20:29 usb7

And listing ntfs processes with
ps ax|grep ntfs
results in:
 1961 pts/1 S+ 0:00 grep --color=auto ntfs

After unmounting the usb drive andrun the above mount command as root, "ps ax|grep ntfs" lists as follows:
 1969 ? Ss 0:00 /sbin/mount.ntfs-3g /dev/sdb1 /media/usb0 -o rw,sync,noexec,nodev,noatime,nodiratime
 1973 pts/1 S+ 0:00 grep --color=auto ntfs

Now access to the usb drive is possible:
ls -lah /media
total 40K
drwxr-xr-x 10 root root 4.0K Jun 25 20:29 .
drwxr-xr-x 23 root root 4.0K Jun 25 21:06 ..
lrwxrwxrwx 1 root root 4 Jun 25 20:29 usb -> usb0
drwxrwxrwx 1 root root 4.0K Jun 24 16:11 usb0
drwxr-xr-x 2 root root 4.0K Jun 25 20:29 usb1
drwxr-xr-x 2 root root 4.0K Jun 25 20:29 usb2
drwxr-xr-x 2 root root 4.0K Jun 25 20:29 usb3
drwxr-xr-x 2 root root 4.0K Jun 25 20:29 usb4
drwxr-xr-x 2 root root 4.0K Jun 25 20:29 usb5
drwxr-xr-x 2 root root 4.0K Jun 25 20:29 usb6
drwxr-xr-x 2 root root 4.0K Jun 25 20:29 usb7

So mounting the drive manually perfectly works, using usbmount does not, although the same mount was used. Why?

Tags: mount ntfs udev usb
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in usbmount (Ubuntu):
status: New → Confirmed
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.