sodcalculator

10 Tech How-To

How to Use SD Card as Extra RAM on Android

Guide 10-50083 · Updated · Step by step

This guide shows you how to use an SD card as extra RAM on Android, a trick that can help older or budget phones run smoother when multitasking. You’ll learn two methods: the built-in ‘Adoptable Storage’ feature (available on most Android 6.0+ devices) and the more advanced ‘Swap’ method using root access. Before starting, back up your SD card data, as both methods will erase it.

What You’ll Need

  • An Android phone (Android 6.0 or later for Adoptable Storage; root access for the swap method)
  • A high-speed SD card (Class 10 or UHS-I/UHS-II recommended; A1 or A2 rated is ideal)
  • A computer with an SD card reader (for the swap method)
  • USB debugging enabled (for the swap method via ADB)
  • Root access (for the swap method) – this voids warranty and carries risk

Step-by-Step: Method 1 – Adoptable Storage (No Root)

  1. Back up your SD card: Copy all files to your computer or cloud storage. This process will format the card.
  2. Insert the SD card into your phone.
  3. Open Settings and go to Storage (or Storage & USB).
  4. Tap on your SD card name. If you see a notification saying “SD card detected,” tap it.
  5. Select “Set up as internal storage” (or “Format as internal”). If you only see “Portable storage,” your phone doesn’t support Adoptable Storage via the UI – skip to Method 2.
  6. Confirm the warning that the card will be erased. Tap “Erase & format.”
  7. Choose “Move now” when asked if you want to move apps, photos, and other data to the new internal storage. You can also do this later.
  8. Wait for the process to finish. The phone will format and encrypt the card, then treat it as internal memory.
  9. Verify it worked: Go to Settings > Storage. You should see the total internal space increased by the SD card size.

Step-by-Step: Method 2 – Swap File (Root Required)

  1. Root your phone (if not already). This is device-specific; search for your model’s root guide. Rooting voids warranty and can brick your device if done wrong.
  2. Back up your SD card to your computer.
  3. Format the SD card as FAT32 or exFAT using your computer. Use a card reader and the OS’s formatting tool. FAT32 works with most devices, but exFAT supports larger files.
  4. Insert the SD card into your phone.
  5. Install a swap file manager app from the Play Store, such as “RAM Manager” or “Swapfile Manager.” (These are third-party apps; choose one with good reviews.)
  6. Open the app and grant root access when prompted (via SuperSU or Magisk).
  7. Select the SD card as the location for the swap file.
  8. Set the swap file size – typically 256 MB to 1 GB. A good rule is 0.5–1× your current RAM. For example, if you have 2 GB RAM, use 1 GB swap.
  9. Create the swap file and enable it. The app will usually run the necessary commands (mkswap, swapon).
  10. Reboot your phone to apply changes.
  11. Check if swap is active: Use a terminal app and type free -h. You should see a “Swap” line with a non-zero total.

Common Mistakes

  • Using a slow SD card: A Class 4 or lower card will be extremely slow, making your phone laggier than before. Always use Class 10 or UHS-I/UHS-II.
  • Not backing up: Both methods erase the SD card. Forgetting to back up loses photos, music, and documents.
  • Setting too large a swap file: A huge swap file (e.g., 4 GB) on a small card can wear it out quickly and cause performance drops. Stick to 1–2 GB max.
  • Assuming Adoptable Storage works on all phones: Many manufacturers (Samsung, LG, OnePlus) disable it in software. If you don’t see the option, don’t force it – use the swap method instead.
  • Forgetting to move apps: After adopting storage, you must manually move apps to the SD card via Settings > Apps > each app > Storage > Change.

Tips

  • Use a high-endurance SD card: Cards designed for dash cams or surveillance handle constant read/write better and last longer.
  • Keep the SD card in the phone: Removing it while adopted or used as swap can corrupt data or crash apps.
  • Monitor performance: If your phone becomes slower, reduce the swap size or switch back to portable storage.
  • For Adoptable Storage, use the “Move now” option: It automatically migrates compatible apps and data, saving you time.
  • For swap, set it to start on boot: Most swap apps have a “start on boot” toggle – enable it so you don’t have to re-enable after each reboot.

Troubleshooting

  • “SD card not recognized” after formatting: Re-insert the card, restart the phone, or reformat using the phone’s own format option (Settings > Storage > SD card > Format).
  • Adoptable Storage option missing: Your phone’s firmware may have it disabled. You can try enabling it via ADB commands (requires USB debugging and a computer): sm set-force-adoptable true. If that fails, use the swap method.
  • Swap file won’t activate: Ensure your kernel supports swap (most do). Check if the SD card is mounted as removable – some phones mount it in a way that prevents swap. Try formatting as ext4 instead of FAT32.
  • Phone becomes very slow: The SD card is too slow or the swap size is too large. Reduce swap size or use a faster card.
  • Apps crash after adopting storage: Some apps don’t support being moved to SD. Move them back to internal storage via Settings > Apps > app > Storage > Change > Internal.
  • Data corruption: If you see “SD card corrupted” errors, the card may be failing. Back up immediately and replace it.

Frequently Asked Questions

Is using an SD card as RAM safe?

It’s safe for the phone, but the SD card will wear out faster due to constant read/write. High-endurance cards last longer. There’s no risk of damaging the phone itself.

Will this make my phone as fast as a new phone?

No. SD card speeds are much slower than internal RAM. It helps with multitasking (keeping more apps open) but won’t speed up processing. You’ll notice less app reloading, but not faster gaming.

Can I use any SD card?

Technically yes, but a slow card will hurt performance. Use at least a Class 10 or UHS-I card. A2-rated cards are best for app storage.

Do I need to root my phone for the swap method?

Yes, creating a swap file requires root access to execute system-level commands. The Adoptable Storage method does not require root.

Will I lose my SD card data?

Yes, both methods format the card. Always back up before starting.

Can I remove the SD card after setting it as internal storage?

It’s not recommended. Removing it can cause apps to crash and may corrupt data. If you need to remove it, first migrate apps back to internal storage and reformat the card as portable.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →