• 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. ldd Command Options in Linux
  2. Ubuntu Linux – yED(Graph Editor) Alternate of Microsoft Office Visio
  3. CIFS Share Filesystem Is Not Mounted after Reboot on CentOS/RHEL 7
  4. awk Command Examples in Linux
  5. BTRFS: too many missing devices, writeable mount is not allowed
  6. asdf – Command-line interface for managing versions of different packages
  7. apt-get Command Examples in Linux
  8. How To Setup UDEV Rules For RAC OCR And Voting Devices on Partitions
  9. ascii: command not found
  10. Active FTP vs. Passive FTP

You May Also Like

Primary Sidebar

Recent Posts

  • “az storage blob” Command Examples (Manage blob storage containers and objects in Azure)
  • “az storage account” Command Examples (Manage storage accounts in Azure)
  • “az sshkey” Command Examples (Manage ssh public keys with virtual machines)
  • “az redis” Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright