EXTUNDELETE(1)

๐Ÿ’– EXTUNDELETE ๐Ÿ’–

okay bestie, grab a strawberry ๐Ÿ“ and sit down, because we're about to talk about the literal resurrection command. this is the manual for extundelete โ€” the General Commands Manual girlie who brings your deleted files back from the void. no cap. ๐Ÿฆ‹


โœจ NAME โœจ

extundelete โ€” a utility to undelete files from an ext3 or ext4 partition. ๐Ÿ’…


๐ŸŒธ SYNOPSIS ๐ŸŒธ

extundelete [options] device-file...

๐ŸŽ€ DESCRIPTION ๐ŸŽ€

extundelete is a utility that can recover deleted files from an ext3 or ext4 partition. periodt.

the way it works is so iconic: extundelete uses the information stored in the partition's journal to attempt to recover a file that has been deleted from the partition. it's giving forensic detective energy. ๐Ÿ”โœจ

๐Ÿซถ but listen, bestie, for real: there is no guarantee that any particular file will be able to be undeleted. so always try to have a good backup system in place, or at least put one in place after recovering your files! ๐Ÿ˜ญ like, don't come for me if it doesn't work, i'm just the messenger.

๐Ÿ‘‘ OPTIONS ๐Ÿ‘‘

  • --version โ€” prints the version number of extundelete. cute and simple, she's serving info. ๐Ÿ’…
  • --help โ€” prints a brief usage summary for extundelete. your little map when you're lost. ๐Ÿ—บ๏ธ
  • Partition name โ€” the name of the partition that has deleted files, such as /dev/sda3. it could also be the file name of a copy of the partition, such as that made with dd. so yes, a dd clone works too, you flexible queen. ๐Ÿซถ
  • --superblock โ€” prints information about the filesystem from the superblock. โœจ
  • --journal --superblock โ€” prints information about the journal from the journal's superblock. the double-flag combo meal, lowkey iconic. ๐Ÿ”
  • --inode # โ€” prints the information from the inode number of the filesystem given, such as --inode 2. ๐Ÿ‘€
  • --block # โ€” prints the contents of the block, called as --block 9652. block party, literally. ๐ŸŽ‰
  • --restore-file path/to/deleted/file โ€” attempts to restore the file which was deleted at the given filename, called as --restore-file dirname/filename. this is the main character option, ngl. ๐ŸŒŸ
  • --restore-inode # โ€” used to restore inodes by number, called as --restore-inode 2569. it also accepts a list of inodes separated by only commas, such as --restore-inode 2569,5692,6925. commas only, bestie, no spaces, don't test her. ๐Ÿ’€
  • --restore-files filename โ€” restores a list of files. first, construct a list of files in the same style as would be used in the --restore-file option, and save it to the file filename. then, this option may be used to attempt to restore those files with a single call to extundelete. this form also reduces redundancy from multiple calls parsing the journal multiple times. efficiency queen fr fr. โšก
  • --restore-all โ€” restores all files possible to undelete to their names before deletion, when possible. other files are restored to a filename like file.NNNN. the "just get everything back" option, we love a maximalist. ๐ŸŒˆ
  • --restore-directory path/of/directory โ€” restores all files possible to link to specified directory to their names before deletion, when possible. ๐Ÿงš
  • -j journal_dev โ€” specifies the device that is the external journal of the file system. โœจ
  • -b block_number โ€” specifies the block number of the backup superblock to be used when opening the file system. ๐Ÿ›Ÿ
  • -B block_size โ€” specifies the block size of the partition to be used when opening the file system. ๐Ÿ“
  • --before date โ€” only restore files deleted before the date specified, which should be in the form of the number of seconds since the UNIX epoch. use a shell command like
$ date -d "Aug 1 9:02" +%s

to convert a human-readable date to the proper format. the conversion from the number of seconds to a readable format may be found by using either of the following:

$ date -d@1234567890
$ perl -le "print scalar localtime 1234567890"

math girlies rise up. ๐Ÿงฎ๐Ÿ’œ

  • --after date โ€” only restore files deleted after the date specified, which should be in the form of the number of seconds since the UNIX epoch. see the notes for the --before option for more information. she's the mirror twin of --before. ๐Ÿชž

๐ŸŒŸ AUTHOR ๐ŸŒŸ

extundelete was written by Nic Case <number9652@users.sourceforge.net> โ€” Copyright (C) 2009, 2012. ๐Ÿซถ

this manual page was written by Elรญas Alejandro Aรฑo Mendoza <ealmdz@gmail.com>, for the Debian project (and may be used by others). ๐Ÿ’–


and that's the whole thing, bestie!! ๐ŸŽ€ this page was born September 29, 2010, and it lives in the EXTUNDELETE(1) corner of the General Commands Manual (Debian edition). now go forth and undelete, you absolute icon. ๐Ÿ’…โœจ๐Ÿฆ‹