• 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

e2undo: command not found

by Deepika

The e2undo command in Linux is used to undo the last file system transaction on an ext2, ext3, or ext4 file system. This command can be used to recover from a file system error, such as an unintended deletion or modification. The e2undo command will undo the last transaction that was made by the file system and return it to its previous state.

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

e2undo: command not found

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

Distribution Command
Debian apt-get install e2fsprogs
Ubuntu apt-get install e2fsprogs
Alpine apk add e2fsprogs
Arch Linux pacman -S e2fsprogs
Kali Linux apt-get install e2fsprogs
CentOS yum install e2fsprogs
Fedora dnf install e2fsprogs
OS X brew install e2fsprogs
Raspbian apt-get install e2fsprogs

e2undo Command Examples

1. Display information about a specific undo file:

# e2undo -h path/to/undo_file /dev/sdXN

2. Perform a dry-run and display the candidate blocks for replaying:

# e2undo -nv path/to/undo_file /dev/sdXN

3. Perform an undo operation:

# e2undo path/to/undo_file /dev/sdXN

4. Perform an undo operation and display verbose information:

# e2undo -v path/to/undo_file /dev/sdXN

5. Write the old contents of the block to an undo file before overwriting a file system block:

# e2undo -z path/to/file.e2undo path/to/undo_file /dev/sdXN

Filed Under: Linux

Some more articles you might also be interested in …

  1. How To Disable Or Extend System Logging Rate-limit on CentOS/RHEL 7
  2. sar Command Examples in Linux
  3. a2dissite Command Examples in Linux
  4. laptop-detect: command not found
  5. firejail Command Examples in Linux
  6. How to Increase KVM Guest Memory Resources
  7. Linux OS Service ‘xendomains’
  8. How To Configure Restricted Bash Shell in Linux
  9. How to Disable or set SELinux to Permissive mode
  10. feedreader: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • nixos-rebuild Command Examples in Linux
  • nixos-option: Command Examples in Linux
  • nixos-container : Command Examples in Linux
  • nitrogen Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright