exfat icon indicating copy to clipboard operation
exfat copied to clipboard

plugging out sdcard during copying data could be corrupted

Open jasonactions opened this issue 5 years ago • 3 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!

jasonactions avatar Apr 09 '20 03:04 jasonactions

I have a very similar error that I can't get fixed.

LevitatingBusinessMan avatar Oct 06 '20 18:10 LevitatingBusinessMan

Did anyone get this fixed?

aaronjs99 avatar Oct 09 '20 08:10 aaronjs99

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.

relan avatar Feb 26 '23 10:02 relan