FORUMS

[Q] How do I stop automatic external SD mounting?

12 posts
Thanks Meter: 1
 
By jim333, Junior Member on 15th December 2012, 03:17 PM
Post Reply Subscribe to Thread Email Thread
I am having issues with external SD cards. I have 16 and 32 gb cards and every 2-5 days they become corrupted/damaged/blank. I have to format them and copy my backup files over at least once per week. I have had no luck finding a good solution for the SD card problems. I notice that my SD card will randomly mount / media scan / antivirus SD card scan when I unlock my screen. I assume this is causing the problems. I want to leave my external SD card UNmounted until i want to use it, then i will manually mount it under settings. My problem is when i leave it unmounted, Android will automatically mount it later when my screen is off. How do i change this so that the external SD will ONLY mount when i manually mount it in settings?
Last edited by jim333; 15th December 2012 at 03:28 PM.
 
 
15th December 2012, 10:21 PM |#2  
Not sure. Sounds like you just need to leave the card out or maybe get rid of that antivirus

Sent from my SGH-I777 using xda premium
The Following User Says Thank You to Red_81 For This Useful Post: [ View ]
18th December 2012, 12:04 AM |#3  
OP Junior Member
Thanks Meter: 1
 
More
the antivirus isn't the problem, randomly whenever the screen is turned on, the micro SD re-mounts (it somehow unmounted when the screen was off)... when it re-mounts Android automatically does a media scan and my AV scans it like it just connected... over time the SD card fails or becomes corrupted so I have to format. I'm looking for a way to DISABLE Android from automatically mounting an external micro SD... I assume people on this forum are knowledgeable on Android coding... disabling this function shouldn't be that hard...
Last edited by jim333; 18th December 2012 at 12:13 AM.
18th December 2012, 07:24 PM |#4  
Phalanx7621's Avatar
Senior Member
Flag Delaware
Thanks Meter: 2,057
 
More
Backup your micro sd. Wipe it clean. Make sure you format it with fat32 and not exfat. Put sd back in. Profit.
24th December 2012, 06:20 AM |#5  
OP Junior Member
Thanks Meter: 1
 
More
i have tried that several times.... perhaps i need to re-phrase the question....

Can someone please copy and paste the code within Android that automatically mounts an external SD card when it is inserted while the phone is on. Please also include the file name and directory. Thanks!
24th December 2012, 03:20 PM |#6  
Phalanx7621's Avatar
Senior Member
Flag Delaware
Thanks Meter: 2,057
 
More
Well the problem is it's clearly either a hardware problem in the phone or that sd card. Wouldn't it be less of a pain to diagnose that and just try several other sd cards, then you wouldn't even have the issue anymore.
23rd December 2015, 01:33 PM |#7  
Junior Member
Thanks Meter: 0
 
More
i met same problem here, how did you get this right?
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes