Quick Linux Tip #47:
Try: sudo debugfs -R 'lsdel' /dev/sda1 | tail -20
Info: debugfs is a low-level ext filesystem tool. lsdel lists deleted inodes, and dump <inode> <file> restores content. Works only if blocks haven't been overwritten yet.
Examples:
- $ sudo debugfs /dev/sda1 # Interactive filesystem mode
- $ sudo extundelete --restore-all /dev/sda1 # Automated bulk recovery tool
- $ sudo photorec # Universal block recovery across any filesystem
Note: Stop writing to the partition immediately after deletion to prevent overwriting raw blocks. debugfs is specific to ext2/3/4.
Leave a Reply