Page 1 of 1

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

Posted: 29 Jan 2020, 18:24
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

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

Posted: 30 Jan 2020, 07:25
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.