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 ofextundelete. cute and simple, she's serving info. ๐--helpโ prints a brief usage summary forextundelete. 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 withdd. so yes, addclone 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-fileoption, and save it to the filefilename. then, this option may be used to attempt to restore those files with a single call toextundelete. 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 likefile.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. ๐ง-jjournal_devโ specifies the device that is the external journal of the file system. โจ-bblock_numberโ specifies the block number of the backup superblock to be used when opening the file system. ๐-Bblock_sizeโ specifies the block size of the partition to be used when opening the file system. ๐--beforedateโ 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. ๐งฎ๐
--afterdateโ 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--beforeoption 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. ๐
โจ๐ฆ
๐ฆ where this page comes from
- debian bookworm: extundelete 0.2.4-3 ยท GPL-2.0-only
- debian trixie: extundelete 0.2.4-3+b2 ยท GPL-2.0-only
- ubuntu jammy: extundelete 0.2.4-3 ยท GPL-2.0-only
- ubuntu noble: extundelete 0.2.4-3build2 ยท GPL-2.0-only
- ubuntu questing: extundelete 0.2.4-3build2
- ubuntu resolute: extundelete 0.2.4-3build3 ยท GPL-2.0-only
- ubuntu stonking: extundelete 0.2.4-3build3 ยท GPL-2.0-only
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms