Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am trying to recover one file, whose name I know, that I accidentally deleted using rm. I am using foremost and specifying the file extension (zip):

sudo foremost -w -t zip -i /dev/sdc1 -o /recoverydir

where /dev/sdc1 is the filesystem where the file is located (which I have already unmounted) and recoverydir is the directory where I am saving recovered files to. With the command above the option -w only gives an audit but does not recover anything.

The problem is that there are way too many files that match the criteria and I would like to narrow it down to the file's exact name or even the approximate size, which I know.

How can this be done with foremost or another tool?

share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.