Data recovery and disk repair questions and discussions related to old-fashioned SATA, SAS, SCSI, IDE, MFM hard drives - any type of storage device that has moving parts
June 24th, 2011, 1:58
what do you guys think about the following attempt?sdb is the defective drive that uses to fail completly until reboot (and sda is ntfs backupdrive to save the image file on)
only when the first ddrescue command line is completed succesfull then the second will run also (it does not need to be "if > 980G" or so because when the drive already said goodbye until reboot then the ddrescue lines both just end with 100% errorthis_runs_on_start_up.sh- Code:
mount -t ntfs-3g /dev/sda1/ /mnt/
ddrescue --retrim --try-again --no-split /dev/sdb /mnt/IMG /mnt/LOG
ddrescue --retrim --try-again /dev/sdb /mnt/IMG /mnt/LOG
shutdown -r now
------
.... differnt questions - but also im wondering would the following possibly work?
(not makeing much sense right now but wondering if this would work without issues)
ddrescue_in_parts.sh- Code:
ddrescue --max-size=500G --no-split --preallocate /dev/sdb /mnt/PART1 /mnt/LOG1
ddrescue --input-position=500G --max-size=500G --no-split --preallocate /dev/sdb /mnt/PART2 /mnt/LOG2
cat PART1 PART2 > /mnt/IMG
cat LOG1 LOG2 > /mnt/LOG
ddrescue --retrim --try-again /dev/sdb /mnt/IMG /mnt/LOG
June 24th, 2011, 2:17
*ddrescue_in_parts.sh - the example of course assumes that the total drive size is 1000G but besides that would it work to merge the image PARTs if they are complete or with preallocated space and also to merge the LOGs ?? (logs look mergeable to me)
Powered by phpBB © phpBB Group.