LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-21-2013, 09:35 AM   #1
raven4d
Member
 
Registered: Feb 2006
Location: Mars
Posts: 124

Rep: Reputation: 15
ddrescue , -i and -o flags should be together ?


hello all .

i have a 1 tera hdd with bad blocks .

trying to image what ever i can from the drive before it totally dies using ddrescue as following :

ddrescue /dev/sda1 /dev/sdb1 -f -n -i 15G /mnt/windows/log

the problem i am facing is that the bad blocks are located from the 2nd giga of the drive until the 14th giga .

after i got the image i imaged the first 2 gigas as they have the mbr and some of the MFTs hoping that i will get my files back in the order they had before the problem .

my question is , should i use -o 15G as well when i use -i 15G ? so that the input file follows the output one when i want to jump for some space ?

i am asking because i have problems when doing raw recovery on the image , and no certain folder are being recovered and only by file extension .


thank you
 
Old 01-21-2013, 10:41 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,390
Blog Entries: 55

Rep: Reputation: 3563Reputation: 3563Reputation: 3563Reputation: 3563Reputation: 3563Reputation: 3563Reputation: 3563Reputation: 3563Reputation: 3563Reputation: 3563Reputation: 3563
Quote:
Originally Posted by raven4d View Post
should i use -o 15G as well when i use -i 15G ? so that the input file follows the output one when i want to jump for some space ?
'man ddrescue' says about "--output-position=bytes" that it "Starting position in outfile, in bytes. Defaults to --input-position.", implying that if you already use "--input-position" you shouldn't need "--output-position" (most of the time you will want your input and output to be the same, right)?

*BTW it's your call to skip Gigabytes worth of data but unless you are certain the disk is going to give out RSN or it actually has that much bad blocks I'd always do an initial run with "--max-retries=1"...


Quote:
Originally Posted by raven4d View Post
i am asking because i have problems when doing raw recovery on the image , and no certain folder are being recovered and only by file extension .
Modern disks are supposed to find bad blocks themselves, mark them bad and reallocate writes to good blocks. If bad blocks manifested themselves during volume access then data, MFT and backup MFT may have been written incompletely already but being unable to recover (backup) MFT may similarly cause or expose corrupted or missing meta data...


*BTW[1] please update your nfo: your distro still reads "Fedora COre 6", TIA.
 
Old 01-21-2013, 11:06 AM   #3
raven4d
Member
 
Registered: Feb 2006
Location: Mars
Posts: 124

Original Poster
Rep: Reputation: 15
thank you for your notice about -i and -o flags .
head 0 is damaged due to customer openned the drive lid and running the drive in open air to see what's wrong with it !!!!, so data lose is a must unless the customer willing to pay for a heads swap.

modern HDDs should remap the bad blocks to G-list automatically until certain amount.
the drive i am working at has developed way more bad sectors and blocks than the drive ECC can handle .


been long time i wrote something on the forum , didn't notice that i am using a B&W linux distro

thank you
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
a half or so ddrescue image raven4d Linux - Software 5 08-31-2012 02:32 PM
ddrescue? serialportme Linux - Newbie 1 07-12-2012 12:50 AM
Backup of disk using ddrescue vijay_babu1981 Linux - Newbie 7 05-31-2012 04:07 PM
ddrescue help on RAID5 DarkFlame Linux - Server 2 11-15-2009 11:50 AM
ddrescue and moving files help PiZZLE Linux - Software 9 03-13-2007 08:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration