You are not logged in.

#1 2013-08-11 15:45:16

gibbsrc
Member
Registered: 2012-03-19
Posts: 12

ntfs-3g not mounting after upgrade

I was mounting an ntfs drive at boot with default option in /etc/fstab for several months with no problems.  After the latest upgrade the mounting does not work properly.  I don't know if this is a systemd or an ntfs-3g issue.

I have changed the entry in /etc/fstab to the following in order to remove the boot dependency:

UUID=46040BCF040BC0C3 /backup ntfs noauto,users,x-systemd.automount 0 0

Now if I try to access the /backup directory the terminal hangs indefinitely, but if I enter

# mount /backup

the directory mounts without a problem.

Here is the journal entry for

# mount /backup
Aug 11 11:31:53 kids-hp ntfs-3g[763]: Version 2013.1.13 external FUSE 29
Aug 11 11:31:53 kids-hp ntfs-3g[763]: Mounted /dev/sdb1 (Read-Write, label "TOSHIBA EXT", NTFS 3.1)
Aug 11 11:31:53 kids-hp ntfs-3g[763]: Cmdline options: rw,noexec,nosuid,nodev,users
Aug 11 11:31:53 kids-hp ntfs-3g[763]: Mount options: rw,noexec,nosuid,nodev,users,allow_other,nonempty,relatime,fsname=/dev/sdb1,blkdev,blksize=4096
Aug 11 11:31:53 kids-hp ntfs-3g[763]: Ownership and permissions disabled, configuration type 7
Aug 11 11:31:53 kids-hp systemd-udevd[125]: specified group 'plugdev' unknown

Here is the journal entry when trying to access the directory after first unmounting it:

Aug 11 11:33:52 kids-hp dbus-daemon[271]: dbus[271]: [system] Activating via systemd: service name='org.freedesktop.ModemManager1' unit='dbus-org.freedesktop.ModemManager1.service'
Aug 11 11:33:52 kids-hp dbus[271]: [system] Activating via systemd: service name='org.freedesktop.ModemManager1' unit='dbus-org.freedesktop.ModemManager1.service'
Aug 11 11:33:52 kids-hp dbus[271]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.ModemManager1.service': Unit dbus-org.freedesktop.ModemManager1.service failed to load: No such file or directory. See system logs a
Aug 11 11:33:52 kids-hp dbus-daemon[271]: dbus[271]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.ModemManager1.service': Unit dbus-org.freedesktop.ModemManager1.service failed to load: No such file or directory.
Aug 11 11:33:54 kids-hp systemd[1]: Job dev-disk-by\x2duuid-46040BCF040BC0C3.device/start timed out.
Aug 11 11:33:54 kids-hp systemd[1]: Timed out waiting for device dev-disk-by\x2duuid-46040BCF040BC0C3.device.
Aug 11 11:33:54 kids-hp systemd[1]: Dependency failed for /backup.

Offline

#2 2013-08-12 10:45:43

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 4,050

Re: ntfs-3g not mounting after upgrade

The ntfs partition is on an USB-device ?

Is it a generic device or does/did it have special functionality under windows ?


Booting with apg Openrc, NOT systemd.
Automounting : not needed, i prefer pmount
Aur helpers : makepkg + my own local repo === rarely need them

Offline

#3 2013-08-13 23:54:01

gibbsrc
Member
Registered: 2012-03-19
Posts: 12

Re: ntfs-3g not mounting after upgrade

Its just a magnetic drive with a single ntfs partition.  No special functionality under Windows, although, it does have an autorun file which I have never run at its root.

Offline

#4 2013-08-14 11:32:15

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 4,050

Re: ntfs-3g not mounting after upgrade

Ok, i do have an idea what might be causing this, but it's not easy to explain.

TLDR : install modemmanager and check if that solves the automount issue.


Windows-based usb devices sometimes are 2 or more devices in 1 package.

The most common case for this is usb-modems.
Upon insertion they check if windows has the necessary drivers installed.
If the drivers are not present, the device  presents itself as a usb storage device, and starts an autoinstall of the drivers.
Incase the drivers are present, it switches to the usb modem device and presents that to windows.

