Bug 889671

Summary: USB keys freshly formatted are mounted read-only
Product: [Fedora] Fedora Reporter: Dave Neary <dneary>
Component: udisks2Assignee: David Zeuthen <davidz>
Status: CLOSED CANTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 17CC: davidz, extras-orphan, mclasen, notting
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-02 19:19:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dave Neary 2012-12-22 13:27:41 UTC
Description of problem:

USB disks formatted with GNOME disk utility (after having a liveCD image on them previously) as FAT16 disks are mounted read-only. Tried with several keys.


How reproducible:
Always, many different keys.


Steps to Reproduce:
1. Use a key for a bootable liveCD image, then decide to use it for file transfer with a 3rd party, requiring a FAT partition
2. Open GNOME Disks, unmount liveCD partition un the utility, format disk, add a partition to the newly formated disk
3. Mount new partition and open it in Nautilus. Try to copy files
  
Actual results:
Files fail to copy - partition is read-only. Boot options to mount look fine (see below). Attempts to change permissions on directory fail. Perhaps an SELinux issue?


Expected results:
Expect to have files copied.

Additional info:
Mount command line: /dev/sdb1 on /run/media/dneary/New Volume type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0077,codepage=cp437,iocharset=ascii,shortname=mixed,showexec,utf8,errors=remount-ro,uhelper=udisks2)

Comment 1 Dave Neary 2012-12-22 13:32:32 UTC
Additional information: As root, in the shell, I can copy files to the disk. So it is a security context issue, rather than a filesystem mounted read-only. Perhaps an SELinux issue?

This also happens with existing USB disks. And has only started happening recently on F17.

Dave.

Comment 2 David Zeuthen 2013-01-02 19:19:41 UTC
I don't think this has anything to do with udisks2 as it is just calling the mount(8) command. It could be a problem with either the USB stick or the filesystem driver in the kernel or the kernel or anything else. Maybe see if you can reproduce by just mounting the device from the command line?

Anyway, closing as CANTFIX. But feel free to reopen and reassign it to another component if you find a suitable one.