Bug 48502

Summary: Fails to mount USB-HDD, probably due to a volume label handling bug
Product: udisks Reporter: sdiconov
Component: generalAssignee: David Zeuthen (not reading bugmail) <zeuthen>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: medium    
Version: unspecified   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: cat /etc/fstab
udisksctl dump
udevadm info --export-db
cat /proc/self/mountinfo
gvfs-mount -li
udisksctl monitor

Description sdiconov 2012-04-10 05:35:04 UTC
Created attachment 59720 [details]
cat /etc/fstab

Since an automatic upgrade to udisks2 happened, my desktop lost the ability to mount my USB HDD(s). The drive is recognized and activates properly, but I am not able to mount it and see its contents.  

I have GNOME3 and Cinnmon installed and the GUI error message reads   

Error mounting /dev/sdd1 at /run/media/slava/Аудио: Command-line `mount -t "reiserfs" -o "uhelper=udisks2,nodev,nosuid" "/dev/sdd1" "/run/media/slava/\320\220\321\203\320\264\320\270\320\276"' exited with non-zero exit status 32: mount: mount point /run/media/slava/\320\220\321\203\320\264\320\270\320\276 does not exist

The drive has a single reiserfs partition and the volume label is in Russian. It works perfectly at a different Linux box without udisks.

The versions are:
udisks-1.0.4-alt1
gvfs-1.12.0-alt2
libatasmart-0.18-alt1

The distro is ALTLinux (unstable repo) and the packagers of the udisks rpm have been notified as well.
Comment 1 sdiconov 2012-04-10 05:35:46 UTC
Created attachment 59721 [details]
udisksctl dump
Comment 2 sdiconov 2012-04-10 05:36:23 UTC
Created attachment 59722 [details]
udevadm info --export-db
Comment 3 sdiconov 2012-04-10 05:37:09 UTC
Created attachment 59723 [details]
cat /proc/self/mountinfo
Comment 4 sdiconov 2012-04-10 05:39:42 UTC
Created attachment 59724 [details]
gvfs-mount -li
Comment 5 sdiconov 2012-04-10 05:41:54 UTC
Created attachment 59725 [details]
udisksctl monitor
Comment 6 sdiconov 2012-04-10 05:51:08 UTC
My SD card, formatted by a camera as FAT and labeled "CANON_DC", mounts well.

The error message makes me think that udisks might be unable to handle unicode (UTF8) in disk labels. My HDD was formatted and labeled "Аудио" using gparted. It mounts well at a different machine (pmount is used there) with a correct path 

"/media/Аудио".
Comment 7 David Zeuthen (not reading bugmail) 2012-04-10 06:36:35 UTC
Yeah, I can reproduce this bug. Working on a fix.
Comment 8 David Zeuthen (not reading bugmail) 2012-04-10 09:11:53 UTC
OK, fixed with this commit

 http://cgit.freedesktop.org/udisks/commit/?id=91f79a9beba9b1a1ceeb1cb3f26d95be3dcf62b7

Thanks.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.