[Bug 435192] Re: Automatic mounting of read only ntfs partition on usb device fails

James M. Leddy 435192 at bugs.launchpad.net
Thu Sep 27 22:03:30 UTC 2012


I'm marking incomplete until someone that has an oneiric install handy
and access to a ntfs filesystem can verify and mark verification-done.
For more information about the stable release update processs, please
see : https://wiki.ubuntu.com/StableReleaseUpdates

** Changed in: oem-priority
       Status: Fix Committed => Incomplete

** Changed in: oem-priority/precise
       Status: Fix Committed => Incomplete

-- 
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:
  Incomplete
Status in OEM Priority Project precise series:
  Incomplete
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