Skip to content

Instantly share code, notes, and snippets.

@bonyiii bonyiii/gist:1471379
Created Dec 13, 2011

What would you like to do?
restore overwritten files linux
Assess which partition on your computer you need to access to recover the files.
Unmount the directory using the "unmount" command in the interface. This will help prevent damaging the file you are trying to recover.
Type "debugfs" in the command line interface (all typing without quotation marks) and include the file system where the overwritten file is into the command. For example, typing "debugfs usr/personal" will bring up your personal directory. Hit "Enter" after typing the command.
Use the "Isdel" command by typing "Isdel" in the command line interface and hitting "Enter" while the system is being debugged. This will bring up a list of overwritten and deleted files in the file system.
Recover the overwritten files by typing the command "dump filename" in the command line interface and hitting "Enter."
Type in the "inode" number associated with the files you want to retrieve, which is located in the first column that is displayed in by the "Isdel" command.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.