Installing Android directly on SD cards is a solution that saves when internal memory is sorely lacking and there is no way to buy a new smartphone. This method allows you to run your system or applications from an external drive, saving precious gigabytes of built-in storage. However, the process is far from as simple as copying files: it requires unlocking the bootloader, working with custom firmware and sometimes even soldering contacts (in the case of some Xiaomi or Samsung).
In this article we will look at three main ways to install Android on an SD card - through TWRP, using Fastboot and method ADB Sideload, and we will also tell you which memory cards are suitable for this task, and which ones will lead to slowdowns and errors. Important: the procedure is not suitable for all devices - some manufacturers (for example, Google Pixel or OnePlus the latest generations) block. this possibility is at the kernel level.
Before you begin, check whether your device supports Adoptable Storage (the function of combining an SD card with internal memory) or Link2SD (transferring applications to an external drive). If so, the standard ones may be enough for you. Android tools without risky manipulations with the firmware.
1 What. SD cards are suitable for installing Android
Not every microSD can cope with the role of a system drive. For stable operation of Android on an external drive, you need:
- ๐น Speed class not lower
UHS-I U3orV30(minimum write speed - 30 MB/s). data-i="56">without UHS marking are only suitable for light firmware typeClass 10without UHS marking, suitable only for light firmwares like LineageOS without GApps. - ๐น Volume from 32 GB (optimally - 64โ128 GB) the system simply will not fit on cards smaller than 16 GB.
- ๐น File system format:
ext4orf2fs(Android does not supportNTFS/exFATfor the system partition). - ๐น Brand: give preference SanDisk Extreme, Samsung EVO Plus or Kingston Canvas Go!. Cheap no-name cards are often counterfeited, indicating inflated characteristics.
โ ๏ธ Attention: If your SD card was previously used in a camera or as portable storage, you need to completely format use it before installing Android. utility SD Card Formatter from SD Association with the option Overwrite format โthis will delete all hidden partitions.
| Card characteristics | Minimum requirements | Recommended values |
|---|---|---|
| Speed class | Class 10 |
UHS-I U3 / V30 |
| Volume | 16 GB | 64โ128 GB |
| File system | FAT32 (before formatting) |
ext4 / f2fs |
| Number of rewrite cycles | 1000 | 3000+ (for durability) |
Before purchasing, check the SD card for authenticity using the utility H2testw (Windows) or F3 (Linux/macOS). Counterfeits often have a real volume 2-4 times less than declared.
2. Preparing the device: unlocking the bootloader and root
Without an unlocked bootloader (bootloader) and superuser rights (root), it is impossible to install Android on an SD card. The unlocking process varies depending on the manufacturer:
- ๐ฑ Xiaomi: permission is required in
Mi Unlock Tool(linking an account to the device). On some models (for example, Redmi Note 8 Pro, soldering is required). testpoints. - ๐ฑ Samsung: unlocking via
Odinwith the mode enabledOEM Unlockin the developer settings. On new devices (with Knox 3.0+) this will trigger the flagKNOX 0x1and loss guarantees. - ๐ฑ Google Pixel, OnePlus, Motorola: unlocking via command
fastboot oem unlock. On some models, you will need to enter an unlock code (sent by email).
After unlocking the bootloader, you need to install a custom recovery - usually TWRPDownload the version compatible with your device model from. official website TeamWin or thematic forum (for example, XDA Developers). Installation is performed with the command:
fastboot flash recovery twrp-3.7.0_9-0-redfin.img
fastboot boot twrp-3.7.0_9-0-redfin.img
โ ๏ธ Attention: On devices with Dynamic Partition (Android 10+), installing TWRP can lead to loss data sections vendor or product. Before the procedure, make a full backup via ADB Backup or Swift Backup (requires root).
What happens if you unlock the bootloader on Samsung?
The Knox flag (0x1) is triggered, the warranty is lost, Secure Folder, Samsung Pay and some camera functions are disabled. On devices with Exynos, access to encrypted partitions may also be blocked.
3. Installing Android on SD via TWRP
The most common method is to use custom recovery TWRP. It is suitable for most devices with an unlocked bootloader. You will need:
- ๐ Firmware in format
.zip(For example, LineageOS, Pixel Experience or Havoc-OS). - ๐
Open GApps(if you need Google services) orNikGAppsto save space. - ๐ Modified
boot.img(if the firmware requires patching to work with SD card).
Installation steps:
- Boot into
TWRP(holdPower + Volume Upwhen turning on). - Go to
Wipe โ Advanced Wipeand checkDalvik / ART Cache,System,Data,Internal Storage. Confirm by swiping. - Return to the main menu, select
Mount โ Enable MTPand copy the firmware and GApps to the SD card via your computer. - B
TWRPselectInstall, specify the path to the firmware on the SD card and addGAppsas an additional zip. - Before confirming the installation, go to
Install imageand flash the modifiedboot.imgto sectionBoot. - After completion, click
Reboot System.
โ๏ธ Preparing for installation via TWRP
โ ๏ธ Attention: On some devices (for example Samsung Galaxy A50) installation on an SD card via TWRP leads to looping logo. In this case, you need to roll back the kernel to stock or use an alternative method (see section 4).
4. Method 2: Installation via Fastboot (for devices with A/B partitions)
Devices with A/B-partitions (for example, Google Pixel, OnePlus 6T+, Xiaomi Mi A2) require a different approach. Here the firmware is installed not through recovery, but directly into the partition. data-i="161">or system or super with redirection to an SD card.
Procedure:
- Unpack the firmware (for example, Pixel Experience) into folder with
fastboot. - Connect the device to the PC in
Fastboot(Power + Volume Down). - Run the commands (example for Pixel 3a):
fastboot flash boot boot.imgfastboot flash dtbo dtbo.img
fastboot flash system system.img
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img - To transfer the system to an SD card, use the script
move_system_to_sd.sh(available at XDA for specific models). - Reboot the device with the command
fastboot reboot.
Devices with A/B partitions do not support the classic installation method via TWRP. This requires manual flashing of each partition with signature verification disabled (vbmeta).
โ ๏ธ Attention: On OnePlus c OxygenOS 11+ custom firmware boot.img may lead to IMEI blocking. Before you start, check whether your model supports installation on SD via Fastbooton the forum XDA Developers.
5. Method 3: Installation via ADB Sideload (for devices without TWRP)
If it is not possible to install TWRP on your device (for example, on some Huawei or Realme), you can use ADB Sideload. This method requires:
- ๐ฅ๏ธ Installed
ADBiFastbooton the PC. - ๐ฑ Enabled mode
USB Debuggingin the developer settings. - ๐ Firmware with support
ADB Sideload(usually this LineageOS or AOSPprojects).
Instructions:
- Connect the device to the PC and go to stock recovery (
Power + Volume Up). - Select item
Apply update from ADB. - On the PC, run the command:
adb sideload lineage-18.1-20230510-nightly-sargo-signed.zip - After installing the firmware, repeat step for
GApps(if needed). - To transfer the system to an SD card, use command:
adb shell sm set-force-adoptable truethen format the card as internal memory in the Android settings.
If ADB Sideload gives the error "signature verification failed", add a flag --disable-verity to the command or use a patched recovery.
6. Common errors and their solutions
Even if you follow the instructions exactly, problems may arise. Here are the most common ones and how to eliminate them:
| Error | Cause | Solution |
|---|---|---|
E: Unable to mount /sdcard |
SD card formatted in NTFS/exFAT |
Reformat in ext4 via TWRP or GParted |
| Stuck on logo after installation | Incompatible boot.img or there is no patch DM-Verity |
Flash the modified kernel or disable verification with the command fastboot --disable-verity flash vbmeta vbmeta.img |
Status 7 in TWRP |
The firmware is not intended for your model | Download the firmware version for your device (check the model encoding c Settings โ About phone) |
| Applications crash after transferring to SD | Low card writing speed | Replace the card with a model with a class U3/V30 or transfer only media files |
โ ๏ธ Attention: If after installing Android on the SD card device does not turn on at all (black screen, no response to buttons), this may indicate damage to the partition boot or dtbo. Operation can only be restored through EDL mode (for Qualcomm) or Download Mode (for Samsung), using stock firmware.
7. Optimizing the operation of Android with SD cards
Installing the system on an external drive is half the battle. To make Android work quickly and stably, perform the following settings:
- ๐ Disable animation: go to
Settings โ About phone โ Build number(press 7 times to enable developer mode), then toDeveloper settingsinstallWindow animation,Transition animationandAnimator durationon0.5x. - ๐ Move cache applications: use App2SD or manually change the cache path via
ADB:adb shell pm set-install-location 2 - ๐ก๏ธ Disable unnecessary services: using Greenify or
ADBblock the background activity of system applications (for example,com.android.bipsorcom.google.android.gms.persistent). - ๐ Limit background synchronization: c In your Google account settings, turn off automatic synchronization for unnecessary data (for example,
Google FitorGoogle Play Music).
Even U3 class SD cards wear out faster than internal memory. To extend their life, disable logging in the ext4 file system with the command tune2fs -O ^has_journal /dev/block/mmcblk1p2 (root required).
FAQ: Frequently asked questions about installing Android on an SD card
Is it possible to install Android on SD card without root?
No, to fully install the system on an SD card, you need superuser rights (root) and an unlocked bootloader. However, you can use the function Adoptable Storage (merging an SD card with internal memory) without root on Android 6.0โ9.0 On new versions (Android. 10+) this function is limited.
Why do applications crash after installation on the SD card?
This is due to the low read/write speed of the memory card Solutions:
- Replace the SD card with a model with a class
U3/V30. - Move to the card only. media files, and leave applications in the internal memory.
- Use Link2SD to create symbolic links instead of a complete transfer.
How to get everything back if something went wrong?
If the system does not boot or is unstable:
- Install stock firmware via
Fastbootor Odin (for Samsung). - Restore backup
EFSandIMEIif they were saved. - Format the SD card in
FAT32via SD Card Formatter.
โ ๏ธ If the bootloader is locked and the device does not turn on, you will need a service center (to unlock via EDL or JTAG).
Is it possible to install Android on an SD card in Samsung smartphones with Exynos?
Technically yes, but with reservations:
- On devices with One UI 3.0+ (Android 11+), installing custom firmware causes it to work.
KNOXand loss of functions like Samsung Pay. - For models on Exynos 9820/990 (for example, Galaxy S10, Note 10) a patched kernel with support is required
F2FS. - Samsung does not support stock recovery
ADB Sideload, therefore firmware is only possible viaOdin+TWRP.
How long will an SD card with Android installed last?
Service life depends on the type of memory and intensity of use:
- MLC chips (in premium segment cards, for example, SanDisk Extreme Pro) can withstand ~3000 cycles rewriting (~3โ5 years with active use).
- TLC chips (in most budget cards) - ~500โ1000 cycles (~1โ2 years).
- Using
f2fsinstead ofext4increases service life by 10โ15% due to more efficient block management.
๐ก Tip: Regularly backup data on the SD card - if it wears out, it may fail without warnings.