File systems · Ext4 volume
Ext4 file recovery on Linux
How should I recover deleted files from Ext4?
Short answer
First unmount the volume and do not mount it read-write again: that can replay the journal and change what is left. Create an image with ddrescue or dd, then work on that image with Ext4-aware tools such as ext4magic, or carve it with PhotoRec. File Recovery Hero does not parse Ext4 metadata or run on Linux.
The situation
Files were deleted from a Linux disk or the volume no longer mounts normally.
File Recovery Hero cannot read ext4, so an ext4 partition is not something it can scan, even through a disk image. If a Linux disk lost files, the decisive step is to stop writing to it and to work on a copy. Whether anything is left depends on the kernel and on how much was written since the deletion.
01 / Diagnose
Work out what actually disappeared
ext4 records where a file lives in extents inside inodes. When a file is removed, the journalled file system marks the inode free and usually clears that pointer information, which is why simple undelete tools often return little on ext4. Content may still sit in unused blocks, but the link between a name and its data is mostly gone.
Ext4 journals and inode structures require file-system-specific tools. Mounting read-write can replay a journal and change the evidence.
Check the last known path, trash and backups without writing to the original device.
02 / Protect the source
Preserve the best recovery chance
- 1
Remount the partition read-only or shut the machine down at once, then boot from a live system so nothing else writes to the disk.
- 2
Make a full block-level image with a tool such as ddrescue onto a drive that is larger than the source, and keep the image as your working copy.
- 3
Check snapshots, backups, a cloud sync folder and the desktop trash first, since a copy there keeps its name and folder.
- 4
Only then try a Linux tool that understands ext4 inodes and the journal, and always point its output at a separate drive.
Do not run fsck with repair options on the affected partition, do not reinstall or upgrade packages on it, and do not restore files back into the same file system. Every one of those writes new data in the very blocks you hope to read. Do not shrink or resize the partition either.
03 / Choose the method
Match the tool to the source
For stable, readable exFAT, NTFS and FAT16/FAT32 or uncompressed IMG, DD, RAW and BIN images.
Unconfirmed exports are marked .UNVERIFIED.
The app supports exFAT, NTFS and FAT16/FAT32 only. ext4, Btrfs, APFS and HFS+ are not implemented, and a volume without a recognisable supported file system does not start a scan. It also does not repair damaged drives. A memory card or USB stick that came from a Linux machine with exFAT or FAT32 is a different matter.
04 / Verify
Check the recovered content, not just its name
Compare recovered files by size, by their type and by opening them fully. Names from the directory are often lost on ext4, so expect generic names and sort by content instead. A photo that opens but shows grey blocks, or a video that stops early, was only partly stored in contiguous blocks.
Keep the source until two verified copies exist. One working preview is not enough.
Sources and technical references
FAQ
Questions about this recovery case
Can Ext4 volume be recovered in this situation?+
File Recovery Hero cannot read ext4, so an ext4 partition is not something it can scan, even through a disk image. If a Linux disk lost files, the decisive step is to stop writing to it and to work on a copy. Whether anything is left depends on the kernel and on how much was written since the deletion. The result still depends on what remains readable on the source.
What should I avoid before scanning?+
Do not run fsck with repair options on the affected partition, do not reinstall or upgrade packages on it, and do not restore files back into the same file system.
Does scanning write to my memory card?+
Your memory card is only read. Nothing is saved to it.
How do I know whether the result is complete?+
Compare recovered files by size, by their type and by opening them fully.