FS#43463 - [ntfs-3g, systemd] Mounted partition is immediately unmounted
Attached to Project:
Arch Linux
Opened by A. Sarkar (asarkar) - Thursday, 15 January 2015, 19:46 GMT
Last edited by Gaetan Bisson (vesath) - Monday, 19 January 2015, 21:14 GMT
Opened by A. Sarkar (asarkar) - Thursday, 15 January 2015, 19:46 GMT
Last edited by Gaetan Bisson (vesath) - Monday, 19 January 2015, 21:14 GMT
|
Details
Description:
I cannot mount an NTFS partition from fstab and read/write from it. It appears the partition is immediately unmounted and ntfs-3g exits. Additional info: ntfs-3g 2014.2.15-1 Steps to reproduce: $ blkid /dev/sdb1: UUID="63DC4A4F5506D55F" TYPE="ntfs" PARTUUID="6721a13f-01" $ sudo ntfs-3g -o debug,no_detach /dev/sdb1 /media/usb FUSE library version: 2.9.3 nullpath_ok: 0 nopath: 0 utime_omit_ok: 0 Version 2014.2.15 external FUSE 29 Mounted /dev/sdb1 (Read-Write, label "", NTFS 3.1) Cmdline options: debug,no_detach Mount options: allow_other,nonempty,relatime,fsname=/dev/sdb1,blkdev,blksize=4096 Ownership and permissions disabled, configuration type 7 unique: 1, opcode: INIT (26), nodeid: 0, insize: 56, pid: 0 INIT: 7.23 flags=0x0003f7fb max_readahead=0x00020000 INIT: 7.19 flags=0x00000051 max_readahead=0x00020000 max_write=0x00020000 max_background=0 congestion_threshold=0 unique: 1, success, outsize: 40 unique: 2, opcode: GETATTR (3), nodeid: 1, insize: 56, pid: 7196 getattr / unique: 2, success, outsize: 120 unique: 3, opcode: GETATTR (3), nodeid: 1, insize: 56, pid: 7196 getattr / unique: 3, success, outsize: 120 unique: 4, opcode: STATFS (17), nodeid: 1, insize: 40, pid: 7196 statfs / unique: 4, success, outsize: 96 unique: 5, opcode: FORGET (2), nodeid: 1, insize: 48, pid: 0 FORGET 1/1 unique: 6, opcode: DESTROY (38), nodeid: 0, insize: 40, pid: 0 Unmounting /dev/sdb1 () unique: 6, success, outsize: 16 |
This task depends upon
Regardless, this does not seem like a packaging bug. Could you report this bug upstream as per http://www.tuxera.com/community/ntfs-3g-faq/#bugreport ?
Cheers.
The problem appears to be related to units generated by systemd from /etc/fstab.
$ systemctl status media-usb.mount
● media-usb.mount - /media/usb
Loaded: loaded (/etc/fstab)
Active: inactive (dead)
Where: /media/usb
What: /dev/disk/by-uuid/A0CA-8896
Docs: man:fstab(5)
man:systemd-fstab-generator(8)
I can successfully mount NTFS partitions to mountpoints not included in fstab.
Or is the bug report you mentioned from somebody else? What does the journal say?
I've attached journalctl output from inserting the USB flash drive with the NTFS partition to unmount.
successful.log (3.6 KiB)
systemd-analyze set-log-level debug
Will show systemd's involvement.
The relevant lines appear to be:
Jan 18 12:24:07 ganymede systemd[1]: media-usb.mount changed dead -> mounted
Jan 18 12:24:07 ganymede systemd[1]: Unit media-usb.mount is bound to inactive service. Stopping, too.
Jan 18 12:24:07 ganymede systemd[1]: Trying to enqueue job media-usb.mount/stop/fail
Jan 18 12:24:07 ganymede systemd[1]: Installed new job media-usb.mount/stop as 873
Jan 18 12:24:07 ganymede systemd[1]: Enqueued job media-usb.mount/stop as 873
Altered fstab without executing systemctl daemon-reload afterward?
2) https://unix.stackexchange.com/questions/169435/systemd-mount-only-mounts-on-boot-fails-to-remount-afterwards
Leftover unit file somewhere?
3) https://bugzilla.redhat.com/show_bug.cgi?id=1159987
Wrong label or UUID in /etc/fstab?
In fact:
What: /dev/disk/by-uuid/A0CA-8896
$ blkid
/dev/sdb1: UUID="63DC4A4F5506D55F" TYPE="ntfs" PARTUUID="6721a13f-01"