• Welcome to Peterborough Linux User Group (Canada) Forum.
 

Testdisk file recovery program not working

Started by ssfc72, October 20, 2019, 04:18:42 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ssfc72

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?
Mint 20.3 on a Dell 14" Inspiron notebook, HP Pavilion X360, 11" k120ca notebook (Linux Lubuntu), Dell 13" XPS notebook computer (MXLinux)
Cellphone Samsung A50, Koodo pre paid service

fox

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 24.10 on 2019 5k iMac
Ubuntu 24.04 on Dell XPS 13

ssfc72

Testdisk shows the existing files in the directory, so I don't think there is any problem with ext4.
Mint 20.3 on a Dell 14" Inspiron notebook, HP Pavilion X360, 11" k120ca notebook (Linux Lubuntu), Dell 13" XPS notebook computer (MXLinux)
Cellphone Samsung A50, Koodo pre paid service

Jason

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.
* Zorin OS 17.1 Core and Windows 11 Pro on a Dell Precision 3630 Tower with an
i5-8600 3.1 GHz 6-core processor, dual 22" displays, 16 GB of RAM, 512 GB Nvme and a Geforce 1060 6 GB card
* Motorola Edge (2022) phone with Android 13

Jason

Did you ever figure this one, Bill? I'm curious.
* Zorin OS 17.1 Core and Windows 11 Pro on a Dell Precision 3630 Tower with an
i5-8600 3.1 GHz 6-core processor, dual 22" displays, 16 GB of RAM, 512 GB Nvme and a Geforce 1060 6 GB card
* Motorola Edge (2022) phone with Android 13

ssfc72

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 20.3 on a Dell 14" Inspiron notebook, HP Pavilion X360, 11" k120ca notebook (Linux Lubuntu), Dell 13" XPS notebook computer (MXLinux)
Cellphone Samsung A50, Koodo pre paid service

Jason

* Zorin OS 17.1 Core and Windows 11 Pro on a Dell Precision 3630 Tower with an
i5-8600 3.1 GHz 6-core processor, dual 22" displays, 16 GB of RAM, 512 GB Nvme and a Geforce 1060 6 GB card
* Motorola Edge (2022) phone with Android 13