Photorec to recover files in an ext4 directory identified with its inode nr

Using PhotoRec to recover lost data
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
fepeacock
Posts: 1
Joined: 29 Jan 2020, 18:15

Photorec to recover files in an ext4 directory identified with its inode nr

#1 Post by fepeacock »

Hello,

I would like to recover deleted files from a directory on an ext4 file system. I would like to avoid the full scan of the partition and only recover from the existing directory.

I have been advised to issue the following command: "photorec /cmd device ext2_inode,inode_nr,search" where the device is the block device of the partition and inode_nr is the inode of the directory.

I have tried this with a number of directories and sub-directories (as well as different partitions) but it seems to recover files from other locations or none at all.

Am I using this correctly? Could anyone please help?

Thanks,

Frank

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

Re: Photorec to recover files in an ext4 directory identified with its inode nr

#2 Post by cgrenier »

PhotoRec will recover files from the group holding the specified inode. Different inodes may have the same group. A group may contains data from several directories/files.

Locked