FAQ SearchLogin
Tuxera Home
View unanswered posts | View active topics It is currently Wed May 12, 2021 01:22



Post new topic Reply to topic  [ 2 posts ] 
ntfsclone restore rescue partition with bad sectors 
Author Message

Joined: Fri May 24, 2013 19:46
Posts: 1
Post ntfsclone restore rescue partition with bad sectors
I did a rescue save-image of a partition with bad sectors. When I try to restore, I get an error about the partition having bad sectors and the restore fails. Is that because of the bad sectors on the saved partition or the restore partition? I thought a reformat would flag the bad sectors. Also, can I restore to a clean image and mount that via loop device and resize that image?


Fri May 24, 2013 19:54
Profile
NTFS-3G Lead Developer

Joined: Tue Sep 04, 2007 17:22
Posts: 1286
Post Re: ntfsclone restore rescue partition with bad sectors
Hi,

Quote:
I did a rescue save-image of a partition with bad sectors. When I try to restore, I get an error about the partition having bad sectors and the restore fails.

Are you restoring to the same partition ?
What is the error when restoring fails ?
Are you not restoring to a partition with more bad sectors than those which were recorded while saving ?
Quote:
Is that because of the bad sectors on the saved partition or the restore partition? I thought a reformat would flag the bad sectors.

When saving a partition, the list of sectors marked as bad is taken into account : these sectors are not saved, and the list is restored to the target partition. So when restoring to the original partition, you need not mark them again.

Note : AFAIK, only chkdsk (and possibly the Windows formatter) marks sectors as bad. When restoring a partition you replace all existing metadata, including the bad sector list, by the saved ones.
Quote:
Also, can I restore to a clean image and mount that via loop device and resize that image?

Yes. However, before resizing you have to delete the bad sector list from the restored image, use ntfsfix with option --clear-bad-sectors. The needed utilities (ntfsclone, ntfsfix, ntfsresize) work on unmounted file images. If you want to restore to a bigger partition you can do that on the target partition with no temporary file image.

Note : when bad sectors are seen on a disk, it is best to replace the disk.

Regards

Jean-Pierre

Regards

Jean-Pierre


Sat May 25, 2013 09:41
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 


Who is online

Users browsing this forum: No registered users and 2 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Original forum style by Vjacheslav Trushkin.