MultiDrive – free backup, clone & wipe disk utility from Atola Technology

All times are UTC - 5 hours [ DST ]


Switch to mobile style


Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: ddrescue attempt for drive that fails completly until reboot
PostPosted: June 24th, 2011, 1:58 
Offline

Joined: June 9th, 2011, 1:03
Posts: 9
Location: germany
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% error

this_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


Top
 Profile  
 
 Post subject: Re: ddrescue attempt for drive that fails completly until reboot
PostPosted: June 24th, 2011, 2:17 
Offline

Joined: June 9th, 2011, 1:03
Posts: 9
Location: germany
*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)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 53 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group