Andrew Palumbo | 17 Sep 2010 06:12
Picon
Favicon

-T option ddrescue v1.8

Hello,
 I am wondering if there is another option in ddrescue v1.8 similar to the -T (--try-again) available in ddrescue v1.13?  I have run into a problem straight out of the manual (v1.13) where my 750GB drive failed 8GB into the rescue using the -n option on the first pass, however ddrescue continued to write the logfile straight through to the end as errors.

I've restarted the computer, and now running with the -n option finishes without instantatniously.  Running with the -r3 option sees everything as errors, and is running very slowly.  The drive is also peroidically failing,(dissapearing from /dev), so I'd like to be able to ignore the previous error marks for the sectors in the logfile, and resum copying with the -n option on restart.

From the V1.13 manual:

Example 7: While rescuing the whole drive /dev/hda to /dev/hdb, /dev/hda stops responding and disappears from /dev. ddrescue -f -n /dev/hda /dev/hdb logfile <-- /dev/hda fails here (restart /dev/hda or reboot computer as many times as needed) ddrescue -f -n -T /dev/hda /dev/hdb logfile ddrescue -d -f -r3 /dev/hda /dev/hdb logfile


I am running v1.8 because I'm using a FC11 live USB stick and installed it via the fedora yum repository.
This i cant compile v1.13 because there is no gcc compiler in this env.

Is it possible to manually edit the logfile.

As well, if i do have to upgrade to v1.13, can i use the same logfile, and keep my current output?

Thank you,

Andy

_______________________________________________
Bug-ddrescue mailing list
Bug-ddrescue@...
http://lists.gnu.org/mailman/listinfo/bug-ddrescue
Oliver Raileanu | 19 Sep 2010 02:40
Picon

ddrescue overwrote partition

I had a problem with a SD Card and I decided to use the ddrescue to
solve it but everything went worse instead. I booted from a Live USB
Ubuntu distribution and run the following command:
[code]drescue /dev/sdcard /dev/sda[/code]
My mistake was that sda was the HDD where the windows partition was
installed and ddrescue overwrote the hole disk. Is there a way to
recover the content of the HDD in this case?
andrew zajac | 19 Sep 2010 02:48
Picon
Favicon

Re: ddrescue overwrote partition

Hi Oliver.

No, there isn't.  But how big was the SD card?  No more than that was written to the Sda drive.   Was it sda or sda(some number)?


--- On Sat, 9/18/10, Oliver Raileanu <orailean-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

From: Oliver Raileanu <orailean-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Subject: [Bug-ddrescue] ddrescue overwrote partition
To: bug-ddrescue <at> gnu.org
Received: Saturday, September 18, 2010, 8:40 PM

I had a problem with a SD Card and I decided to use the ddrescue to
solve it but everything went worse instead. I booted from a Live USB
Ubuntu distribution and run the following command:
[code]drescue /dev/sdcard /dev/sda[/code]
My mistake was that sda was the HDD where the windows partition was
installed and ddrescue overwrote the hole disk. Is there a way to
recover the content of the HDD in this case?

_______________________________________________
Bug-ddrescue mailing list
Bug-ddrescue-mXXj517/zsQ@public.gmane.org
http://lists.gnu.org/mailman/listinfo/bug-ddrescue

_______________________________________________
Bug-ddrescue mailing list
Bug-ddrescue@...
http://lists.gnu.org/mailman/listinfo/bug-ddrescue
venkateswara reddy | 20 Sep 2010 10:02
Picon

Re: ddrescue overwrote partition

Hello

In this case sector by sector copy taken place from the beginning of
the hdd.  Still recovery possibilities are there , if your sd card
size is small.  In this case to recover the rest of the portion of HDD
( NOT OVERWRITTEN AREA ) YOU CAN USE "TESTDISK" or "PHOTOREC"
utilities. Thease are good and free.

Thanks & Regards
B.V.Reddy
VIGNA INSTITUTE

On Sun, Sep 19, 2010 at 6:10 AM, Oliver Raileanu <orailean@...> wrote:
> I had a problem with a SD Card and I decided to use the ddrescue to
> solve it but everything went worse instead. I booted from a Live USB
> Ubuntu distribution and run the following command:
> [code]drescue /dev/sdcard /dev/sda[/code]
> My mistake was that sda was the HDD where the windows partition was
> installed and ddrescue overwrote the hole disk. Is there a way to
> recover the content of the HDD in this case?
>
> _______________________________________________
> Bug-ddrescue mailing list
> Bug-ddrescue@...
> http://lists.gnu.org/mailman/listinfo/bug-ddrescue
>
Antonio Diaz Diaz | 20 Sep 2010 17:44
Picon

Re: -T option ddrescue v1.8

Hello Andrew,

Andrew Palumbo wrote:
>  I am wondering if there is another option in ddrescue v1.8 similar to the -T (--try-again) available in
ddrescue v1.13?  I have run into a problem straight out of the manual (v1.13) where my 750GB drive failed 8GB
into the rescue using the -n option on the first pass, however ddrescue continued to write the logfile
straight through to the end as errors.

I'm afraid not. The --try-again option was added to ddrescue in version 
1.10, and the ability to detect when a a device disappears from /dev was 
added in 1.11.

> Is it possible to manually edit the logfile. 

Yes. See the chapter "Logfile Structure" in the manual. Basically you'll 
have to change all the '*', '/' and '-' to '?'.

> As well, if i do have to upgrade to v1.13, can i use the same logfile, and keep my current output?

 From version 1.8, yes. See the chapter cited above if upgrading from 
versions older than 1.6.

Best regards,
Antonio.
Reon Toerien | 20 Sep 2010 17:46
Picon

Reverse image

Is it possible to do a reverse image starting at the last block and jumping further back when bad blocks are encountered until block zero is reached? In other words everything works in reverse.

If not could it be added as a feature request?
Should help eliminate the read ahead cache on the drive where it reads 16MB ahead in a area that has bad sectors.

--
Kind Regards
Reon Toerien

_______________________________________________
Bug-ddrescue mailing list
Bug-ddrescue@...
http://lists.gnu.org/mailman/listinfo/bug-ddrescue
Antonio Diaz Diaz | 21 Sep 2010 19:12
Picon

Re: Reverse image

Hello Reon,

Reon Toerien wrote:
> Is it possible to do a reverse image starting at the last block and jumping
> further back when bad blocks are encountered until block zero is reached? In
> other words everything works in reverse.

Currently not. When trimming backwards a block, ddrescue marks this 
block for later splitting as soon as the first bad sector is found.

Reading in reverse a sector at a time is very slow (less than 100kB/s. 
One month to read a 250GB disc). This is why ddrescue currently uses it 
only to trim bad blocks.

> If not could it be added as a feature request?

Of course. :-)

> Should help eliminate the read ahead cache on the drive where it reads 16MB
> ahead in a area that has bad sectors.

I guess it won't be simple. Does reading in reverse help if the drive is 
dumb enough that it always tries to read ahead forgetting previous failures?

What pass (copy, split, retry, all) would be more useful to run in reverse?

I am sure the wonderful people in this list will help find the most 
useful behaviour to implement in ddrescue 1.14. Thanks in advance for 
your feedback. :-)

Regards,
Antonio.
Reon Toerien | 21 Sep 2010 19:43
Picon

Re: Reverse image

I'm new to this mailing list thing so if I stuff up in my reply I would like to apologise in advance :D

On 21 September 2010 19:12, Antonio Diaz Diaz <ant_diaz-XX8WhzKwCrQxAGwisGp4zA@public.gmane.org> wrote:
Hello Reon,


Reon Toerien wrote:
Is it possible to do a reverse image starting at the last block and jumping
further back when bad blocks are encountered until block zero is reached? In
other words everything works in reverse.

Currently not. When trimming backwards a block, ddrescue marks this block for later splitting as soon as the first bad sector is found.

Reading in reverse a sector at a time is very slow (less than 100kB/s. One month to read a 250GB disc). This is why ddrescue currently uses it only to trim bad blocks.



If not could it be added as a feature request?

Of course. :-)



Should help eliminate the read ahead cache on the drive where it reads 16MB
ahead in a area that has bad sectors.

I guess it won't be simple. Does reading in reverse help if the drive is dumb enough that it always tries to read ahead forgetting previous failures?
 
The cache is still used but only populated with what has already been read

 

What pass (copy, split, retry, all) would be more useful to run in reverse?

I'll leave that to you and the rest of the clever people over here :)

 

I am sure the wonderful people in this list will help find the most useful behaviour to implement in ddrescue 1.14. Thanks in advance for your feedback. :-)

I'm sure they will. 

 


Regards,
Antonio.



--
Kind Regards
Reon Toerien

_______________________________________________
Bug-ddrescue mailing list
Bug-ddrescue@...
http://lists.gnu.org/mailman/listinfo/bug-ddrescue
Chris Schultz | 29 Sep 2010 03:30
Picon

donations

Do you accept donations directly for ddrescue?  Or is it prefered to donate through FSF?


-chris
_______________________________________________
Bug-ddrescue mailing list
Bug-ddrescue@...
http://lists.gnu.org/mailman/listinfo/bug-ddrescue
Antonio Diaz Diaz | 29 Sep 2010 18:23
Picon

Re: donations

Chris Schultz wrote:
> Do you accept donations directly for ddrescue?  Or is it prefered to donate
> through FSF?

I would be glad to receive some donations directly for ddrescue because, 
if my records are correct, I have only received 9.26 euros (10 - 0.74 
Paypal fee) worth of donations for ddrescue up to date (thanks Andrew). 
This does not even cover the couple drives I have weared out in the six 
years I have been developing ddrescue.

If you wish, you can donate via PayPal here 
https://www.paypal.com/xclick/business=ant_diaz%40teleline.es&no_note=1&tax=0&currency_code=EUR

Best regards,
Antonio.

Gmane