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
Photorec to recover files in an ext4 directory identified with its inode nr
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
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
- 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
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.