Author Topic: Using Linux to Recover Deleted Files  (Read 1117 times)

0 Members and 1 Guest are viewing this topic.

Online bostonmanTopic starter

  • Super Contributor
  • ***
  • Posts: 1795
  • Country: us
Using Linux to Recover Deleted Files
« on: June 09, 2021, 03:19:28 am »
I have an old Windows formatted hard drive (files only, no OS) with many deleted files, and I want to restore them to find a few long lost files by connecting it via a USB to IDE cable.

I know that if I've written to the hard drive since deleting them that the deleted files are most likely deleted forever.

In any case, a quick search on the Internet and I found a few Linux commands that I could use, but I was wondering if anyone had any particular one they find most effective.

 

Offline BradC

  • Super Contributor
  • ***
  • Posts: 2106
  • Country: au
Re: Using Linux to Recover Deleted Files
« Reply #1 on: June 09, 2021, 03:35:59 am »
It depends greatly on what the filesystem is.
I've had great results in the past with testdisk and photorec.
 

Online bostonmanTopic starter

  • Super Contributor
  • ***
  • Posts: 1795
  • Country: us
Re: Using Linux to Recover Deleted Files
« Reply #2 on: June 09, 2021, 01:44:50 pm »
I thought stating it was an old Windows formatted hard drive was adequate.

Would an XP formatted hard drive be a FAT32? If so, that is the file system.

I have a Windows program that searches for deleted files, but it seems Linux has better tools for stuff like this.
 

Offline coromonadalix

  • Super Contributor
  • ***
  • Posts: 5906
  • Country: ca
Re: Using Linux to Recover Deleted Files
« Reply #3 on: June 09, 2021, 02:29:17 pm »
You have many  Windows PE  (Usb bootable)  recovery sytems  with tons of tools

Hiren's BootCD
Gandalf Pe ...   
Strelec ...

The most important thing is not to write anything on the drive needed to be recovered,  you use an external computer, and recovery software


https://www.makeuseof.com/tag/5-best-rescue-disks-windows-system-restore/
 

Offline rdl

  • Super Contributor
  • ***
  • Posts: 3667
  • Country: us
Re: Using Linux to Recover Deleted Files
« Reply #4 on: June 09, 2021, 02:54:59 pm »
If it is an XP disk then probably it uses NTFS. If you have it in a Windows machine the easiest way to tell is right click on the drive in Windows Explorer and choose "Properties". The file system will be shown there. For undeleting files I have always used Recuva, but it's Windows only.
 

Offline magic

  • Super Contributor
  • ***
  • Posts: 6779
  • Country: pl
Re: Using Linux to Recover Deleted Files
« Reply #5 on: June 09, 2021, 03:01:07 pm »
For NTFS there is ntfsundelete in the ntfs-3g package. It works and it perfectly undeletes every file which has not been overwritten yet (either data or metadata).

Given my vague recollection of how FAT32 works, I'm not entirely sure if the same is even possible there at all.

There are "file carving" programs like photorec which simply scan the whole disk sector by sector and look for something that resembles a JPG file, MP3, DOC or anything. You can forget about recovering the original file name, location in the directory tree, etc.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf