linux - dd imaging a failing disk which drops connection -
i trying perform image on hard disk failing. issue encountering causes program fail disk routinely drop during image process , when re-recognised system under different address (/dev/sdb /dev/sde).
i have tried imaging each partition independently on 500gb disk strugging past 100gb session before disk drop (i think head going clicks).
my question is, if using dd there way image disk, breaking down 50gb parts can whole disk on number of images , consolodate.
or better still, there way force disk re-identify on previous location?
i have found little information on topic insight useful.
thanks.
when device lost, stream lost, too. cannot recover if gets same device name assigned. might want employ udev rules same name convenience.
in dd, can use 4 useful parameters:
- bs=bytes size of "block"
- skip=n number of blocks skip in input
- seek=n number of blocks skip in output
- count=n number of blocks copied (we don't need here)
also, dd has the, albeit bit hidden, feature of providing progress reports. can either use "status=progress" or send signal process. latter more complicated allows define frequency of progress reports. example, can in terminal:
for ((;;)); sleep 1; kill -usr1 `pidof -s dd`; done putting of together, can use bs=4m reasonable blocksize. can run aforementioned command in secondary terminal, start dd, with
dd bs=4m seek=0 skip=0 if=/dev/… of=… after fails first time, use last block number copied dd parameters seek , skip. can bit conservative here (decrease number bit) ensure don't "holes" in output.
repeat until whole disk done. luck!
Comments
Post a Comment