0%

linux下FAT32格式u盘只读的问题及解决方法

[ 1721.840000] FAT: Filesystem panic (dev sda)
[ 1721.850000]     fat_free_clusters: deleting FAT entry beyond EOF
[ 1721.850000]     File system has been set read-only
remove_file,592:/media/sda/GxPvr/HD Phx Chinese Channel_20170328023426 no write permissions
remount
/dev/sda
/media/sda
[ 1722.410000] FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
remount udisk!!!
[ 1722.570000] FAT: Filesystem panic (dev sda)
[ 1722.570000]     fat_get_cluster: invalid cluster chain (i_pos 0)
[ 1722.580000]     File system has been set read-only

command

$ mount
/dev/mmcblk0p4 on /mnt/sd type vfat (ro,relatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=cp936)  
/dev/mmcblk0p4 on /home/sd type vfat (ro,relatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=cp936)  

$ mount -o remount,rw /dev/mmcblk0p4

$ sudo /sbin/fsck.vfat /dev/sda5
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
/Harsh.Times[2005]DvDrip[Eng]-aXXo/Harsh.Times[2005]DvDrip[Eng]-aXXo.avi
  File size is 446693376 bytes, cluster chain length is > 446693376 bytes.
  Truncating file to 446693376 bytes.
Free cluster summary wrong (1284873 vs. really 1282508)
1) Correct
2) Don't correct
? 1
Leaving file system unchanged.
/dev/sda5: 1642 files, 213082/1495590 clusters

Ref

  1. linux下FAT32格式u盘只读的问题及解决方法