Create a Bootable Linux USB Drive from Android (No Root)

13 min read Learn step‑by‑step how to turn an Android phone into a USB‑OTG writer and create a bootable Linux USB stick without rooting your device. October 13, 2026 09:30 How to Create a Bootable Linux USB Drive Directly from an Android Phone (No Root)

Imagine you need a Linux live USB for a quick rescue, a demo, or a fresh install, but you don’t have a PC handy. Your Android phone can become a portable ISO writer – no rooting, no extra hardware besides an OTG cable and a USB flash drive. This tutorial shows exactly how to do it, explains why each step matters, and gives you troubleshooting tips if the write fails.

Why It Works Without Root

Android’s kernel already includes the usb-storage driver, which lets the system treat a USB‑OTG flash drive as a block device (e.g., /dev/block/sda). The Termux environment runs a minimal Linux userland that can invoke the standard dd utility. Because the flash drive is an external storage device, the Android framework grants write access to it without needing super‑user privileges – the same way the built‑in file manager can copy files to the drive.

Before You Start

  • Android version: 8.0 (Oreo) or newer. Older versions may lack reliable OTG support.
  • Device support: The phone must support USB‑OTG. Look for the OTG logo on the packaging or check the specs.
  • Hardware: A good quality OTG adapter and a USB flash drive (8 GB or larger is recommended for most Linux ISOs).
  • Battery: Keep the phone charged above 50 % or plug it into power; a write can take several minutes and an unexpected shutdown corrupts the USB.
  • Network: Wi‑Fi or mobile data to download the Linux ISO (≈1‑2 GB). If you already have the ISO on another device, you can transfer it via Bluetooth or a local network share.
  • Backup: The flash drive will be completely overwritten. Ensure any data on it is backed up elsewhere.

Step‑by‑Step Procedure

  1. Install Termux and Required Packages

    Open the Google Play Store (or F‑Droid for a free build) and install Termux. After the first launch, run the following commands to update the package repository and install the tools we need:

    pkg update && pkg upgrade -y
    pkg install wget proot-distro coreutils util-linux -y

    coreutils provides the dd command, while util-linux gives us lsblk to identify block devices.

  2. Download the Linux ISO

    Choose a lightweight distribution (e.g., Ubuntu‑Live, Debian‑Netinst, or Alpine). For illustration we’ll use Ubuntu 22.04 LTS. Replace the URL with the version you prefer.

    wget -O /sdcard/ubuntu-22.04-live-server-amd64.iso https://releases.ubuntu.com/22.04/ubuntu-22.04-live-server-amd64.iso

    The file is saved to the shared /sdcard directory, which is accessible both from Android’s file manager and from Termux.

  3. Connect the USB Flash Drive via OTG

    Plug the OTG adapter into the phone’s USB‑C (or micro‑USB) port, then insert the flash drive. Android should display a notification like “USB drive attached”. If you don’t see it, check the adapter and ensure the drive is powered (some high‑capacity drives need external power).

  4. Identify the Correct Block Device

    In Termux, list all block devices:

    lsblk

    You’ll see output similar to:

    NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
    mmcblk0     179:0    0  29.8G  0 disk 
    └─mmcblk0p1 179:1    0  29.8G  0 part  /data
    sda         8:0    0   16G  0 disk 
    └─sda1      8:1    0   16G  0 part  /storage/XXXX-XXXX

    The external flash drive appears as sda (or sdb on some devices). Do not confuse it with mmcblk0, which is the phone’s internal storage. Note the device name (e.g., sda) – we’ll use it in the next step.

  5. Unmount the Drive

    Before writing, the partition must be unmounted. Run:

    umount /dev/block/sda1

    If you receive “target is busy”, close any file manager windows that might be accessing the drive, or use fuser -km /dev/block/sda1 to terminate lingering processes.

  6. Write the ISO with dd

    Now we copy the ISO byte‑for‑byte to the raw block device. The command looks dangerous, so double‑check the device name.

    dd if=/sdcard/ubuntu-22.04-live-server-amd64.iso of=/dev/block/sda bs=4M status=progress

    Explanation:

    • if= – input file (the ISO you downloaded).
    • of= – output file (the raw block device).
    • bs=4M – block size; larger values speed up the copy on modern hardware.
    • status=progress – shows a live progress bar, useful for long writes.

    The write may take 5‑10 minutes depending on the flash drive speed. Do not disconnect the USB or power off the phone during this process.

  7. Flush Buffers and Verify

    After dd finishes, ensure all data is flushed to the drive:

    sync

    Optionally, verify the first few megabytes to confirm the ISO header is present:

    dd if=/dev/block/sda bs=512 count=1 | hexdump -C | head

    You should see the “ISO” signature (e.g., EB 5A 90 for bootable images). If the output looks random, the write may have failed – repeat the dd step.

  8. Safely Eject the USB Drive

    Run the following to tell Android the device can be removed:

    umount /dev/block/sda

    Then unplug the OTG adapter. The flash drive is now a bootable Linux USB stick.

  9. Test the USB on a PC

    Insert the drive into a computer, enter BIOS/UEFI, and select the USB as the boot device. You should see the Linux distribution’s boot menu. If the PC reports “no bootable media”, double‑check that the ISO you used is indeed a hybrid image (most modern Linux ISOs are).

Common Pitfalls & Troubleshooting

  • Device not recognized. Some cheap OTG adapters only support charging. Verify the adapter is labeled “OTG” and try a different cable if possible.
  • Wrong block device selected. Accidentally writing to mmcblk0 will erase your phone’s internal storage. Always confirm the device name with lsblk after the USB is attached.
  • “Permission denied” when running dd. Ensure Termux has the Storage permission (Settings → Apps → Termux → Permissions). If the permission is granted but the error persists, restart Termux.
  • Write speed is extremely slow. Some USB flash drives are USB 2.0. The bs=4M block size helps, but the hardware limit remains. Patience is required.
  • Boot fails on UEFI systems. Use a distribution that provides a UEFI‑compatible hybrid ISO (e.g., Ubuntu, Fedora). If you need legacy BIOS, create the USB on a PC with rufus instead – the Android method only produces a hybrid image.

Safety & Data‑Loss Warning

Writing with dd is often called “disk destroyer” because a single typo can overwrite the wrong drive. Always double‑check the of= path. Keep a backup of any important files on the flash drive before you start – the process erases the entire drive.

Alternative Approaches

  • Using Etcher on Android. A few third‑party apps claim to flash ISOs, but many require root or suffer from limited device support. The Termux+dd method is transparent and works on any device that can mount OTG storage.
  • Using a PC. If you have a laptop nearby, tools like Rufus (Windows) or dd (Linux/macOS) are still the simplest. The Android workflow shines when you truly have no computer.
  • Creating a Persistent Live USB. After the initial bootable write, you can add a persistence partition using fdisk from Termux. This is an advanced step beyond the scope of this guide.

Wrap‑Up

With a few commands and an OTG cable, your Android phone becomes a portable ISO writer. The method works for most mainstream Linux distributions, requires no rooting, and leaves your phone’s system untouched. Keep the safety tips in mind, verify the target device, and you’ll have a bootable USB ready for any PC – right from the pocket.

User Comments (0)

Add Comment
We'll never share your email with anyone else.