How to undelete file ext4 linux ubuntu

Using TestDisk to undelete files
Forum rules
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read https://www.cgsecurity.org/testdisk.pdf
Locked
Message
Author
Arnix
Posts: 2
Joined: 05 May 2016, 10:56

How to undelete file ext4 linux ubuntu

#1 Post by Arnix »

Hi.

For some unknown reason i lost one folder named "FamilyPic".
It can be that my kid pressed and deleted this folder but anyhow, am in big problem because bunch of family pictures can be lost.
Btw. trash is empty too.

I tryid to make undelete with TestDisk but there is no undelete option. If this is because of ext4 ?
If so, please write down step by step, what should i do to recover my files.

----------------------------------------------------------------------------------
Filesystem Type 1K-blocks Used Available Use% Mounted on
/dev/sda1 ext4 305653992 139587080 150517472 49% /
udev devtmpfs 886872 4 886868 1% /dev
tmpfs tmpfs 179472 3200 176272 2% /run
none tmpfs 5120 0 5120 0% /run/lock
none tmpfs 897356 89296 808060 10% /run/shm
---------------------------------------------------------------------------------
THANK YOU IN ADVANCE FOR YOUR HELP !

User avatar
cgrenier
Site Admin
Posts: 5432
Joined: 18 Feb 2012, 15:08
Location: Le Perreux Sur Marne, France
Contact:

Re: How to undelete file ext4 linux ubuntu

#2 Post by cgrenier »

Yes, because of ext4, there is no undelete in TestDisk.
But you can use PhotoRec to recover your files. Be carefull to store the recovered files on another partition than the source.

Arnix
Posts: 2
Joined: 05 May 2016, 10:56

Re: How to undelete file ext4 linux ubuntu

#3 Post by Arnix »

Be carefull to store the recovered files on another partition than the source.
** I try with photorec but am not sure how to complete task. E.g. i came to part where i have to select partition but how should i select it...

Please select a destination to save the recovered files.
Do not choose to write the files to the same partition they were stored on.
Keys: Arrow keys to select another directory
C when the destination is correct
Q to quit
------------------------------
Now i get listed my whole home folder ( /home/myLap ) but i can not select any other partition.
Should i plug some USB stick and select /home/myLap/media/ ) to save the recovered files ?
Sorry for dumb question...

A.

Locked