Author Topic: Testdisk file recovery program not working  (Read 800 times)

Offline ssfc72

  • Posting Member
  • Hero Member
  • *
  • Posts: 1014
  • Karma: +0/-0
    • View Profile
Testdisk file recovery program not working
« on: October 20, 2019, 04:18:42 am »
I seem to be unable to get the above program to recover deleted files.  Testdisk is a command line program and I got it through using Synaptic.
As a test, I deleted a couple of files on 2 different notebook computers and in each case I could not get Testdisk to find the deleted files.
I have followed a tutorial that I found on the internet but when I start up the Testdisk program and navigate to the directory where the deleted files where, Testdisk does not show any deleted files (the files should be highlighted in red).
On the one notebook computer I am running as a user with Admin privledges.  Testdisk also asks for the sudo password when I select the Create a log file, which I provide and it continues on.
I have also used Sudo in starting up the Testdisk program and I still can't get Testdisk to find the test files that I deleted.

Anyone have an idea what I am doing wrong?
« Last Edit: October 20, 2019, 04:25:44 am by ssfc72 »
Mint 18.3 on an HP Pavilion X360, 11" k120ca notebook
Tried Mint 19, but too many bugs. Went back to Mint 18.3
Cellphone ZTE Axon 7 Mini, PCMobile pay as you go

Offline fox

  • Posting Member
  • Hero Member
  • *
  • Posts: 1198
  • Karma: +3/-0
    • View Profile
Re: Testdisk file recovery program not working
« Reply #1 on: October 20, 2019, 08:21:05 am »
I just looked up Testdisk in wiki and it states there in the File Recovery section what types of file formats it can recover. Those listed are only FAT, NTFS, exFAT and ext2; not ext4. Might that be the problem?
Ubuntu 19.10 and openSUSE Leap on 2011 iMac
Linux Mint Cinnamon 19.2 on "late 2015" 5k iMac
Ubuntu 19.10 and 18.04 on Dell XPS 13 2 in 1

Offline ssfc72

  • Posting Member
  • Hero Member
  • *
  • Posts: 1014
  • Karma: +0/-0
    • View Profile
Re: Testdisk file recovery program not working
« Reply #2 on: October 20, 2019, 09:48:26 am »
Testdisk shows the existing files in the directory, so I don't think there is any problem with ext4.
Mint 18.3 on an HP Pavilion X360, 11" k120ca notebook
Tried Mint 19, but too many bugs. Went back to Mint 18.3
Cellphone ZTE Axon 7 Mini, PCMobile pay as you go

Offline Jason Wallwork

  • Administrator
  • Hero Member
  • *****
  • Posts: 2089
  • Karma: +5/-0
    • View Profile
Re: Testdisk file recovery program not working
« Reply #3 on: October 20, 2019, 01:55:06 pm »
Ext3 and Ext4 are basically just Ext2 with journalling. You can use an ext2 filesystem driver to read ext3/4.
The journalling is the add-on that means when your computer crashes or you don't shut it down properly you can recover quickly without having to do the dreaded fsck which looks remarkably like the word you used to say when it happened to you. Recent file writes are journaled so that if the worst happens, it can use the journal to recover the file which would have otherwise been corrupted.
Primary: Dell Desktop i5 - 3.2 GHz w/ Kubuntu 19.04 / Win 10 Pro
Secondary/Test:  Toshiba i3 - 1.4 GHz w/ Peppermint 10
Sony Xperia XA1 Ultra ( Android 8 ) on Freedom
Huawei MediaPad T3 10 ( Android 7 ) on Virgin

Offline Jason Wallwork

  • Administrator
  • Hero Member
  • *****
  • Posts: 2089
  • Karma: +5/-0
    • View Profile
Re: Testdisk file recovery program not working
« Reply #4 on: October 27, 2019, 12:22:34 am »
Did you ever figure this one, Bill? I'm curious.
Primary: Dell Desktop i5 - 3.2 GHz w/ Kubuntu 19.04 / Win 10 Pro
Secondary/Test:  Toshiba i3 - 1.4 GHz w/ Peppermint 10
Sony Xperia XA1 Ultra ( Android 8 ) on Freedom
Huawei MediaPad T3 10 ( Android 7 ) on Virgin

Offline ssfc72

  • Posting Member
  • Hero Member
  • *
  • Posts: 1014
  • Karma: +0/-0
    • View Profile
Re: Testdisk file recovery program not working
« Reply #5 on: October 27, 2019, 01:18:28 am »
No, I was not able to get TestDisk to work for me, at recovering a deleted file. I did  tests on 2 different notebook computers, on deleting a file, but was not able to get TestDisk to find the file.
At the next PLUG Mug I go to maybe we can look into this problem?
Mint 18.3 on an HP Pavilion X360, 11" k120ca notebook
Tried Mint 19, but too many bugs. Went back to Mint 18.3
Cellphone ZTE Axon 7 Mini, PCMobile pay as you go

Offline Jason Wallwork

  • Administrator
  • Hero Member
  • *****
  • Posts: 2089
  • Karma: +5/-0
    • View Profile
Re: Testdisk file recovery program not working
« Reply #6 on: October 27, 2019, 03:42:21 am »
That sounds like a good idea.
Primary: Dell Desktop i5 - 3.2 GHz w/ Kubuntu 19.04 / Win 10 Pro
Secondary/Test:  Toshiba i3 - 1.4 GHz w/ Peppermint 10
Sony Xperia XA1 Ultra ( Android 8 ) on Freedom
Huawei MediaPad T3 10 ( Android 7 ) on Virgin