[Bug 435192] Re: Automatic mounting of read only ntfs partition on usb device fails
Launchpad Bug Tracker
435192 at bugs.launchpad.net
Mon Sep 17 09:40:08 UTC 2012
** Branch linked: lp:ubuntu/precise-proposed/ntfs-3g
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ntfs-3g in Ubuntu.
Automatic mounting of read only ntfs partition on usb device fails
Status in OEM Priority Project:
Status in OEM Priority Project precise series:
Status in abstraction for enumerating and managing block devices:
Status in “ntfs-3g” package in Ubuntu:
Status in “udisks” package in Ubuntu:
Status in “udisks2” package in Ubuntu:
Status in “ntfs-3g” source package in Precise:
Status in “udisks” source package in Precise:
Status in “ntfs-3g” source package in Quantal:
Status in “udisks” source package in Quantal:
Status in “udisks2” source package in Quantal:
Status in “ntfs-3g” package in Debian:
OEM customers raise this issue, thinking that the error message can be misleading to inexperienced users.
See attachment and merge proposals.
Format a SD card with NTFS, lock the SD card as write-protected, insert the card into the SD card slot. If the card is mounted as read-only, the bug is fixed.
To ensure the patch does not cause mounting to fail completely or mounting of writable devices as readonly, verification should include both writable and readonly NTFS partitions.
The udisks2 test suite covers both read-only and writable NTFS partitions:
You can download it and run it against the installed system binaries;
it will use scsi-debug for a virtual hard disk/CD-ROM, and not touch
any of your real partitions.
With the current versions in the archive, you get:
ERROR: test_ntfs (__main__.FS)
Traceback (most recent call last):
File "src/tests/integration-test", line 636, in test_ntfs
File "src/tests/integration-test", line 758, in _do_fs_check
File "src/tests/integration-test", line 931, in _do_udisks_check
mount_path = cd_fs.call_mount_sync(no_options, None)
File "/usr/lib/python3/dist-packages/gi/types.py", line 47, in function
return info.invoke(*args, **kwargs)
gi._glib.GError: GDBus.Error:org.freedesktop.UDisks2.Error.Failed: Error
mounting /dev/sr1 at /media/root/2FB591B374B26011: Command-line `mount -t
"ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=0,gid=0,dmask=0077,fmask=0177"
"/dev/sr1" "/media/root/2FB591B374B26011"' exited with non-zero exit status 18:
Error opening '/dev/sr1': Read-only file system
Failed to mount '/dev/sr1': Read-only file system
With the proposed version, the test succeeds.
If you prefer, you can also run the steps manually; described in
Mounting of read only NTFS filesystem gives a following error popup:
Cannot mount volume.
Unable to mount the volume '<Volume name>'.
Error opening '/dev/sdb2': Read-only file system
Failed to mount '/dev/sdb2': Read-only file system
I believe this should be mounted as read-only instead of an error
Mounting by hand with the "-o ro" argument works as expected.
DistroRelease: Ubuntu 10.04
Package: mountall 2.15
ProcVersionSignature: Ubuntu 2.6.32-24.39-generic 22.214.171.124+drm33.5
Uname: Linux 2.6.32-24-generic i686
UserGroups: adm admin audio cdrom dialout dip fax fuse lpadmin netdev plugdev sambashare tape video
To manage notifications about this bug go to:
More information about the foundations-bugs