plugging out sdcard during copying data could be corrupted
jasonactions opened this issue · comments
I'd been copying file from internal storage to external sd card, during copying I plug out the SD card, afterwards, I plug in the sd card again, could be told : the card is corrupted, please repair it:
I pull the log as follows:
03-26 08:37:41.100 12200 12200 W exfat : volume was not unmounted cleanly
03-26 08:37:41.100 559 3480 D vold : exfatfsck 1.3.0
03-26 08:37:41.100 559 3480 D vold :
03-26 08:37:41.100 559 3480 D vold : Checking file system on /dev/block/vold/public:179,1.
03-26 08:37:41.100 559 3480 D vold :
03-26 08:37:41.110 12200 12200 E exfat : 'test.7z' is empty but start cluster is 0x12
03-26 08:37:41.110 12200 12200 E exfat : 'test.7z' is empty but marked as contiguous (0x20)
03-26 08:37:41.111 559 3480 D vold : File system checking stopped. ERRORS FOUND: 2, FIXED: 0.
03-26 08:37:41.111 559 3480 D vold :
03-26 08:37:41.112 559 3480 E vold : Process exited with code: 1
03-26 08:37:41.112 559 3480 E vold : Check failed (code 1)
03-26 08:37:41.112 559 3480 E vold : public:179,1 failed filesystem check
Note: the SD card is 128G with only single exfat partition.
Would you like tell me it is normal?
Thanks!
I have a very similar error that I can't get fixed.
Did anyone get this fixed?
Sudden removal of a disk without proper unmount can cause any kind of corruption, including unrecoverable ones.
Will keep this bug open as a reminder to implement the abovementioned errors correction in fsck.