Files with the extension .IMG are disk images, backups or archives that are often used to create bootable media, restore system data or store multimedia. On Androiddevices, working with such files can be difficult: standard applications do not recognize them, and attempts to open them through a file manager usually end with the error "Unknown format".
In this article we will look into all current methods of working with IMG on smartphones - from simply viewing the contents to mounting the image as a virtual disk. You'll learn which applications are suitable for beginners and which require root access or command line knowledge. Let us separately dwell on the nuances of opening encrypted images and restoring data from backups.
Important: if your IMGfile is not a disk image, but, for example, a photo with non-standard extension (this happens when saving errors), first check it on your computer using file or 7-Zip. In 90% of such cases, it is enough to rename the file to .JPG or .PNG.
What is an IMG file and why do you need it on Android?
Format IMG (from English image - "image") - this is an exact copy of the data structure with physical or virtual media. On Android such files are found in several scenarios:
- ๐ฑ Backups partition
/dataor/systemcreated through TWRP or ADB. - ๐พ Boot disk image for installing custom firmware (for example, LineageOS).
- ๐ฎ Game ROMs for emulators (for example, images PlayStation or Nintendo DS).
- ๐ Encrypted containers with data (for example, VeraCryptvolumes).
Unlike .ISOwhich is more often used for optical disks, .IMG may contain any file system โ from FAT32 to ext4. This makes it universal, but also complicates opening without specialized tools.
โ ๏ธ Attention: If the file .IMG was downloaded from an unreliable source (for example, from a torrent tracker or an unknown site), before opening it, check it for viruses using VirusTotal or Dr.Web Light. The disk image may contain malicious code that will be executed when mounted.
On Android without additional tools you can only:
- ๐ See the file size and creation date.
- ๐ Rename or delete it.
- ๐ค Send to another device.
For everything else you will need special applications or root access.
Method 1: Viewing IMG contents through archivers
If your .IMGfile is unencrypted. image with a file system (for example, a backup copy of a partition /data), it can be opened as an archive. For this, the following are suitable:
- ๐ฆ ZArchiver โ supports
ext4,FAT32,NTFSand other file systems. - ๐๏ธ RAR โworks with simple images, but may not recognize complex structures.
- ๐ 7Z โreliable for extracting files, but does not show the folder hierarchy.
Step-by-step guide for ZArchiver:
- Install ZArchiver from Google Play.
- Launch the application and find your
.IMGfile. - Click on it and select "Open as archive".
- If the image is recognized, you will see a list of files inside. To extract, click "Extract" and specify the folder.
โ ๏ธ Attention: If you see the error "Incorrect archive format" when opening, this means that the file is either encrypted or contains a non-standard file system (for example,f2fs). In this case, proceed to methods 3โ5.
Try another archiver (for example, 7Z instead RAR)
Check the file for integrity (compare the hash sum with the original)
Make sure that this is not an encrypted image (try method 4)
Use a PC for preliminary analysis of the file-->
Method 2: Mounting IMG as virtual disk (without root)
To work with .IMG as with a full-fledged disk, you will need an application that supports mounting images. The best options:
| Application | FS support | Root | Features |
|---|---|---|---|
| DriveDroid | FAT32, ext4, NTFS |
โ No | Allows you to mount images as USB drives |
| Mount Image | ext2/3/4, FAT |
โ Yes | Requires BusyBox for full operation |
| Total Commander + Plugin | Any | โ No | Need a plugin TCFS2 for mounting |
Instructions for DriveDroid (the easiest way):
- Install DriveDroid from Google Play.
- Launch the application and click "+" โ "Create blank image".
- Select "Use existing image" and specify the path to your
.IMGfile. - Click "Writeable" (if you need to edit files) or "Read-only".
- Select "USB Mass Storage" and connect the phone to the PC (if required).
- A virtual disk will open on your smartphone - now you can view files through any file manager.
Limitation: DriveDroid does not support f2fs If mounting fails, try Mount Image (but. required root).
If after mounting you see an empty folder, check whether your IMG compressed image. In this case, first unpack it on your PC using 7-Zip or WinRAR, and then repeat the mount.
Method 3: Working with IMG via Termux (for advanced)
If you are familiar with Linux-commands, Termux will allow you to work with .IMG directly on a smartphone. This method is suitable for:
- ๐ง Analyzing the image structure.
- ๐ Searching for specific files inside.
- ๐ Extracting data without a graphical interface.
Installing the necessary packages:
pkg update && pkg upgradepkg install wget proot-distro
proot-distro install ubuntu
proot-distro login ubuntu
apt install sleuthkit afflibewf
Commands for working with IMG:
- Viewing information about the image:
mmls image.img - Extracting files (for example, from a section
ext4):fls -r -p -o [offset] image.img > files.txticat image.img [inode] > extracted_file - Mounting (requires root):
mkdir /mnt/imgmount -o loop image.img /mnt/img
Example: to extract a file from inode 1234 from the image backup.img, do:
icat backup.img 1234 > restored_file
โ ๏ธ Attention: Commandsmountandicatrequire precise indication of the offset (offset) and the file system type. An error in the parameters can lead to data corruption. For beginners, we recommend that you first practice on test images.
How to find the offset for mounting?
First run the command fdisk -l image.img (in Termux you will need to install fdisk via apt install fdisk). In the output, find a line like:
image.img1 * 2048 1050623 524288 83 Linux
Number 2048 is offset in sectorsTo get the offset in bytes, multiply it. by 512 (sector size):
2048 * 512 = 1048576
Now you can mount the partition with the parameter -o loop,offset=1048576.
Method 4: Opening encrypted IMGs (VeraCrypt, LUKS)
If yours .IMG is encrypted container (for example, created in VeraCrypt or LUKS), to open it you will need:
- ๐ Password or key file.
- ๐ฑ Application with encryption support (for example, EDS Lite or Cryptomator).
- ๐พ Enough free space for mounting.
Instructions for EDS Lite:
- Install EDS Lite from Google Play.
- Launch the application and click "Mount container".
- Select your
.IMGfile and enter the password. - Specify the file system (usually
ext4orFAT32). - After successful mounting, a virtual disk will open, which can be viewed through any file manager.
For VeraCryptcontainers, the official application is suitable VeraCrypt for Android, but it requires root access for full operation. An alternative is Cryptomator, which creates an encrypted cloud storage, but does not support direct work with .IMG.
Android partition backup (TWRP)
Boot disk image (ISO/IMG)
Encrypted container (VeraCrypt, LUKS)
Game ROM for the emulator
Another option -->
Method 5: Converting IMG to ISO or another format
If none of the methods worked, try convert .IMG to a more compatible format (for example, .ISO or .BINTo do this:
- Copy the file to your PC (via MTP or the cloud).
- Use one of the utilities:
- ๐ฅ๏ธ PowerISO โsupports conversion to
ISO,BIN,NRG. - ๐ง dd (Linux/macOS)โto create an exact copy:
dd if=input.img of=output.iso bs=4M - ๐ช ImgBurn (Windows) is a free utility for working with images.
- ๐ฅ๏ธ PowerISO โsupports conversion to
Example of conversion via dd (for Termux):
pkg install coreutils
dd if=original.img of=converted.iso bs=1M status=progress
โ ๏ธ Attention: Conversion can take a long time (up to several hours for large files) and requires free space in double the amount from the original IMG. Do not interrupt the process, otherwise the image will be damaged.
Method 6: Recovering data from damaged data IMG
If the file .IMG does not open due to damage, try recovering the data using:
- ๐ ๏ธ TestDisk (via Termux) - restores partitions and files.
- ๐ PhotoRec - searches for lost files by signatures.
- ๐ฝ DiskDigger โspecializes in the recovery of photos and documents.
Instructions for TestDisk in Termux:
pkg install testdisk
testdisk /path/to/broken.img
- Select "No Log".
- Specify the type of partition table (usually
IntelforMBRorEFI GPT). - Select "Analyse" and wait for scanning.
- If partitions are found, click "P" to view files and "C" for copying.
To restore photos from a damaged image, DiskDigger:
- Install the application and provide access to the storage.
- Select "Full Scan" and specify the path to
.IMG-file. - After scanning, mark the required files and click "Recover".
If the IMG file was part of the backup TWRP, try restoring it through itself TWRP (booting into recovery). To do this, copy the file to folder /TWRP/BACKUPS/ and select "Restore".
Method 7: Using a PC for complex cases
If it was not possible to open Android open .IMG , transfer the file to your computer and use:
| Task | app (Windows) | app (Linux/macOS) |
|---|---|---|
| Mounting | WinCDEmu, Daemon Tools | mount -o loop image.img /mnt |
| Structure analysis | FTK Imager | kpartx -av image.img |
| Recovery data | R-Studio | testdisk, photorec |
| Conversion | PowerISO | qemu-img convert |
Mounting example in Linux:
sudo mkdir /mnt/img
sudo mount -o loop,ro,offset=$((2048*512)) image.img /mnt/img
Where 2048 is the sector number of the beginning of the partition (you can find it out via fdisk -l image.img).
For Windows The easiest way is to use 7-Zip or WinRAR โthey are often recognized .IMG as an archive. If you need to edit the files inside, mount the image via WinCDEmu:
- Install WinCDEmu.
- Click right-click on the
.IMGfile โ "Select drive letter & mount". - Open the designated drive in "This computer".
FAQ: Frequently asked questions about working with IMG on Android
Is it possible to open IMG without root?
Yes, but with limitations. Without root you can:
- View content through archivers (ZArchiver).
- Mount as a USB drive (DriveDroid).
- Convert to another format on a PC.
For mounting system partitions or working with encrypted images root is required.
Why IMG does not open in any application?
Possible reasons:
- File damaged (check checksum
MD5/SHA1). - This is not the disk image, but, for example, the firmware for a microcontroller (check the extension).
- The image is used non-standard file system (for example
f2fsorBtrfs). - File encrypted (try VeraCrypt or EDS Lite).
How to extract only one file from a large IMG?
If the image is not mounted, use Termux:
- Install
sleuthkit:apt install sleuthkit - Find
inodethe one you need file:fls -r image.img | grep "file_name" - Extract the file by
inode:icat image.img [inode] > extracted_file
Suitable for the graphical interface DiskDigger (section "Full Scan").
Can I create an IMG from a folder on Android?
Yes, using Termux:
pkg install ddrescue
dd if=/path/to/folder of=output.img bs=4M
To create a partition image (required root):
su
dd if=/dev/block/mmcblk0p1 of=/sdcard/backup.img
Caution: incorrectly specified partition (mmcblk0p1) can lead to data loss!
How to open IMG with firmware for Android?
The firmware image (boot.img, system.img) usually contains binary data for recovery via fastboot or TWRP. To view the contents:
- Download Android Image Kitchen to your PC.
- Unpack the firmware:
unpackimg.sh boot.img - Examine the files in the folder
split_img(for example,kernel,ramdisk.cpio).
On a smartphone, this will require Termux with manual parsing cpioarchives.