[Bug 435192] Re: Automatic mounting of read only ntfs partition on usb device fails
Adam Conrad
adconrad at 0c3.net
Tue Sep 11 04:10:38 UTC 2012
Hello Tero, or anyone else affected,
Accepted ntfs-3g into precise-proposed. The package will build now and
be available at http://launchpad.net/ubuntu/+source/ntfs-
3g/1:2012.1.15AR.1-1ubuntu1.2 in a few hours, and then in the -proposed
repository.
Please help us by testing this new package. See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to
enable and use -proposed. Your feedback will aid us getting this update
out to other Ubuntu users.
If this package fixes the bug for you, please change the bug tag from
verification-needed to verification-done. If it does not, change the
tag to verification-failed. In either case, details of your testing
will help us make a better decision.
Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in
advance!
** Changed in: ntfs-3g (Ubuntu Precise)
Status: In Progress => Fix Committed
** Tags added: verification-needed
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ntfs-3g in Ubuntu.
https://bugs.launchpad.net/bugs/435192
Title:
Automatic mounting of read only ntfs partition on usb device fails
Status in OEM Priority Project:
In Progress
Status in OEM Priority Project precise series:
In Progress
Status in abstraction for enumerating and managing block devices:
Confirmed
Status in “ntfs-3g” package in Ubuntu:
Fix Released
Status in “udisks” package in Ubuntu:
Invalid
Status in “udisks2” package in Ubuntu:
Won't Fix
Status in “ntfs-3g” source package in Precise:
Fix Committed
Status in “udisks” source package in Precise:
Won't Fix
Status in “ntfs-3g” source package in Quantal:
Fix Released
Status in “udisks” source package in Quantal:
Invalid
Status in “udisks2” source package in Quantal:
Won't Fix
Status in “ntfs-3g” package in Debian:
New
Bug description:
[Impact]
OEM customers raise this issue, thinking that the error message can be misleading to inexperienced users.
[Fix]
See attachment and merge proposals.
[Test Case]
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.
[Regression Potential]
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.
[Regression testing]
The udisks2 test suite covers both read-only and writable NTFS partitions:
http://cgit.freedesktop.org/udisks/tree/src/tests/integration-test
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)
fs: NTFS
----------------------------------------------------------------------
Traceback (most recent call last):
File "src/tests/integration-test", line 636, in test_ntfs
self._do_fs_check('ntfs')
File "src/tests/integration-test", line 758, in _do_fs_check
self._do_udisks_check(type)
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
http://bugs.debian.org/686914
[Original Report]
Mounting of read only NTFS filesystem gives a following error popup:
Cannot mount volume.
Unable to mount the volume '<Volume name>'.
Details:
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
message.
Mounting by hand with the "-o ro" argument works as expected.
---
Architecture: i386
DistroRelease: Ubuntu 10.04
NonfreeKernelModules: fglrx
Package: mountall 2.15
PackageArchitecture: i386
ProcEnviron:
PATH=(custom, user)
LANG=en_US.utf8
SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-24.39-generic 2.6.32.15+drm33.5
Tags: lucid
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:
https://bugs.launchpad.net/oem-priority/+bug/435192/+subscriptions
More information about the foundations-bugs
mailing list