Bug 104544

Summary: Unable to mount NTFS-formatted filesystem when device is set to read-only (blockdev --setro)
Product: udisks Reporter: Mike <tinsami1>
Component: operationsAssignee: Martin Pitt <martin.pitt>
Status: NEW --- QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

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.