Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
translations translations
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  FAT filesystem errors on Ipod Video 5.5 80GB
« previous next »
  • Print
Pages: [1]

Author Topic: FAT filesystem errors on Ipod Video 5.5 80GB  (Read 4634 times)

Offline swimmer

  • Member
  • *
  • Posts: 9
  • El Tango me ha tocado.
FAT filesystem errors on Ipod Video 5.5 80GB
« on: May 28, 2009, 12:38:02 PM »
Hi all,

recently I get filesystem errors when I try to update Rockbox via rbutilqt

Code: [Select]
May 28 18:20:58 swimmer FAT: Filesystem panic (dev sdd2)
May 28 18:20:58 swimmer fat_free_clusters: deleting FAT entry beyond EOF
May 28 18:20:58 swimmer File system has been set read-only

This does not  occur when I change anything by hand as in editing cfg-files or unzipping new themes ...

The Rockbox Utility
Version 1.2.1 (SVN $ Revision: 20807 $), built May 28 2009 18:01:59
Logged
El Tango me ha tocado.

Offline gevaerts

  • Developer
  • Member
  • *
  • Posts: 1077
Re: FAT filesystem errors on Ipod Video 5.5 80GB
« Reply #1 on: May 28, 2009, 01:08:23 PM »
This has nothing at all to do with rbutilqt. You have a corrupted filesystem. Try fsck.vfat
Logged

Offline swimmer

  • Member
  • *
  • Posts: 9
  • El Tango me ha tocado.
Re: FAT filesystem errors on Ipod Video 5.5 80GB
« Reply #2 on: May 28, 2009, 01:14:13 PM »
May I doubt that I have a corrupted filesystem? It occurs *only* if I use rbutilqt and *never* when I do something manually ... or does rbutilqt modify things differently?
Logged
El Tango me ha tocado.

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3555
  • creature
Re: FAT filesystem errors on Ipod Video 5.5 80GB
« Reply #3 on: May 28, 2009, 05:18:42 PM »
Quote from: swimmer on May 28, 2009, 01:14:13 PM
May I doubt that I have a corrupted filesystem?
You may, but it doesn't change the facts. Rockbox Utility is simply a program that accesses the file system using the OS. If the filesystem is broken this doesn't make a difference -- the OS has to handle the filesystem. The only disk access that is done without using the filesystem is when installing the bootloader. As the bootloader is on a different partition than the data this won't have any effect on the data partition and thus its filesystem.

Why don't you simply go and check the filesystem first? By the way, the log you pasted is from the kernel. Which definitely tells you that the kernel FAT driver has a problem with the filesystem.
Logged

Offline swimmer

  • Member
  • *
  • Posts: 9
  • El Tango me ha tocado.
Re: FAT filesystem errors on Ipod Video 5.5 80GB
« Reply #4 on: May 28, 2009, 05:21:01 PM »
I see - this is a one-way thing here ;-)

I'll obey and do the filesystem checks ok?

Edit: and these are the results ...
Code: [Select]
swimmer ~ # fsck.vfat /dev/sdd
dosfsck 3.0.2, 28 Feb 2009, FAT32, LFN
Too many clusters (4884357) for FAT16 filesystem.
swimmer ~ # fdisk -l /dev/sdd
Note: sector size is 2048 (not 512)

Disk /dev/sdd: 80.0 GB, 80026361856 bytes
84 heads, 62 sectors/track, 7502 cylinders
Units = cylinders of 5208 * 2048 = 10665984 bytes
Disk identifier: 0x20202020

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1               1          10       96264    0  Empty
Partition 1 does not end on cylinder boundary.
/dev/sdd2              10        7503    78054352    b  W95 FAT32
Does it make more sense now?
« Last Edit: May 28, 2009, 05:59:50 PM by swimmer »
Logged
El Tango me ha tocado.

Offline gevaerts

  • Developer
  • Member
  • *
  • Posts: 1077
Re: FAT filesystem errors on Ipod Video 5.5 80GB
« Reply #5 on: May 28, 2009, 06:09:38 PM »
You checked /dev/sdd, while your filesystem is on /dev/sdd2
Logged

Offline swimmer

  • Member
  • *
  • Posts: 9
  • El Tango me ha tocado.
Re: FAT filesystem errors on Ipod Video 5.5 80GB
« Reply #6 on: May 28, 2009, 06:46:48 PM »
Gnaaa - my copy+paste was not complete :-(

Code: [Select]
swimmer ~ # fsck.vfat /dev/sdd2
dosfsck 3.0.2, 28 Feb 2009, FAT32, LFN
open /dev/sdd2:No such file or directory
swimmer ~ # fsck.vfat /dev/sdd
dosfsck 3.0.2, 28 Feb 2009, FAT32, LFN
Too many clusters (4884357) for FAT16 filesystem.
swimmer ~ # fdisk -l /dev/sdd
Note: sector size is 2048 (not 512)

Disk /dev/sdd: 80.0 GB, 80026361856 bytes
84 heads, 62 sectors/track, 7502 cylinders
Units = cylinders of 5208 * 2048 = 10665984 bytes
Disk identifier: 0x20202020

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1               1          10       96264    0  Empty
Partition 1 does not end on cylinder boundary.
/dev/sdd2              10        7503    78054352    b  W95 FAT32

But thanks to your intervention I was put on the right track - there is a udev-rule that moves /dev/sdd2 to /dev/ipod and doing a 'fsck.fvat -a /dev/ipod' revealed some unused clusters which were repaired ...

Many thanks gevaerts!!  8)

Edit: I still don't get it why I could perform all those actions manually (editing cfg-files & installing themes) while rbutilqt bailed out immediately?!? Anyway - it all seems to work now again and I'm happy to thank you guys again ... especially gevaerts!!!  8)  ;D
« Last Edit: May 28, 2009, 06:55:06 PM by swimmer »
Logged
El Tango me ha tocado.

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3555
  • creature
Re: FAT filesystem errors on Ipod Video 5.5 80GB
« Reply #7 on: May 29, 2009, 06:06:48 AM »
Quote from: swimmer on May 28, 2009, 06:46:48 PM
I still don't get it why I could perform all those actions manually (editing cfg-files & installing themes) while rbutilqt bailed out immediately?!?
That's rather simple: FAT uses simply linked lists and tables holding the directory entries. If you now modify files that have broken file information the system will get into trouble: if you modify files that do not contain broken information (or seem to not contain broken information -- if for example two files pointing to the same data this can cause corruption as well) everything at least seems to work fine. Unless you check the directory structures you won't notice errors like two files pointing to the same data, so the OS won't notice it immediately.

Judging from the syslog you posted initially rbutil tried to delete a file which was broken. If you unzip a new build / theme / etc. to the player you obviously don't delete files, thus you won't notice it if a file can't get deleted properly.
Logged

Offline swimmer

  • Member
  • *
  • Posts: 9
  • El Tango me ha tocado.
Re: FAT filesystem errors on Ipod Video 5.5 80GB
« Reply #8 on: May 29, 2009, 06:16:13 AM »
Well - I tried to install a theme with rbutilqt which did not succeed so I tried it manually with unzip which succeeded and this puzzled me ;-)

Thanks for your explanation and the time you invested to help me and let's hope that it's fixed now!
Logged
El Tango me ha tocado.

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  FAT filesystem errors on Ipod Video 5.5 80GB
 

  • SMF 2.0.19 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.178 seconds with 21 queries.