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.

trying to undelete some files using ntfsundelete:

sudo ntfsundelete /dev/sda1 -v -S 300m-20g -p 100 -o /mnt/bigboy/ntfsundelete/

but I am getting:

You must specify exactly one device.

as far as I can see, I am specifying the device I want to restore files from, and the location of the files.

What am I getting wrong?

share|improve this question
    
Take a look at this, http://unix.stackexchange.com/a/40953/14349 I would have commented but I don't have the privilege level. –  Garrett Fogerlie Jun 19 '12 at 5:28
add comment

1 Answer

up vote 1 down vote accepted

It seems like the syntax needs to be ntfsundelete [options] device. So your example should look like this:

sudo ntfsundelete -v -S 300m-20g -p 100 -o /mnt/bigboy/ntfsundelete/ /dev/sda1

This worked for me, although I didn't specify the output -o. I just let it dump the data to the directory I was currently in.

share|improve this answer
add comment

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.