You are not logged in.

#1 2014-08-06 14:37:19

and-bnk
Member
Registered: 2013-04-10
Posts: 49

Unable to mount exfat after updating: libutils-linux 2.25-3?

Hi everyone!

I have just updated my system and libutils-linux has been upgraded to version 2.25-3 from version 2.24.2-1.
The problem is:
after the update, I could not mount my exfat device: some errors occur.

In details:
1- The device is a Truecrypt encrypted usb pen and the partition is formatted with exfat.
2- The problem is not Truecrypt itself since I have no problems on decrypting my usb pen. The problem occurs when trying to mount /dev/mapper/truecryptx.
3- Since device-mapper has been upgraded (to version 2.02.108-1 from 2.02.106-2) as well, at the beginning, I thought that the problem was due to the new release of device-mapper. But this is not the case since the problem also occurs after downgrading device-mapper to the previous version. Moreover, on second thought, I realized that everything is with device-mapper for my system is luks encrypted.
4- The error message is:

 mount: wrong fs type bad option bad superblock
 missing codepage or helper program or other error

5- I am pretty sure the problem is exfat+libutils. Indeed, I have no such problems after downgrading to version 2.24.2-1.
Plus, I do not experience any of these troubles when mounting the same device on the other laptop of mine. The latter is again an Arch Linux system and it is configured the same way the former is (e.g., same kernel), except the fact that I did not updated it (this means that the version of libutils-linux is still 2.24.2-1).
6- To be honest, I could not try to mount any other filesystem (apart ext4 and btrfs, which are installed on both my laptops) simply because I only have (external) devices formatted with exfat.

So,
is it a bug, or am I missing something?

Thank you in advance for any comment or advice.

Best,
and-bnk

Offline

#2 2014-08-06 15:04:27

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: Unable to mount exfat after updating: libutils-linux 2.25-3?

1. Provide the complete mount command you used.
2. Try mounting a non-encrypted exfat partition and see if it is exfat or the encryption. This will rule out half of the possible culprits.

Offline

#3 2014-08-07 20:10:31

and-bnk
Member
Registered: 2013-04-10
Posts: 49

Re: Unable to mount exfat after updating: libutils-linux 2.25-3?

Awebb wrote:

1. Provide the complete mount command you used.

I simply used

$sudo truecrypt /path/to/device /mountpoint

to decrypt it and mount it,
and

$sudo truecrypt --filesystem=none --slot=N /path/to/device

to decrypt it only.

Awebb wrote:

2. Try mounting a non-encrypted exfat partition and see if it is exfat or the encryption. This will rule out half of the possible culprits.

I confirm that the encryption is not the problem (I mounted it on other systems [another linux, windows, whatever] and everything went smooth).
I guess I figured out the problem: it seems like the problem is the command "mount" (not sure if only combined with exfat yet).
In fact, I decrypted the device via Truecrypt using the second of the above commands (which then /dev/mapper/truecryptN) and I tried to mount it. Now:
- using

$sudo mount /dev/mapper/truecryptN /mountpoint

the above error message appears, whereas
- using

$udiskctl mount --block-device /dev/mapper/truecryptX

I can mount it successfully.
As a matter of fact, the first command above fails [probably just] because Truecrypt uses "mount" to mount the decrypted devices.

Any ideas?

Thank you in advance!

Best,
and-bnk

Offline

#4 2014-08-09 13:47:36

alphazo
Member
Registered: 2009-10-20
Posts: 167

Re: Unable to mount exfat after updating: libutils-linux 2.25-3?

Same issue here with a simple exFAT formated SDcard (performed in a  in a GoPro Hero 3+). Downgrading to libutil-linux-2.24.2-1 fixes the problem. I will submit a bug in the tracker.

https://bugs.archlinux.org/task/41514

Last edited by alphazo (2014-08-09 13:56:38)

Offline

#5 2014-08-09 15:35:35

alphazo
Member
Registered: 2009-10-20
Posts: 167

Re: Unable to mount exfat after updating: libutils-linux 2.25-3?

Strange, my bug has been marked as a duplicate but doesn't seem the same to me.

Here are the journalctl and udisks outputs with the different version of libutils-linux:

libutil-linux-2.25-3 - Not Mounting
journaltcl

Aug 09 17:11:16 fatfly kernel: usb 1-1.2: new high-speed USB device number 9 using ehci-pci
Aug 09 17:11:17 fatfly kernel: usb-storage 1-1.2:1.0: USB Mass Storage device detected
Aug 09 17:11:17 fatfly kernel: scsi8 : usb-storage 1-1.2:1.0
Aug 09 17:11:17 fatfly mtp-probe[3741]: checking bus 1, device 9: "/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2"
Aug 09 17:11:17 fatfly mtp-probe[3741]: bus: 1, device: 9 was not an MTP device
Aug 09 17:11:17 fatfly udisks-daemon[2405]: **** scsi_host ADDING /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0/host8/scsi_host/host8
Aug 09 17:11:17 fatfly udisks-daemon[2405]: **** scsi_host IGNORING ADD /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0/host8/scsi_host/host8
Aug 09 17:11:18 fatfly kernel: scsi 8:0:0:0: Direct-Access     Lexar    microSD RDR      0815 PQ: 0 ANSI: 6
Aug 09 17:11:18 fatfly kernel: sd 8:0:0:0: [sdb] 125089792 512-byte logical blocks: (64.0 GB/59.6 GiB)
Aug 09 17:11:18 fatfly kernel: sd 8:0:0:0: [sdb] Write Protect is off
Aug 09 17:11:18 fatfly kernel: sd 8:0:0:0: [sdb] Mode Sense: 23 00 00 00
Aug 09 17:11:18 fatfly kernel: sd 8:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
Aug 09 17:11:18 fatfly kernel:  sdb: sdb1
Aug 09 17:11:18 fatfly kernel: sd 8:0:0:0: [sdb] Attached SCSI removable disk
Aug 09 17:11:18 fatfly udisks-daemon[2405]: **** ADDING /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0/host8/target8:0:0/8:0:0:0/block/sdb
Aug 09 17:11:18 fatfly udisks-daemon[2405]: **** UPDATING /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0/host8/target8:0:0/8:0:0:0/block/sdb
Aug 09 17:11:18 fatfly udisks-daemon[2405]: **** ADDED /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0/host8/target8:0:0/8:0:0:0/block/sdb
Aug 09 17:11:18 fatfly udisks-daemon[2405]: **** EMITTING ADDED for /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0/host8/target8:0:0/8:0:0:0/bl
Aug 09 17:11:18 fatfly udisks-daemon[2405]: **** ADDING /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0/host8/target8:0:0/8:0:0:0/block/sdb/sdb1
Aug 09 17:11:18 fatfly udisks-daemon[2405]: **** UPDATING /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0/host8/target8:0:0/8:0:0:0/block/sdb/sd
Aug 09 17:11:18 fatfly udisks-daemon[2405]: **** ADDED /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0/host8/target8:0:0/8:0:0:0/block/sdb/sdb1
Aug 09 17:11:18 fatfly udisks-daemon[2405]: **** EMITTING ADDED for /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0/host8/target8:0:0/8:0:0:0/bl
Aug 09 17:11:19 fatfly dbus[543]: [system] Activating via systemd: service name='org.freedesktop.Avahi' unit='dbus-org.freedesktop.Avahi.service'
Aug 09 17:11:19 fatfly dbus[543]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.Avahi.service': Unit dbus-org.freedesktop.Avahi.servic
Aug 09 17:11:20 fatfly dbus[543]: [system] Activating via systemd: service name='org.freedesktop.Avahi' unit='dbus-org.freedesktop.Avahi.service'
Aug 09 17:11:20 fatfly dbus[543]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.Avahi.service': Unit dbus-org.freedesktop.Avahi.service'

udisks --show-info /dev/sdb1

Showing information for /org/freedesktop/UDisks/devices/sdb1
  native-path:                 /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0/host6/target6:0:0/6:0:0:0/block/sdb/sdb1
  device:                      8:17
  device-file:                 /dev/sdb1
    presentation:              /dev/sdb1
    by-id:                     /dev/disk/by-id/usb-Lexar_microSD_RDR_000000006467-0:0-part1
    by-path:                   /dev/disk/by-path/pci-0000:00:1a.0-usb-0:1.2:1.0-scsi-0:0:0:0-part1
  detected at:                 Sat 09 Aug 2014 05:32:18 PM CEST
  system internal:             0
  removable:                   0
  has media:                   1 (detected at Sat 09 Aug 2014 05:32:18 PM CEST)
    detects change:            0
    detection by polling:      0
    detection inhibitable:     0
    detection inhibited:       0
  is read only:                0
  is mounted:                  0
  mount paths:             
  mounted by uid:              0
  presentation hide:           0
  presentation nopolicy:       0
  presentation name:           
  presentation icon:           
  automount hint:              
  size:                        63978864640
  block size:                  512
  job underway:                no
  usage:                       
  type:                        
  version:                     
  uuid:                        
  label:                       
  partition:
    part of:                   /org/freedesktop/UDisks/devices/sdb
    scheme:                    mbr
    number:                    1
    type:                      0x07
    flags:                     boot
    offset:                    67108864
    alignment offset:          0
    size:                      63978864640
    label:                     
    uuid:                      

libutil-linux-2.24.2-1 - Working fine / Mounting
journaltcl

Aug 09 17:23:19 fatfly kernel: usb 1-1.2: new high-speed USB device number 8 using ehci-pci
Aug 09 17:23:19 fatfly kernel: usb-storage 1-1.2:1.0: USB Mass Storage device detected
Aug 09 17:23:19 fatfly kernel: scsi7 : usb-storage 1-1.2:1.0
Aug 09 17:23:19 fatfly mtp-probe[3161]: checking bus 1, device 8: "/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2"
Aug 09 17:23:19 fatfly mtp-probe[3161]: bus: 1, device: 8 was not an MTP device
Aug 09 17:23:20 fatfly kernel: scsi 7:0:0:0: Direct-Access     Lexar    microSD RDR      0815 PQ: 0 ANSI: 6
Aug 09 17:23:21 fatfly kernel: sd 7:0:0:0: [sdb] 125089792 512-byte logical blocks: (64.0 GB/59.6 GiB)
Aug 09 17:23:21 fatfly kernel: sd 7:0:0:0: [sdb] Write Protect is off
Aug 09 17:23:21 fatfly kernel: sd 7:0:0:0: [sdb] Mode Sense: 23 00 00 00
Aug 09 17:23:21 fatfly kernel: sd 7:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
Aug 09 17:23:21 fatfly kernel:  sdb: sdb1
Aug 09 17:23:21 fatfly kernel: sd 7:0:0:0: [sdb] Attached SCSI removable disk
Aug 09 17:23:21 fatfly udisksd[702]: Mounted /dev/sdb1 at /run/media/alpha/BCE9-78B9 on behalf of uid 1000
Aug 09 17:23:21 fatfly org.gtk.Private.UDisks2VolumeMonitor[604]: libbluray/bdnav/index_parse.c:162: indx_parse(): error opening /run/media/alpha/BCE9-78B9/BD
Aug 09 17:23:21 fatfly org.gtk.Private.UDisks2VolumeMonitor[604]: libbluray/bdnav/index_parse.c:162: indx_parse(): error opening /run/media/alpha/BCE9-78B9/BD
Aug 09 17:23:22 fatfly dbus[487]: [system] Activating via systemd: service name='org.freedesktop.Avahi' unit='dbus-org.freedesktop.Avahi.service'
Aug 09 17:23:22 fatfly dbus[487]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.Avahi.service': Unit dbus-org.freedesktop.Avahi.servic
Aug 09 17:23:23 fatfly dbus[487]: [system] Activating via systemd: service name='org.freedesktop.Avahi' unit='dbus-org.freedesktop.Avahi.service'
Aug 09 17:23:23 fatfly dbus[487]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.Avahi.service': Unit dbus-org.freedesktop.Avahi.servic

udisks --show-info /dev/sdb1

Showing information for /org/freedesktop/UDisks/devices/sdb1
  native-path:                 /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0/host7/target7:0:0/7:0:0:0/block/sdb/sdb1
  device:                      8:17
  device-file:                 /dev/sdb1
    presentation:              /dev/sdb1
    by-id:                     /dev/disk/by-id/usb-Lexar_microSD_RDR_000000006467-0:0-part1
    by-id:                     /dev/disk/by-uuid/BCE9-78B9
    by-path:                   /dev/disk/by-path/pci-0000:00:1a.0-usb-0:1.2:1.0-scsi-0:0:0:0-part1
  detected at:                 Sat 09 Aug 2014 05:27:22 PM CEST
  system internal:             0
  removable:                   0
  has media:                   1 (detected at Sat 09 Aug 2014 05:27:22 PM CEST)
    detects change:            0
    detection by polling:      0
    detection inhibitable:     0
    detection inhibited:       0
  is read only:                0
  is mounted:                  1
  mount paths:             /run/media/alpha/BCE9-78B9
  mounted by uid:              0
  presentation hide:           0
  presentation nopolicy:       0
  presentation name:           
  presentation icon:           
  automount hint:              
  size:                        63978864640
  block size:                  512
  job underway:                no
  usage:                       filesystem
  type:                        exfat
  version:                     1.0
  uuid:                        BCE9-78B9
  label:                       
  partition:
    part of:                   /org/freedesktop/UDisks/devices/sdb
    scheme:                    mbr
    number:                    1
    type:                      0x07
    flags:                     boot
    offset:                    67108864
    alignment offset:          0
    size:                      63978864640
    label:                     
    uuid:                      

Offline

#6 2014-08-09 15:45:25

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Unable to mount exfat after updating: libutils-linux 2.25-3?

alphazo wrote:

Strange, my bug has been marked as a duplicate but doesn't seem the same to me.

Of course it's the same. exfat + util-linux-2.25 = mount failure. Both bugs convey the same thing, you just picked the other part of the equation to file the bug against (util-linux instead of exfat). If you read the bug report I dup'd yours to, you'll see that fuse-exfat upstream has already fixed the bug in trunk. There's nothing to be fixed in util-linux -- mount helpers simply need to abide by the mount helper API, which mount.exfat did not.

Offline

#7 2014-08-09 15:51:20

alphazo
Member
Registered: 2009-10-20
Posts: 167

Re: Unable to mount exfat after updating: libutils-linux 2.25-3?

Thanks @falconindy for the detailed explanation.I will use the downgrade workaround for now.

Offline

Board footer

Powered by FluxBB