[Bug 541428] New: flash drives with FAT filesystem are mounted read-only

http://bugzilla.novell.com/show_bug.cgi?id=541428 Summary: flash drives with FAT filesystem are mounted read-only Classification: openSUSE Product: openSUSE 11.2 Version: Milestone 7 Platform: i586 OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Hotplug AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: benderamp@gmail.com QAContact: qa@suse.de Found By: --- User-Agent: Mozilla/5.0 (compatible; Konqueror/4.3; Linux) KHTML/4.3.0 (like Gecko) SUSE OpenSUSE 11.2 Milestone7 KDE4 live CD Reproducible: Always Steps to Reproduce: 1. Insert flash drive to USB port or SD-card to card rider 2. Click on the new item in KDE device notifier - this would mount device and open dolphin in its directory 3. Try to create new file or delete existing Actual Results: Creating new file or deleting existing would not be possible as drive is mounted read-only Expected Results: Drive should be mounted in read-write mode USB drives and SD-cards formatted with NTFS are mounted in read-write. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=541428 zhu rensheng <rszhu@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rszhu@novell.com AssignedTo|bnc-team-screening@forge.pr |kernel-maintainers@forge.pr |ovo.novell.com |ovo.novell.com -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=541428 http://bugzilla.novell.com/show_bug.cgi?id=541428#c1 Koos Pol <kp2009@scpol.tweakdsl.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kp2009@scpol.tweakdsl.nl --- Comment #1 from Koos Pol <kp2009@scpol.tweakdsl.nl> 2009-11-22 19:45:06 UTC --- Confirmed on a fresh 11.2 x64 GA. koos@specht:~> mount|grep vfat /dev/sdc1 on /media/disk type vfat (ro,nosuid,nodev,uid=1000,utf8,shortname=mixed,flush) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=541428 http://bugzilla.novell.com/show_bug.cgi?id=541428#c2 Jeff Mahoney <jeffm@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO CC| |jeffm@novell.com Info Provider| |benderamp@gmail.com --- Comment #2 from Jeff Mahoney <jeffm@novell.com> 2009-11-25 00:53:45 UTC --- Can you provide the output of dmesg after the device is mounted ro? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=541428 http://bugzilla.novell.com/show_bug.cgi?id=541428#c3 Koos Pol <kp2009@scpol.tweakdsl.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|benderamp@gmail.com | --- Comment #3 from Koos Pol <kp2009@scpol.tweakdsl.nl> 2009-11-25 08:36:12 UTC --- Hi Jeff, Although I'm on CC, I take the liberty to intrude and respond. Attached dmesg output. For reference I inserted the line "Flash card inserted". Thanks, Koos -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=541428 http://bugzilla.novell.com/show_bug.cgi?id=541428#c4 --- Comment #4 from Koos Pol <kp2009@scpol.tweakdsl.nl> 2009-11-25 08:44:12 UTC --- Created an attachment (id=329380) --> (http://bugzilla.novell.com/attachment.cgi?id=329380) dmesg output -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=541428 http://bugzilla.novell.com/show_bug.cgi?id=541428#c5 Brandon Philips <bphilips@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO CC| |bphilips@novell.com Info Provider| |benderamp@gmail.com --- Comment #5 from Brandon Philips <bphilips@novell.com> 2009-11-25 09:33:23 UTC --- In your log it says:
[ 5850.505939] sd 8:0:0:0: [sdc] Write Protect is on
Are you sure the flash device doesn't have a lock on? e.g. http://i.ehow.com/images/GlobalPhoto/Articles/4850280/Img2765_Full.jpg -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=541428 http://bugzilla.novell.com/show_bug.cgi?id=541428#c6 Koos Pol <kp2009@scpol.tweakdsl.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|benderamp@gmail.com | --- Comment #6 from Koos Pol <kp2009@scpol.tweakdsl.nl> 2009-11-25 10:31:43 UTC ---
Are you sure the flash device doesn't have a lock on
Yes. As a matter of fact, I knew this question would be asked :-) I'v tried four flash cards from my compact camera. They all - are unlocked - are unaltered sinced I used them on my 11.1 PC a few weeks ago, - are still mounted rw on my 11.1 laptop - are mounted ro on my now 11.2 PC Here are a few snippets from said 11.1 laptop with the same flash card: kpo17180@xpcnd731166v:~/tmp> mount|grep vfat /dev/mmcblk0p1 on /media/disk type vfat (rw,nosuid,nodev,uid=1001,utf8,shortname=mixed,flush) Output from dmesg on the 11.1 laptop after insertion: tifm_core: MMC/SD card detected in socket 0:1 mmc1: new SD card at address 0002 mmcblk0: mmc1:0002 00000 974 MiB mmcblk0: p1 Thanks, Koos -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=541428 http://bugzilla.novell.com/show_bug.cgi?id=541428#c7 Brandon Philips <bphilips@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |benderamp@gmail.com --- Comment #7 from Brandon Philips <bphilips@novell.com> 2009-12-07 18:40:15 UTC --- Can you test the latest Kernel of the Day (KOTD) and see if the issue is fixed? There are a number of changes related to write protect detection in the MMC layer since 2.6.31. Install these two rpms: http://ftp.suse.com/pub/projects/kernel/kotd/master/x86_64/kernel-desktop-ba... http://ftp.suse.com/pub/projects/kernel/kotd/master/x86_64/kernel-desktop.rp... -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=541428 http://bugzilla.novell.com/show_bug.cgi?id=541428#c8 --- Comment #8 from Jeff Mahoney <jeffm@novell.com> 2009-12-07 18:47:32 UTC --- kernel-$flavor-base isn't needed anymore. It's a subset of the regular kernel-$flavor package. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=541428 http://bugzilla.novell.com/show_bug.cgi?id=541428#c9 --- Comment #9 from Brandon Philips <bphilips@novell.com> 2009-12-17 07:27:08 UTC --- (In reply to comment #8)
kernel-$flavor-base isn't needed anymore. It's a subset of the regular kernel-$flavor package.
Right. Thanks. Anton please test this RPM then: http://ftp.suse.com/pub/projects/kernel/kotd/master/x86_64/kernel-desktop.rp... -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=541428 http://bugzilla.novell.com/show_bug.cgi?id=541428#c10 Koos Pol <kp2009@scpol.tweakdsl.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|benderamp@gmail.com | --- Comment #10 from Koos Pol <kp2009@scpol.tweakdsl.nl> 2009-12-19 16:28:39 UTC --- Just tried this kernel and it's just too bad that is hasn't helped: specht:~ # mount -t vfat /dev/sdc1 /mnt/flash mount: block device /dev/sdc1 is write-protected, mounting read-only (BTW, this kernel also breaks the nvidia kernel module, so X won't start up.) Sorry for the bad news. Koos specht:~/tmp # diff -u dmesg-pre.txt dmesg-post.txt --- dmesg-pre.txt 2009-12-19 17:12:38.074154295 +0100 +++ dmesg-post.txt 2009-12-19 17:13:01.516401223 +0100 @@ -1151,3 +1151,7 @@ [ 57.426806] sdc: sdc1 [ 110.974381] FAT: bogus number of reserved sectors [ 110.974386] VFS: Can't find a valid FAT filesystem on dev sdc. +[ 376.402534] sd 10:0:0:0: [sdc] 15523840 512-byte logical blocks: (7.94 GB/7.40 GiB) +[ 376.403404] sd 10:0:0:0: [sdc] Assuming drive cache: write through +[ 376.404776] sd 10:0:0:0: [sdc] Assuming drive cache: write through +[ 376.404783] sdc: sdc1 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=541428 http://bugzilla.novell.com/show_bug.cgi?id=541428#c11 --- Comment #11 from Jeff Mahoney <jeffm@novell.com> 2009-12-21 20:15:05 UTC --- "FAT: bogus number of reserved sectors" is pretty important. It means your file system is considered corrupted. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=541428 http://bugzilla.novell.com/show_bug.cgi?id=541428#c12 Brandon Philips <bphilips@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |benderamp@gmail.com --- Comment #12 from Brandon Philips <bphilips@novell.com> 2009-12-23 06:35:13 UTC --- If you format the card with mkfs.vfat -F 32 does it work correctly? Looks like you may have a camera that creates bad filesystems. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=541428 http://bugzilla.novell.com/show_bug.cgi?id=541428#c13 --- Comment #13 from Koos Pol <kp2009@scpol.tweakdsl.nl> 2009-12-23 14:55:59 UTC --- Well, I've spent the better part of today figuring this baby out. And I'm completely stumped as I can't reproduce my earlier findings. I've formatted the card per your request but that hasn't changed. I do am rid of the "bogus sectors" message but that's it. I also tried other SD cards just to rule out the card being defective. Noteworty: the digital camera still mounts the SD cards R/W). It's probably the easiest if I show y'all the list with findings: Distro SD Card XD Card ---------------------------------------------- OpenSuSE 11.2 x64 RO RW OpenSuSE 11.1 x64 RO - OpenSuSE 11.1 x32 RO RW OpenSuSE 11.0 x32 RO - Clonezilla unkn. vers. RO - Puppy Linux 4.1 RO - Conclusion: the SD card is never mounted RW and XD card is checked twice and both times mounted RW. I expect the kernel from 11.1 x32 to be miles apart from 11.2 x64. So I don't see the point in rerunning all checks to see results for the XD card. I expect these to be the same (i.e. RW) for all distro's. There is a perhaps the possibility that the SD port of the card reader is faulty. Besides a faulty SD port, I have no further explanation to these results. Any suggestions are highly appreciated. Given the list above I accept rebuttals that this is not a kernel bug. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=541428 http://bugzilla.novell.com/show_bug.cgi?id=541428#c14 --- Comment #14 from Koos Pol <kp2009@scpol.tweakdsl.nl> 2009-12-23 14:58:37 UTC --- Note: The write lock tab on the cards have been checked and double checked with the digital camera. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=541428 http://bugzilla.novell.com/show_bug.cgi?id=541428#c15 Brandon Philips <bphilips@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|kernel-maintainers@forge.pr |bphilips@novell.com |ovo.novell.com | Severity|Normal |Major --- Comment #15 from Brandon Philips <bphilips@novell.com> 2010-03-03 18:37:55 UTC --- (In reply to comment #14)
Note: The write lock tab on the cards have been checked and double checked with the digital camera.
I think your best bet is to test KOTD one more time (Comment #7) and if that fails then file a bug with http://bugzilla.kernel.org Please let us know the bug URL or if KOTD works. Thanks. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

https://bugzilla.novell.com/show_bug.cgi?id=541428 https://bugzilla.novell.com/show_bug.cgi?id=541428#c16 Brandon Philips <bphilips@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |CLOSED InfoProvider|benderamp@gmail.com | Resolution| |NORESPONSE --- Comment #16 from Brandon Philips <bphilips@novell.com> 2010-10-01 01:46:14 UTC --- Closing as NORESPONSE as no results were posted from the request to test KOTD[1]. [1]http://en.opensuse.org/openSUSE:Kernel_of_the_day -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

https://bugzilla.novell.com/show_bug.cgi?id=541428 https://bugzilla.novell.com/show_bug.cgi?id=541428#c17 --- Comment #17 from Koos Pol <koos2010@pohw.nl> 2010-10-03 10:03:57 UTC --- Sorry for the delay. I've changed jobs, requiring substantial time and energy. In the meantime I've bought a new internal cardreader which works great. I've tossed away the old one, so I can not reproduce the problem or investigate any further with the KOTD. Many thanks for all your effort. Greatly appreciated. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com