Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

I've had my Droid for nearly a year now, and in the process of installing and uninstalling apps, moving data to and from my SDCard, and all the various things one does with a phone the SDCard has become a little unruly.

It's time for a little file system maintenance.

It won't be difficult, but I only know enough about Linux file systems to be dangerous and I don't want to delete something important from my SDCard on accident. I couldn't find anything on Android's site about how an SDCard is formatted, so is there anyone who can tell me which files/folders are off-limits or point me in the direction of a good resource?

Please note, I don't want to know which files/folders are safe to delete. I know I can delete /Epicurious since I've uninstalled the app already, etc.

I'm running CyanogenMod 6.2.1 (based off Android 2.2.1) on my Motorola Droid.

share|improve this question
    
You could pose the addendum as a separate question. Since it has a separate answer and all. –  Amanda Mar 24 '11 at 0:19
    
@Amanda - Actually I think I will just to simplify choosing a correct answer. Good call. android.stackexchange.com/questions/7366/… –  JonnyP Mar 24 '11 at 0:23
add comment

2 Answers

up vote 8 down vote accepted

I'm tempted to say everything is safe to delete. It should be, with a storage device intended to be removed and used elsewhere. But I know some apps will be unhappy. So a good rule is not to delete anything that's clearly used by an app that you care about.

It's probably a good idea not to delete level 0 directories that start with a . such as /.android_secure/ (protected apps) either. Those folders are generally used by the system and, while I don't believe Android ever stores anything important on the SD card (besides apps if you consider them important), there's probably no reason to delete them either. /Android/ and /data/, /sd/ and /*.img, and /settings.db (if present) are also used by the system. Those are app data, recovery images, and various settings respectively.

Also watch out for a /DCIM/ folder or similar, which may have any pictures you've taken. Presumably you'd want to back them up. Likewise with /download/ and /media/.

You'll want to watch out for /update.zip, /busybox, /clockworkmod/, and the like as well if you're rooted or have a custom recovery.

Note if, like me, you have "internal SD" as well as external, then most of the above is stored on the internal SD. The external SD appears as /external_sd/ within the internal SD, or may be mounted at /emmc/ or similar. You can apply the rules above to both storage areas.

share|improve this answer
2  
I know in Linux that folders or file names that begin with a period are considered hidden, it would make sense to me if that functionality wasn't changed when they were developing Android. –  JonnyP Mar 23 '11 at 21:15
    
Yep. I am pretty sure I read somewhere that apps can't access those folders, at least directly, though I could be mistaken. –  Matthew Read Mar 23 '11 at 21:29
1  
Finally got around to digging into my SDCard and your answer here was a big help. Thanks! –  JonnyP Mar 27 '11 at 5:52
add comment

You should be able to format your SD Card safely with Android's own functionality and any files/folders required by any apps should automatically be recreated. Or simply connect your phone to your computer and browse to the phone's file system and delete as needed.

Now, if you don't wish to lose the data from certain apps, then you'll need to do research of each of those apps individually.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.