12

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.

2
  • You could pose the addendum as a separate question. Since it has a separate answer and all.
    – Amanda
    Commented Mar 24, 2011 at 0:19
  • @Amanda - Actually I think I will just to simplify choosing a correct answer. Good call. android.stackexchange.com/questions/7366/…
    – newuser
    Commented Mar 24, 2011 at 0:23

2 Answers 2

12

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.

3
  • 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.
    – newuser
    Commented Mar 23, 2011 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. Commented Mar 23, 2011 at 21:29
  • 1
    Finally got around to digging into my SDCard and your answer here was a big help. Thanks!
    – newuser
    Commented Mar 27, 2011 at 5:52
-2

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .