Bug 104544 - Unable to mount NTFS-formatted filesystem when device is set to read-only (blockdev --setro)
Summary: Unable to mount NTFS-formatted filesystem when device is set to read-only (bl...
Status: NEW
Alias: None
Product: udisks
Classification: Unclassified
Component: operations (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Martin Pitt
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-09 03:04 UTC by Mike
Modified: 2018-01-09 03:04 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Mike 2018-01-09 03:04:41 UTC
Problem:

1.  Insert USB drive (let's say it is detected as /dev/sdb with 1 partition)
2.  If automounted, unmount (sudo umount /dev/sdb1)
3.  sudo blockdev --setro /dev/sdb1
4.  If filesystem in /dev/sdb1 is NTFS, mount will fail with permission denied error -- it seems that the mount helper is not passing the ro mount flag.

If filesystem in /dev/sdb1 is vfat/exfat or ext2/3/4, it will be mounted with ro option.  I have not tested any other filesystem.


I encountered this in:

  Ubuntu 17.10 with udisks2 2.6.5
  Debian 9 (Jessie) with udisks 2.1.x
  Debian 10 (Buster) with udisks 2.7.5


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.