Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have console access to an embedded linux device. This device has flash memory part of which is partitioned as a FAT filesystem.

Its running linux-2.6.31.

However I am seeing these errors on the console these days and the FAT file system becomes read only.

111109:154925 FAT: Filesystem error (dev loop0)
111109:154925 fat_get_cluster: invalid cluster chain (i_pos 0)
111109:154925 FAT: Filesystem error (dev loop0)
111109:154925 fat_get_cluster: invalid cluster chain (i_pos 0)

I cannot understand why this happened? What is the root cause? And what is the fix? I would appreciate answers that can point me how to investigate the possible root cause of this issue on the device.

share|improve this question
up vote 1 down vote accepted

The most likely cause of this is the FAT file system has become corrupt through power loss or some other issue that prevented a file operation to be finished successfully.

Same as pulling a usb drive out of a PC without removing safely.

It can be repaired by using

/sbin/fsck.vfat -a /dev/<fat device>
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .