HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

extundelete — Recover deleted files from ext3 or ext4 partitions by parsing the journal. See also: `date`, `umount

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandext3filesfromrecoverextundeleteclideleted
linux

Problem

How to use the extundelete command: Recover deleted files from ext3 or ext4 partitions by parsing the journal. See also: date, umount. More information: <https://extundelete.sourceforge.net/options.html>.

Solution

extundelete — Recover deleted files from ext3 or ext4 partitions by parsing the journal. See also: date, umount. More information: <https://extundelete.sourceforge.net/options.html>.

Restore all deleted files inside partition N on device X:
sudo extundelete {{/dev/sdXN}} --restore-all


Restore a file from a path relative to root (Do not start the path with /):
extundelete {{/dev/sdXN}} --restore-file {{path/to/file}}


Restore a directory from a path relative to root (Do not start the path with /):
extundelete {{/dev/sdXN}} --restore-directory {{path/to/directory}}


Restore all files deleted after January 1st, 2020 (in Unix time):
extundelete {{/dev/sdXN}} --restore-all --after {{1577840400}}

Code Snippets

Restore all deleted files inside partition `N` on device `X`

sudo extundelete {{/dev/sdXN}} --restore-all

Restore a file from a path relative to root (Do not start the path with `/`)

extundelete {{/dev/sdXN}} --restore-file {{path/to/file}}

Restore a directory from a path relative to root (Do not start the path with `/`)

extundelete {{/dev/sdXN}} --restore-directory {{path/to/directory}}

Restore all files deleted after January 1st, 2020 (in Unix time)

extundelete {{/dev/sdXN}} --restore-all --after {{1577840400}}

Context

tldr-pages: linux/extundelete

Revisions (0)

No revisions yet.