Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

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.