SD card reports 'corrupted' under Android, but Linux reads it fine

Questions about hardware,drivers and peripherals
Forum rules
Before you post please read how to get help
Post Reply
jiawen
Level 1
Level 1
Posts: 47
Joined: Sun Mar 17, 2013 5:29 pm

SD card reports 'corrupted' under Android, but Linux reads it fine

Post by jiawen » Fri Dec 08, 2017 11:50 am

The 64 GB SD card for my Android phone always reports as 'corrupted' when I do any significant file operations on it in Linux and then plug it back into my phone. The card mounts just fine under Linux, and I can read and write things to it there. I've been able to write to it from Linux before without my phone getting grumpy, but it seems that any time I delete files from it under Linux and then plug it back into the phone, the phone reports the card as corrupt.

I've tried fsck.exfat, and it seems to report nothing:

Code: Select all

me@thiscomputer ~ $ sudo exfatfsck -v /dev/sdd1
exfatfsck 1.0.1
Copyright (C) 2011-2013  Andrew Nayenko
How do I avoid these corruption problems? More importantly, how do I fix them? I've just backed up and then reformatted the card in the past, but that is really annoying and could potentially fail. Is there a way to actually fix the problem?
Desktop: Linux Mint 17.3 | Mate 1.12.0 | i5 6500 CPU | 16 GB RAM | GTX 960 | c. 6 TB HD

User avatar
Minterator
Level 5
Level 5
Posts: 596
Joined: Thu Jan 10, 2013 8:29 am

Re: SD card reports 'corrupted' under Android, but Linux reads it fine

Post by Minterator » Fri Dec 08, 2017 12:54 pm

My android devices cannot read exfat

You can format ext4 or for 64GB flash drives to FAT32 with 65K allocation units.
Mint 17.3 MATE, kernel 4.11.12

jiawen
Level 1
Level 1
Posts: 47
Joined: Sun Mar 17, 2013 5:29 pm

Re: SD card reports 'corrupted' under Android, but Linux reads it fine

Post by jiawen » Fri Dec 08, 2017 9:22 pm

The phone usually has no problem reading the card. It is only after I do file operations on the card, especially deleting files, that the phone reports the card as "corrupt".
Desktop: Linux Mint 17.3 | Mate 1.12.0 | i5 6500 CPU | 16 GB RAM | GTX 960 | c. 6 TB HD

jiawen
Level 1
Level 1
Posts: 47
Joined: Sun Mar 17, 2013 5:29 pm

Re: SD card reports 'corrupted' under Android, but Linux reads it fine

Post by jiawen » Tue Jul 17, 2018 11:31 am

This problem has continued to the present. Does anyone have a solution?
Desktop: Linux Mint 17.3 | Mate 1.12.0 | i5 6500 CPU | 16 GB RAM | GTX 960 | c. 6 TB HD

gm10
Level 12
Level 12
Posts: 4092
Joined: Thu Jun 21, 2018 5:11 pm

Re: SD card reports 'corrupted' under Android, but Linux reads it fine

Post by gm10 » Tue Jul 17, 2018 11:56 am

jiawen wrote:
Tue Jul 17, 2018 11:31 am
This problem has continued to the present. Does anyone have a solution?
This rather belongs in an Android support forum, doesn't it?
My suggestion would be to backup all data from it and then let Android fix it, which basically means it will format it.

By the way, my exfatfsck is version 1.2.8, I suppose they fixed a few things along the way, so your version might not detect a problem that your Android does (I take it your Android Linux is actually a newer version than your desktop Linux if it supports exFAT).

Post Reply

Return to “Hardware Support”