• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

extundelete: command not found

by Deepika

extundelete is a command-line tool that can be used to recover deleted files from ext3 or ext4 file systems. It works by parsing the file system’s journal, which is a record of all the changes made to the file system, including file deletions. By analyzing the journal, extundelete can determine which blocks of the file system were allocated to a file before it was deleted, and can then reconstruct the file from those blocks.

extundelete can recover both files and directories, and it can recover them even if the file system has been modified or if the journal has been overwritten.

If you encounter the below error while running the command extundelete:

extundelete: command not found

you may try installing the below package as per your choice of distribution:

Distribution Command
Debian apt-get install extundelete
Ubuntu apt-get install extundelete
Arch Linux pacman -S extundelete
Kali Linux apt-get install extundelete
Fedora dnf install extundelete
Raspbian apt-get install extundelete

extundelete Command Examples

1. Restore all deleted files inside partition N on device X:

# sudo extundelete /dev/sdXN --restore-all

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

# extundelete /dev/sdXN --restore-file path/to/file

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

# extundelete /dev/sdXN --restore-directory path/to/directory

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

# extundelete /dev/sdXN --restore-all --after 1577840400

Filed Under: Linux

Some more articles you might also be interested in …

  1. CentOS / RHEL : How to collect sosreport
  2. apt-add-repository Command Examples
  3. xargs Command Examples in Linux
  4. How to add Source, Services and Ports to Firewall Zone in CentOS/RHEL 7 and 8
  5. How To Customize The Screensaver Options In Gnome on CentOS/RHEL 7
  6. How to Delete unnecessary Entry in /etc/shadow
  7. How to configure iSCSI target using targetcli in CentOS / RHEL 7
  8. CentOS / RHEL : Installing and Configuring ASMLib
  9. How to move /var on a separate disk as a separate mount point (Online)
  10. How to check failed or bad login attempts in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • fprintd-delete Command Examples in Linux
  • fprintd-delete: command not found
  • foreman: command not found
  • foreman Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright