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.shCode:
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.shCode:
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