Cannot mount FAT partitions

Bug #35054 reported by Ross Burton
22
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

When I mount a FAT filesystem I get the following messages in the syslog:

[4345082.607000] usb 4-4: new high speed USB device using ehci_hcd and address 4
[4345082.722000] scsi1 : SCSI emulation for USB Mass Storage devices
[4345082.722000] usb-storage: device found at 4
[4345082.722000] usb-storage: waiting for device to settle before scanning
[4345087.730000] Vendor: Apple Model: iPod Rev: 1.53
[4345087.730000] Type: Direct-Access ANSI SCSI revision : 00
[4345087.742000] sda: Spinning up disk....ready
[4345088.744000] SCSI device sda: 29297520 512-byte hdwr sectors (15000 MB)
[4345088.745000] sda: Write Protect is off
[4345088.745000] sda: Mode Sense: 33 00 00 00
[4345088.745000] sda: assuming drive cache: write through
[4345088.748000] SCSI device sda: 29297520 512-byte hdwr sectors (15000 MB)
[4345088.749000] sda: Write Protect is off
[4345088.749000] sda: Mode Sense: 33 00 00 00
[4345088.749000] sda: assuming drive cache: write through
[4345088.749000] sda: sda1 sda2
[4345088.756000] sd 1:0:0:0: Attached scsi removable disk sda
[4345088.756000] sd 1:0:0:0: Attached scsi generic sg0 type 0
[4345088.757000] usb-storage: device scan complete
[4345089.464000] FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
[4345117.468000] FAT: Filesystem panic (dev sda2)
[4345117.468000] fat_free_clusters: deleting FAT entry beyond EOF
[4345117.469000] File system has been set read-only

This happens for my iPod and two CF cards, so I am doubting that the filesystems on all of these are broken. Is there a way I can debug this?

Revision history for this message
Matt Zimmerman (mdz) wrote :

Do you see this problem with any filesystem small enough that you could send us a copy to test?

Changed in linux-source-2.6.15:
assignee: nobody → ben-collins
status: Unconfirmed → Needs Info
Revision history for this message
Joachim Beckers (jbeckers) wrote :

or maybe your fstab line has UTF8 as an option in it while the filesystems are not in utf8?

Revision history for this message
Rick W. Chen (stuffcorpse) wrote :

This has just happened on my ipod with gutsy tribe5 running kubuntu. It occurred while I was deleting a folder with a lot of files on the ipod.

[109294.518935] sd 7:0:0:0: [sdb] 39075372 2048-byte hardware sectors (80026 MB)
[109294.519934] sd 7:0:0:0: [sdb] Write Protect is off
[109294.519938] sd 7:0:0:0: [sdb] Mode Sense: 68 00 00 08
[109294.519940] sd 7:0:0:0: [sdb] Assuming drive cache: write through
[109294.521679] sd 7:0:0:0: [sdb] 39075372 2048-byte hardware sectors (80026 MB)
[109294.522804] sd 7:0:0:0: [sdb] Write Protect is off
[109294.522807] sd 7:0:0:0: [sdb] Mode Sense: 68 00 00 08
[109294.522809] sd 7:0:0:0: [sdb] Assuming drive cache: write through
[109294.522813] sdb: sdb1 sdb2
[109294.547924] sd 7:0:0:0: [sdb] Attached SCSI removable disk
[109294.547966] sd 7:0:0:0: Attached scsi generic sg2 type 0
[111556.637575] FAT: Filesystem panic (dev sdb2)
[111556.637580] fat_free_clusters: deleting FAT entry beyond EOF
[111556.637593] File system has been set read-only

$ uname -r
2.6.22-11-generic

the ipod is automounted by kde and this is from command mount:

/dev/sdb2 on /media/IPWND type vfat (rw,nosuid,nodev,noatime,flush,uid=1000,utf8,shortname=lower)

Revision history for this message
Launchpad Janitor (janitor) wrote : This bug is now reported against the 'linux' package

Beginning with the Hardy Heron 8.04 development cycle, all open Ubuntu kernel bugs need to be reported against the "linux" kernel package. We are automatically migrating this linux-source-2.6.15 kernel bug to the new "linux" package. We appreciate your patience and understanding as we make this transition. Also, if you would be interested in testing the upcoming Intrepid Ibex 8.10 release, it is available at http://www.ubuntu.com/testing . Please let us know your results. Thanks!

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

The Ubuntu Kernel Team is planning to move to the 2.6.27 kernel for the upcoming Intrepid Ibex 8.10 release. As a result, the kernel team would appreciate it if you could please test this newer 2.6.27 Ubuntu kernel. There are one of two ways you should be able to test:

1) If you are comfortable installing packages on your own, the linux-image-2.6.27-* package is currently available for you to install and test.

--or--

2) The upcoming Alpha5 for Intrepid Ibex 8.10 will contain this newer 2.6.27 Ubuntu kernel. Alpha5 is set to be released Thursday Sept 4. Please watch http://www.ubuntu.com/testing for Alpha5 to be announced. You should then be able to test via a LiveCD.

Please let us know immediately if this newer 2.6.27 kernel resolves the bug reported here or if the issue remains. More importantly, please open a new bug report for each new bug/regression introduced by the 2.6.27 kernel and tag the bug report with 'linux-2.6.27'. Also, please specifically note if the issue does or does not appear in the 2.6.26 kernel. Thanks again, we really appreicate your help and feedback.

Revision history for this message
Ralph Janke (txwikinger) wrote :

Unfortunately this bug report is being closed because we received no response to the last inquiry for information. However, the Intrepid Ibex 8.10 Beta release was most recently announced - http://www.ubuntu.com/testing/intrepid/beta . If you are able to confirm this is still an issue with this most recent release please feel free to reopen this report. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks.

Changed in linux:
status: Incomplete → Won't Fix
Revision history for this message
Andrew Preston (andrew-preston) wrote :

I have this problem in 9.10 (and previously 9.04).

:~$ mount
...
/dev/sdb1 on /media/Data type vfat (rw,nosuid,nodev,uhelper=devkit,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,flush)

:~$ dmesg
...
[33388.654747] FAT: Filesystem error (dev sdb1)
[33388.654754] fat_free_clusters: deleting FAT entry beyond EOF
[33388.654759] File system has been set read-only

:~$ uname -r
2.6.31-14-generic

The issue is repeatably caused by running something like
rsync --delete -a --modify-window=1 $FROM $TO
($FROM contains a lot of folders/files/data)

For completeness, here is the dmesg output when inserting the usb drive:
:~$ dmesg
...
[ 75.252227] usb 2-2: new high speed USB device using ehci_hcd and address 5
[ 75.385611] usb 2-2: configuration #1 chosen from 1 choice
[ 75.415907] Initializing USB Mass Storage driver...
[ 75.416148] scsi5 : SCSI emulation for USB Mass Storage devices
[ 75.416606] usbcore: registered new interface driver usb-storage
[ 75.416610] USB Mass Storage support registered.
[ 75.416729] usb-storage: device found at 5
[ 75.416731] usb-storage: waiting for device to settle before scanning
[ 80.412422] usb-storage: device scan complete
[ 80.413012] scsi 5:0:0:0: Direct-Access WD 3200BMV External 1.75 PQ: 0 ANSI: 4
[ 80.413366] sd 5:0:0:0: Attached scsi generic sg2 type 0
[ 80.418103] sd 5:0:0:0: [sdb] 625142448 512-byte logical blocks: (320 GB/298 GiB)
[ 80.418658] sd 5:0:0:0: [sdb] Write Protect is off
[ 80.418661] sd 5:0:0:0: [sdb] Mode Sense: 23 00 00 00
[ 80.418663] sd 5:0:0:0: [sdb] Assuming drive cache: write through
[ 80.419984] sd 5:0:0:0: [sdb] Assuming drive cache: write through
[ 80.419990] sdb: sdb1
[ 80.462590] sd 5:0:0:0: [sdb] Assuming drive cache: write through
[ 80.462595] sd 5:0:0:0: [sdb] Attached SCSI disk
...

I believe fsck to be useless for fat32 systems. Correct me if I'm wrong.

Revision history for this message
Sam Freilich (l33tminion) wrote :

Andrew: I just filed bug #477773 for exactly the problem you describe above. Not sure if that's the same as the one originally reported in this bug.

Changed in linux (Ubuntu):
status: Won't Fix → New
Revision history for this message
Osmo Laitinen (osmo-laitinen) wrote :

I have this same problem also, it started to occur after upgrading to Ubuntu 9.10.
It happens very often after attaching my mp3 player (Trextor Cebrax), after a few minutes usb's filesystem becomes read-only and file transfers with Nautilus naturally stops.

if I manually mount mp3 player as root, there hasn't been any problems.

Here's dmesg:

[ 2428.916016] usb 4-1: new full speed USB device using uhci_hcd and address 2
[ 2430.316050] hub 4-0:1.0: unable to enumerate USB device on port 1
[ 2432.392015] usb 4-1: new full speed USB device using uhci_hcd and address 3
[ 2435.704579] usb 4-1: configuration #1 chosen from 1 choice
[ 2435.749975] Initializing USB Mass Storage driver...
[ 2435.751153] scsi2 : SCSI emulation for USB Mass Storage devices
[ 2435.751423] usb-storage: device found at 3
[ 2435.751429] usb-storage: waiting for device to settle before scanning
[ 2435.751454] usbcore: registered new interface driver usb-storage
[ 2435.751460] USB Mass Storage support registered.
[ 2440.758679] usb-storage: device scan complete
[ 2440.769307] scsi 2:0:0:0: Direct-Access TrekStor i.Beat cebrax FM 0100 PQ: 0 ANSI: 4
[ 2440.770382] sd 2:0:0:0: Attached scsi generic sg2 type 0
[ 2440.782284] sd 2:0:0:0: [sdb] 1001088 2048-byte logical blocks: (2.05 GB/1.90 GiB)
[ 2440.785449] sd 2:0:0:0: [sdb] Write Protect is off
[ 2440.785458] sd 2:0:0:0: [sdb] Mode Sense: 3e 00 00 00
[ 2440.785464] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[ 2440.799358] sd 2:0:0:0: [sdb] 1001088 2048-byte logical blocks: (2.05 GB/1.90 GiB)
[ 2440.802251] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[ 2440.802261] sdb: sdb1
[ 2440.821466] sd 2:0:0:0: [sdb] 1001088 2048-byte logical blocks: (2.05 GB/1.90 GiB)
[ 2440.828565] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[ 2440.828579] sd 2:0:0:0: [sdb] Attached SCSI removable disk
[ 2511.659888] FAT: Filesystem error (dev sdb1)
[ 2511.659898] fat_bmap_cluster: request beyond EOF (i_pos 47251481)
[ 2511.659906] File system has been set read-only

Revision history for this message
Jeremy Foshee (jeremyfoshee) wrote :

Closing as invalid due to lack of response from the original reporter.

Please report bugs on this for Karmic/Lucid in a new bug and supply the relevant information.

-JFo

Changed in linux (Ubuntu):
assignee: Ben Collins (ben-collins) → nobody
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.