Bug 129497 - default mount vfat usb_storage gives ReadOnly without EROFS
Summary: default mount vfat usb_storage gives ReadOnly without EROFS
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 2
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Dave Jones
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-08-09 18:39 UTC by John Reiser
Modified: 2015-01-04 22:08 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-04-16 05:01:43 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description John Reiser 2004-08-09 18:39:52 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040625

Description of problem:
Mounting a USB flash memory device "succeeds" but with ReadOnly
instead of ReadWrite, and no error code is given to /bin/mount.


Version-Release number of selected component (if applicable):
kernel-2.6.7-1.509

How reproducible:
Always

Steps to Reproduce:
1. Plug in USB flash memory device (such as 16MB CompUSA:
P:  Vendor=09a6 ProdID=8001 Rev= 1.00
S:  Manufacturer=AVC Technology Ltd.
S:  Product=INSTANT Drive
)
2. # mount /dev/sda1 /mnt/sda1
3.
    

Actual Results:  mount "succeeds" (no error code in shell, and strace
shows:
   execve("/bin/mount", ["mount", "/dev/sda1", "/mnt/sda1"], [/* 33
vars */]) = 0
   mount("/dev/sda1", "/mnt/sda1", "vfat", 0xc0ed0000, 0) = 0
)
but actual mount is ReadOnly (no file can be created in the mounted-on
directory) and /var/log/messages shows:
   Aug  9 11:20:12 fc3test1 kernel: FAT: codepage or iocharset option
didn't specified
   Aug  9 11:20:12 fc3test1 kernel:      File name can not access
proper (mounted as read-only)
which contains an incomplete and poorly-worded message.

Expected Results:  Successful ReadWrite mount with default codepage
437 [as given in "man mount":
       codepage=value
              Sets the codepage for converting to shortname characters
on  FAT
              and VFAT filesystems. By default, codepage 437 is used.
]


Additional info:

/bin/mount is from util-linux-2.12a-2 .

Comment 1 John Reiser 2004-08-09 18:41:57 UTC
That was when booting with SELinux disabled via "selinux=0" on kernel
command line.  When SELinux is in the targeted permissive mode, there
is an additional line in /var/log/messages:
Aug  9 10:23:42 fc3test1 kernel: SELinux: initialized (dev sda1, type
vfat), uses genfs_contexts
but the mount is still ReadOnly with no EROFS.


Comment 2 Dave Jones 2004-12-08 06:49:13 UTC
any better with the latest updates ?

Comment 3 John Reiser 2004-12-08 20:31:19 UTC
Works properly using kernel-2.6.9-1.6_FC2, independent of SELinux in targeted
permissive mode, or turned off with "selinux=0" on boot command line.


Comment 4 Dave Jones 2005-04-16 05:01:43 UTC
Fedora Core 2 has now reached end of life, and no further updates will be
provided by Red Hat.  The Fedora legacy project will be producing further kernel
updates for security problems only.

If this bug has not been fixed in the latest Fedora Core 2 update kernel, please
try to reproduce it under Fedora Core 3, and reopen if necessary, changing the
product version accordingly.

Thank you.



Note You need to log in before you can comment on or make changes to this bug.