Syntax ntsfclone --rescue

Booting, installing, newbie
Post Reply
Message
Author
RoyHitchman
Posts: 2
Joined: Sun 24 Feb 2013, 21:32

Syntax ntsfclone --rescue

#1 Post by RoyHitchman »

I am a bit of a newbie who is obviously getting the syntax for this command wrong because when I run the command the terminal just closes.

FIrstly I am trying to run the command using the run command option in the Pup Control panel. I have also selected run in a terminal in the hope it would give a clue regarding whether it is running or not.

The syntax I have been using is:

ntsfclone --rescue /dev/sda3 /dev/sdb1/sda3clone

where: /dev/sda3 is the partition with the bad sectors that I want to clone
/dev /sdb1 is an external usb drive
and /sda3clone is a folder on the external usb drive.

sda3 is unmounted when I run the command, sdb1 is mounted.

I have no idea what the right way to go about this is, is there a better way to run the command instead of in Pup control? You can probably tell that I have no idea what I am doing.

Can anyone help?

User avatar
Barkin
Posts: 803
Joined: Fri 12 Aug 2011, 04:55

#2 Post by Barkin »


Peterm321
Posts: 411
Joined: Thu 29 Jan 2009, 14:09
Location: UK

#3 Post by Peterm321 »

It would be helpful to advise for what purpose you are hoping ntfsclone will solve.

As per Barkin's post if you want to rescue data you can try testdisk. I am at this point assuming you are attempting to make a backup of your NTFS partition? If so the command you posted appears misconstrued.

The --rescue
command argument is not a complete command in itself, it is part of a backup or restore operation.

If you are hoping to backup with ignore read errors an ntfs partition, you can specify an output file (image file containing the backup). If saving an image file to sdb1, /dev/sdb1 should be mounted. If /dev/sdb1 is mounted on, say, /mnt/sdb1 and the folder /mnt/sdb1/sda3clone exists then the command, as far I can interpret your post correctly, would be something like:

Code: Select all

ntfsclone --save-image -o /mnt/sdb1/sda3clone/ntfs.img  --rescue /dev/sda3 
Particularly if unfamiliar with a command line program, in my view it is better to open a full command line shell window rather than running from a menu entry. You can see the errors the program reports more easily and you can ask the program for help eg

ntfsclone --help


http://linux.die.net/man/8/ntfsclone

RoyHitchman
Posts: 2
Joined: Sun 24 Feb 2013, 21:32

#4 Post by RoyHitchman »

Peterm321 thanks for the syntax, it worked perfectly. ntfsclone noted 110 bad sectors with data loss. I am not sure what to do now, chdsk is out of the question since windows will not boot and the windows repair thing just tells me that it can't repair windows because of the bad sectors.

I could maybe try ntfsresize (I think there is a badsectors option), then reinstalling windows and then trying reload the data from the backup.

Not sure what testdisk does Barkin. Is it a command or a utility that I have to get from somewhere? I will take a look at your link.

Absolutely any advice would be appreciated.

User avatar
Barkin
Posts: 803
Joined: Fri 12 Aug 2011, 04:55

#5 Post by Barkin »

RoyHitchman wrote:Not sure what testdisk does Barkin. Is it a command or a utility that I have to get from somewhere?
wikipedia.org wrote:TestDisk is a free data recovery utility. It is primarily designed to help recover lost data storage partitions and/or make non-booting disks bootable again when these symptoms are caused by faulty software, certain types of viruses or human error (such as accidentally erasing a partition table) ...
http://en.wikipedia.org/wiki/Testdisk

You have to install the testdisk program into puppy

You can get a copy of testdisk for puppy from here ... http://www.datafilehost.com/download-0b574d4b.html

Full details for Puppy users here ... http://puppylinux.org/wikka/testdisk

Peterm321
Posts: 411
Joined: Thu 29 Jan 2009, 14:09
Location: UK

#6 Post by Peterm321 »

RoyHitchman PostPosted: Yesterday, at 11:06 wrote: Absolutely any advice would be appreciated.
Any further advice frome me would be rather limited, I'm afraid, as I have little experience of fixing bad NTFS partitions, or data recovery from NTFS. I once did mess with a windows Windows system and had to restore the partition but then again I had backups of the important data so it meant it was a matter of a restore rather than data recovery.

It appears (NB never tried myself) that you can use ntfs-3g to try and mount a NTFS image created by ntfsclone, http://tuxera.com/forum/viewtopic.php?f=3&t=29108
which includes this statement:

Code: Select all

You can still mount the file by calling ntfs-3g directly :

ntfs-3g test.img /mnt/ntfs
Which might be an option if you should decide to re-install and then copy back as much of the lost files from the old partition and/or rescued image as you can. My advice if re-installing to have 2 copies of the old partition as a precaution.

You could also take a look at http://superuser.com/questions/372710/t ... hard-drive and see if that has any useful information.

Post Reply