Sunday 1 May 2016

Restoring files with the EXT3/4 filesystem

Fortunately EXT3 and EXT4 provide the ability to recover deleted files (unlike XFS - which I found out the hard way!)

To perform the file recovery we should firstly install extundelete:

dnf install extundelete

and we can then restore a singular file with:

extundelete --restore-file myuser/Documents/important_document.txt /dev/mapper/fedora-home

(where '/dev/mapper/fedora-home' is the block device.)

0 comments:

Post a Comment