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.
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.
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.
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.
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).
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.
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.
ddNow 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.
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.
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.
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).
mmcblk0 will erase your phone’s internal storage. Always confirm the device name with lsblk after the USB is attached.dd. Ensure Termux has the Storage permission (Settings → Apps → Termux → Permissions). If the permission is granted but the error persists, restart Termux.bs=4M block size helps, but the hardware limit remains. Patience is required.rufus instead – the Android method only produces a hybrid image.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.
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.Rufus (Windows) or dd (Linux/macOS) are still the simplest. The Android workflow shines when you truly have no computer.fdisk from Termux. This is an advanced step beyond the scope of this guide.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.