Some external drives have proprietary code that functions in the same way.

The journal messages suggest systemd automount detects a usb multidevice and tries to start modemmanager to determine which kind of device it really is.
if modemmanager is not installed, systemd automount doesn't get an answer and fails.

issuing the mount command directly bypasses the systemd automount part.


Booting with apg Openrc, NOT systemd.
Automounting : not needed, i prefer pmount
Aur helpers : makepkg + my own local repo === rarely need them

Offline

#5 2013-08-15 02:42:36

gibbsrc
Member
Registered: 2012-03-19
Posts: 12

Re: ntfs-3g not mounting after upgrade

I already had modemmanager installed.   I have done some more troubleshooting and have discovered that mount does not always work.  It seems that there is some difficulty in recognizing the drive.  Initially when I plug in, I see the following with lsblk.

# lsblk --fs
NAME   FSTYPE LABEL       UUID                                 MOUNTPOINT
sda                                                            
├─sda1 vfat   HP_RECOVERY BD32-794B                            
├─sda2 ntfs   HP_PAVILION 1A12FE0927A4089A                     
├─sda3 ext3   /           d85b9d28-c896-4830-9869-1be33393f759 
├─sda4                                                         
├─sda5 swap               ead74862-15f7-4d8b-9811-35d97ccd6233 [SWAP]
├─sda6 ext3   /data       fd6afac6-d3cf-48e4-81ad-a084c5ace0c5 /data
└─sda7 ext3   arch        07b51a52-fef0-433a-a4c4-62dfbc33d101 /
sr0                                                            
sr1 

After about 30 seconds I see sdb in the list but no sdb1.

# lsblk --fs
NAME   FSTYPE LABEL       UUID                                 MOUNTPOINT
sda                                                            
├─sda1 vfat   HP_RECOVERY BD32-794B                            
├─sda2 ntfs   HP_PAVILION 1A12FE0927A4089A                     
├─sda3 ext3   /           d85b9d28-c896-4830-9869-1be33393f759 
├─sda4                                                         
├─sda5 swap               ead74862-15f7-4d8b-9811-35d97ccd6233 [SWAP]
├─sda6 ext3   /data       fd6afac6-d3cf-48e4-81ad-a084c5ace0c5 /data
└─sda7 ext3   arch        07b51a52-fef0-433a-a4c4-62dfbc33d101 /
sdb                                                            
sr0                                                            
sr1

If I try to enter

# blkid

at this point the command hangs.

Then about 4 minutes later sdb1 shows up.  Now mount will work fine.  I have not messed around with automount since my first post.  My initial problem was that mount stopped working at boot.  I was trying to use automount as a work-around to this problem.

# lsblk --fs
NAME   FSTYPE LABEL       UUID                                 MOUNTPOINT
sda                                                            
├─sda1 vfat   HP_RECOVERY BD32-794B                            
├─sda2 ntfs   HP_PAVILION 1A12FE0927A4089A                     
├─sda3 ext3   /           d85b9d28-c896-4830-9869-1be33393f759 
├─sda4                                                         
├─sda5 swap               ead74862-15f7-4d8b-9811-35d97ccd6233 [SWAP]
├─sda6 ext3   /data       fd6afac6-d3cf-48e4-81ad-a084c5ace0c5 /data
└─sda7 ext3   arch        07b51a52-fef0-433a-a4c4-62dfbc33d101 /
sdb                                                            
└─sdb1                                                         
sr0                                                            
sr1

By the way blkid at this point will show a valid drive name and UUID.  These do not show up with lsblk for some reason.

The journal shows the following.  Note that sdb1 shows up at Aug 14 22:27:16 :

Aug 14 22:23:02 kids-hp kernel: usb 1-6: new high-speed USB device number 18 using ehci-pci
Aug 14 22:23:02 kids-hp kernel: usb-storage 1-6:1.0: USB Mass Storage device detected
Aug 14 22:23:02 kids-hp kernel: scsi15 : usb-storage 1-6:1.0
Aug 14 22:23:05 kids-hp kernel: scsi 15:0:0:0: Direct-Access     TOSHIBA  External USB 3.0 0101 PQ: 0 ANSI: 4
Aug 14 22:23:05 kids-hp kernel: sd 15:0:0:0: [sdb] 1465149165 512-byte logical blocks: (750 GB/698 GiB)
Aug 14 22:23:05 kids-hp kernel: sd 15:0:0:0: [sdb] Write Protect is off
Aug 14 22:23:05 kids-hp kernel: sd 15:0:0:0: [sdb] Mode Sense: 37 00 00 08
Aug 14 22:23:05 kids-hp kernel: sd 15:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
Aug 14 22:23:35 kids-hp kernel: usb 1-6: reset high-speed USB device number 18 using ehci-pci
Aug 14 22:24:06 kids-hp kernel: usb 1-6: reset high-speed USB device number 18 using ehci-pci
Aug 14 22:24:37 kids-hp kernel: usb 1-6: reset high-speed USB device number 18 using ehci-pci
Aug 14 22:24:52 kids-hp dbus-daemon[261]: dbus[261]: [system] Activating via systemd: service name='org.freedesktop.ModemManager1' unit='dbus-org.freedesktop.ModemManager1.service'
Aug 14 22:24:52 kids-hp dbus[261]: [system] Activating via systemd: service name='org.freedesktop.ModemManager1' unit='dbus-org.freedesktop.ModemManager1.service'
Aug 14 22:24:52 kids-hp dbus[261]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.ModemManager1.service': Unit dbus-org.freedesktop.ModemManager1.service failed to load: No such file or directo...vice' for details.
Aug 14 22:24:52 kids-hp dbus-daemon[261]: dbus[261]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.ModemManager1.service': Unit dbus-org.freedesktop.ModemManager1.service failed to load: No suc...ice' for details.
Aug 14 22:25:08 kids-hp kernel: usb 1-6: reset high-speed USB device number 18 using ehci-pci
Aug 14 22:25:39 kids-hp kernel: usb 1-6: reset high-speed USB device number 18 using ehci-pci
Aug 14 22:26:10 kids-hp kernel: usb 1-6: reset high-speed USB device number 18 using ehci-pci
Aug 14 22:26:41 kids-hp kernel: usb 1-6: reset high-speed USB device number 18 using ehci-pci
Aug 14 22:26:52 kids-hp dbus-daemon[261]: dbus[261]: [system] Activating via systemd: service name='org.freedesktop.ModemManager1' unit='dbus-org.freedesktop.ModemManager1.service'
Aug 14 22:26:52 kids-hp dbus-daemon[261]: dbus[261]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.ModemManager1.service': Unit dbus-org.freedesktop.ModemManager1.service failed to load: No suc...ice' for details.
Aug 14 22:26:52 kids-hp dbus[261]: [system] Activating via systemd: service name='org.freedesktop.ModemManager1' unit='dbus-org.freedesktop.ModemManager1.service'
Aug 14 22:26:52 kids-hp dbus[261]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.ModemManager1.service': Unit dbus-org.freedesktop.ModemManager1.service failed to load: No such file or directo...vice' for details.
Aug 14 22:27:12 kids-hp kernel: usb 1-6: reset high-speed USB device number 18 using ehci-pci
Aug 14 22:27:16 kids-hp kernel:  sdb: sdb1

Offline

#6 2013-08-15 11:59:07

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 4,050

Re: ntfs-3g not mounting after upgrade

Ok, seems i may have been wrong about multi-device usb being the problem.

Apart from the modemanager lines, your problem looks very much like the one descrided here :
https://bbs.archlinux.org/viewtopic.php?id=168003

That problem seems to have been resolved in the 3.10.6-2 kernel package, are you running that version ?


Booting with apg Openrc, NOT systemd.
Automounting : not needed, i prefer pmount
Aur helpers : makepkg + my own local repo === rarely need them

Offline

#7 2013-08-16 01:16:38

gibbsrc
Member
Registered: 2012-03-19
Posts: 12

Re: ntfs-3g not mounting after upgrade

Thanks.  This fixes it completely.  Not sure how I missed that post.

Offline

Board footer

Powered by FluxBB