Difference between revisions of "Linux Undelete"

From Free Knowledge Base- The DUCK Project: information for everyone
Jump to: navigation, search
m (testdisk)
m
Line 5: Line 5:
  
 
If not, then please view the RELATED section for other situations.
 
If not, then please view the RELATED section for other situations.
 +
 +
The deletion of files in ext3/4 filesystems can not be easily reversed.
  
 
=== File Manager ===
 
=== File Manager ===
 
The file manager, example N=emo or PCManFM, has the equivalent to a rubbish bin or recovery directory
 
The file manager, example N=emo or PCManFM, has the equivalent to a rubbish bin or recovery directory
 +
* Open Nemo (file manager) click on Trash in left column and see if it's in there.
  
 
Files or directories deleted other ways, such as by software like qBittorrent bypass the rubbish bin or equivalent.
 
Files or directories deleted other ways, such as by software like qBittorrent bypass the rubbish bin or equivalent.
Line 20: Line 23:
 
=== extundelete ===
 
=== extundelete ===
 
This flaming turd can not undelete or otherwise recover a file or directory on a mounted partition.  Since basic default Ubuntu or Mint installations done by ordinary users tend to have the root and home partition along with most everything else on the same partition, it can not be unmounted while the system is booted unless you boot to independent boot media or other partition.
 
This flaming turd can not undelete or otherwise recover a file or directory on a mounted partition.  Since basic default Ubuntu or Mint installations done by ordinary users tend to have the root and home partition along with most everything else on the same partition, it can not be unmounted while the system is booted unless you boot to independent boot media or other partition.
 +
 +
=== ext4magic ===
 +
This utility takes advantage of the filesystem journal of ext4.  it is often possible, to restore sufficient information for a recover of many data files,  directly  from  the filesystem Journal. ext4magic can extract the information from
 +
the Journal,  and  can  restore  files  in  entire  directory  trees,  provided  that  the information  in the Journal are sufficient. This tool can recover the most file types, can
 +
recover large and sparse files, recovered files with orginal filename,  with  the  orginal owner an group, the orginal file mode bits, and also the old atime/mtime stamp.
 +
  
  

Revision as of 11:06, 27 July 2023

If all of the following conditions applies to your situation then this is the correct resource:

  1. You deleted a file or directory by accident or otherwise and you wish to have it back again.
  2. You wish it to be a simple process that can be accomplished without rebooting or using other boot media. You are looking for something as straightforward as the Windows Recycling Bin, except on linux.
  3. You are running Ubuntu, Mint, or equivalent.

If not, then please view the RELATED section for other situations.

The deletion of files in ext3/4 filesystems can not be easily reversed.

File Manager

The file manager, example N=emo or PCManFM, has the equivalent to a rubbish bin or recovery directory

  • Open Nemo (file manager) click on Trash in left column and see if it's in there.

Files or directories deleted other ways, such as by software like qBittorrent bypass the rubbish bin or equivalent.

testdisk

This utility is useless for file recovery despite all the air headed guides that appear in an Internet search. The limitation is in the file systems that testdisk supports for file recovery. For example on a contemporary Mint Linux installation with default install options the file system type is not supported for undelete file recovery.

Use the following command

blkid

If you see that you are using TYPE="ext4" then forget about testdisk recovering your deleted file or directory.

extundelete

This flaming turd can not undelete or otherwise recover a file or directory on a mounted partition. Since basic default Ubuntu or Mint installations done by ordinary users tend to have the root and home partition along with most everything else on the same partition, it can not be unmounted while the system is booted unless you boot to independent boot media or other partition.

ext4magic

This utility takes advantage of the filesystem journal of ext4. it is often possible, to restore sufficient information for a recover of many data files, directly from the filesystem Journal. ext4magic can extract the information from the Journal, and can restore files in entire directory trees, provided that the information in the Journal are sufficient. This tool can recover the most file types, can recover large and sparse files, recovered files with orginal filename, with the orginal owner an group, the orginal file mode bits, and also the old atime/mtime stamp.


Related