This can cause problems recovering disks 1TB or larger. More detailed recovery procedures are available from the web.Īnother method is using a variant named dd rescue.ĭd_rescue has few options and recovers to an image file. Ddrescue has taken as long as 4 days to run on a failing 1TB disk. This can make recovery considerably longer. However it is possible for ddrescue to do many read retries in hopes of recovering more data. The basic procedure is.ĭdrescue is designed for recovery and the defaults can be used. Suppose /dev/sda is the source disk for this example. Note the serial numbers, they will tell you which drive is which. The new disk will be unpartitioned, the source disk will probably have partitions and fdisk will show these. In order to determine which is the source disk, you can use smartmontools.Īnother way to determine drive serial numbers is with hdparm.Īnother useful way to check is to use ' fdisk -l'. Once booted " fdisk -l" should show the two drives, perhaps /dev/sda and /dev/sdb. Reversing the order will zero out your critical source disk and the array will be lost. Getting the drive order correct is critical. The procedure is to record the drives serial numbers (you need to know which drive is the source and which the copy), connect both drives to the Linux host then boot from SystemRescueCD. The SystemRescueCD can be downloaded from:Īs of the iso is version 1.3.1 and is 238 MB in size. SystemRescueCd is a Linux system rescue disk available as a bootable CD-ROM or USB stick for administrating or repairing your system and includes all the needed tools. Now some Linux distributions include ddrescue, but it is suggested to download and use SystemRescueCD. Since the DDF pointer is in the very last block of the disk, it's critical that disk copied to be the exact same size and geometry as the bad block disk, which means you must use the same drive make and model. This is not guaranteed to recover all data as some blocks will not be readable, but there is a potential that the bad blocks were not yet used for file storage. The basic process is to copy all readable blocks to another disk and using the copied disk to be rebuild the array. In this case, one possible solution is to use Linux ddrescue. In some cases a critical drive may have excessive bad blocks, causing a rebuild to appear hang. Often when one drive in an array fails, other drives in the array may also develop problems since all drives in the array are subject to the exact same wear and environment. Using ddrescue to recover a RAID disk with many bad blocks
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |