This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Fat32 partition suddenly becomes read-only

Hi Sir,

I work on DM8148 platform and use DVRRDK_03.00.00.00 to develop our system.

We record stream data to SD card or usb flash disk that use fat32 filesystem.

I am getting below error message sometimes,

Case1 :
FAT: Filesystem error (dev sda1)
  invalid access to FAT (entry 0x2e076525)
  FAT: Filesystem has been set read-only

Case2:
FAT: Filesystem error (dev sda1)
  fat_get_cluster: invalid cluster chain (i_pos 0)
  FAT: Filesystem has been set read-only

Case3:
FAT: Filesystem error (dev sda1)
  fat_free_clusters: deleting FAT entry beyond EOF
  File system has been set read-only

could some one kindly give us some suggestion or some way to  fix this?

Best regards,

Jimmy

  • Hi Jimmy,

    I think this is a generic Linux issue, not directly related the the board support packages. It is likely that somehow some files on the fs get corrupted (or are corrupted in the first place) and when one of them is accessed, such messages are printed and the fs turns read-only. Why exactly they get corrupted, I cannot tell. I think you should search the Internet for similar cases and try proposed solutions on your side.

    For example, here are two of my finds; I don't know are these like the issue here:

    https://bbs.archlinux.org/viewtopic.php?id=116950

    http://www.linuxquestions.org/questions/linux-hardware-18/usb-drive-becomes-read-only-again-and-again-603214/

    Thank you.

    BR

    Vladimir

  • Jimmy,

    I had a similar problem with one of my SD card (HP - made in Japan). Try this tool:

    http://hddguru.com/software/HDD-LLF-Low-Level-Format-Tool/