NTFS-3g mounting by usbmount does not work
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/
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,
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,
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?
Status changed to 'Confirmed' because the bug affects multiple users.