Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 23 Apr 2014, 17:16
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
Syntax ntsfclone --rescue
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [6 Posts]  
Author Message
RoyHitchman

Joined: 24 Feb 2013
Posts: 2

PostPosted: Sun 24 Feb 2013, 17:47    Post subject:  Syntax ntsfclone --rescue
Subject description: Trying to clone a partition with known bad sectors
 

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?
Back to top
View user's profile Send private message 
Barkin


Joined: 12 Aug 2011
Posts: 604

PostPosted: Sun 24 Feb 2013, 18:26    Post subject:  

Maybe try "testdisk" to rescue your data ... http://www.murga-linux.com/puppy/viewtopic.php?p=680336#680336
Back to top
View user's profile Send private message 
Peterm321

Joined: 29 Jan 2009
Posts: 209

PostPosted: Sun 24 Feb 2013, 23:05    Post subject:  

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:
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
Back to top
View user's profile Send private message 
RoyHitchman

Joined: 24 Feb 2013
Posts: 2

PostPosted: Mon 25 Feb 2013, 11:06    Post subject:  

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.
Back to top
View user's profile Send private message 
Barkin


Joined: 12 Aug 2011
Posts: 604

PostPosted: Mon 25 Feb 2013, 13:08    Post subject:  

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
Back to top
View user's profile Send private message 
Peterm321

Joined: 29 Jan 2009
Posts: 209

PostPosted: Tue 26 Feb 2013, 02:02    Post subject:  

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:
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/troubleshooting-a-failing-hitachi-hard-drive and see if that has any useful information.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [6 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0510s ][ Queries: 12 (0.0039s) ][ GZIP on ]