• 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 Examples in Linux

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.

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. fakeroot Command Examples in Linux
  2. ssh-copy-id: command not found
  3. Configure MySQL Router to Auto Restart of Failure using systemd
  4. CentOS / RHEL 7 : How to install kernel from rescue mode
  5. What is ioremap()
  6. Basic Commands to Troubleshoot Performance Issues in Linux
  7. flatpak Command Examples in Linux
  8. lnstat Command Examples in Linux
  9. Adding Static Routes On Various *NIX (Linux,AIX,HP-UX)
  10. Echo Command with Practical Examples

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