![]() Larger block sizes will copy more quickly, but each time an error is encountered the remainder of the block is ignored. As dd copies data with the conv=noerror,sync option, any errors it encounters will result in the remainder of the block being replaced with zero-bytes. This will do the job, but one must consider the block size. ![]() # dd if=/dev/hda1 of=/dev/hdb1 bs=4k conv=noerror,sync dd is run to copy the source partition to the target partition, ignoring errors:.On a new hard drive, a target partition (assume it is /dev/hdb1) is created with the same size as the failing partition.The typical recovery plan with the dd command is something like this: (Attempts to repair the filesystem in-place will almost certainly fail, and further unnecessary disk activity carries the risk of further damage to the drive.) At this point the priority is to extract what data can be recovered from the partition to a working hard drive, where the filesystem may be repaired. Often the result will be a mostly-working system, but one which generates error messages periodically as bad sectors of the failing drive are touched. ![]() For instance, assume /dev/hda1 is failing.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |