Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


ntfsclone anyone?

Posted on 2009-12-16
Medium Priority
Last Modified: 2012-06-21

I need a command line for ntfs clone which will allow me to --rescue a partition on a hard drive (/dev/sda1) either to another partition on the same hard drive (/dev/sda3) or to an external hard drive (/dev/sdb1)

If it makes more sense then I will recover the data in --save-image form to either of the above two destinations.

My trouble is that I've been unable to craft a command line which will do the job.

ntfsclone --rescue
ERROR: you must specify an output file

ntfsclone --rescue -o image.img
ERROR: You  must specify a device file

ntfsclone --rescue sda1 sda3
ERROR: if FILE is "-" then send the image to the standard output. If SOURCE is "-" and --restore-image is used then read the image from the standard port.

Obviously, if I knew what I was doing then I wouldn't need to ask for help, but, seeing as I don't I'm really hioping there's someone out there who knows what the magic code is :-)

Thanks in anticipation
Question by:just_russell
  • 5
  • 3
LVL 17

Expert Comment

ID: 26066061
Do this:
ntfsclone --rescue --force --save-image -o /sda3/ntfsclone.img /dev/sda1

Copies sda1 to sda3/ntfsclone.img

To restore, you'll need to do this:
ntfsclone --restore-image -O /dev/sda1 /sda3/ntfsclone.img

It will restore what ntfsclone.img contains over sda1.

That's all

Author Comment

ID: 26067169

When I run

ntfsclone --rescue --force --save-image -o /sda3/ntfsclone.img /dev/sda1

I get the message:

ERROR (2): Opening file '/sda3/ntfsclone.img' failed: No such file or directory.

I tried using a different file name (clone.img) in case it thought the file name was too long, same result

Your thoughts?

LVL 17

Expert Comment

ID: 26067892
Do you have /sd3 ?
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 26070144

I have sda1, sda2 and sda3 all of which are the same size (essentially 320G partitions (298.08GB on the drive)). There is a further 37.24 GB of unallocated space on this 1TB drive.

I tried the command line with sda2 instead of sda3 as the destination but the result was the same

Both sda3 and sda1 contain images of the original drive. There's 15GB of actual data on the original drive, the remainder is unused.

In Gparted both sda1 and  sda3 have warning triangles alongside the partition name reflecting the presence of 'bad sectors'.

I have a 230GB external USB drive which contains the original image that I took from the original 320G drive. If you think it would help I can reformat the 1TB drive and perform the ntfsclone between the external drive and the 1TB drive but I don't see how any of these actions would alter the fact that the command line isn't being accepted...

I also have a spare new 1TB drive that I can use

I hope you can help.

LVL 17

Accepted Solution

CSecurity earned 2000 total points
ID: 26070432
I know you have sda1 sda2 etc. I mean, sda1's address is /sda1 ?? Or something like /mnt/sda1

Check EXACTLY ALL parameters once again

Author Comment

ID: 26070574

The application is now running with the following command line:

ntfsclone --rescue --force --save-image -O /dev/sda3/ /dev/sda1

As you can see, I had to do a bit of tweaking . I'll let you know how I get on but for now, thanks for providing a solution


Author Closing Comment

ID: 31666754
With the support of this solution provider I have been able to achieve my objective. The final solution is shown in my comment following this accepted solution.

Author Comment

ID: 26078602
The command ran as did the restore. Unfortunately the recovered data retained all the bad sector... Ah Well

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Windows Server 2003 introduced persistent Volume Shadow Copies and made 2003 a must-do upgrade.  Since then, it's been a must-implement feature for all servers doing any kind of file sharing.
Backups and Disaster RecoveryIn this post, we’ll look at strategies for backups and disaster recovery.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

572 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question