Re: dd (coreutils 6.10)

2008-09-13 Thread Jon Grant

Hello,
Sorry for late response.

Andreas Schwab wrote on 04/07/08 17:05:

Jon Grant [EMAIL PROTECTED] writes:


that's interesting, as the error log made it look like it was dd that
was looping.


Which error log?


Unfortunately I do not have it. Ubuntu crashed when I inserted the USB 
stick (the Abit board has done it with other distros too).


So I hope you can take my word for it that for each sector it had 
difficultly reading, the log reapeated the read error 40 times. The 
drive was sent back after I recovered what I could, so I couldn't 
generate the log.  I used dd twice on the drive, and the logs both times 
repeated each sector 40 times before moving on to the next one.


Looked something like follows, this is just a mock up:


dd: (warning): /dev/sdb2 (60078127.5k): Input/output error!
dd: (info): ipos:  60078128.0k, opos:  60078128.0k, xferd:  60078128.0k
*  errs:  51336, errxfer: 25668.0k, succxfer: 
60052460.0k
 +curr.rate:0kB/s, avg.rate:  141kB/s, 
avg.load:  0.3%

dd: (warning): /dev/sdb2 (60078127.5k): Input/output error!

dd: (info): ipos:  60078128.0k, opos:  60078128.0k, xferd:  60078128.0k
*  errs:  51336, errxfer: 25668.0k, succxfer: 
60052460.0k
 +curr.rate:0kB/s, avg.rate:  141kB/s, 
avg.load:  0.3%



{2 repeats, continues like this for another 38 times}

Kind regards, Jon


___
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils


Re: dd (coreutils 6.10)

2008-07-04 Thread Jon Grant

Hi, thanks for the quick reply.

Andreas Schwab wrote on 29/06/08 11:59:

Jon Grant [EMAIL PROTECTED] writes:


I noticed that dd tries the to read the same 512-byte block 40 times
before giving up. Could it not give up on each block after say.. 1 or 2
tries?


dd just tells the kernel to read the block, and immediately gives up on
it when the kernel returns an error.  Any repetition is controlled by
the device driver in the kernel.


that's interesting, as the error log made it look like it was dd that
was looping. I'm using dd_rescue now, and that gives up after a single
read, not sure if it is accessing the block device in a different way if
its the kernel that is controlling the repetition.

Any ideas why the dd error log showed it repeating the read of each 
sector 40 times (there were aprox 4 lines per read, with input/output 
error and then retry etc)


Kind regards, Jon


___
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils


Re: dd (coreutils 6.10)

2008-07-04 Thread Andreas Schwab
Jon Grant [EMAIL PROTECTED] writes:

 that's interesting, as the error log made it look like it was dd that
 was looping.

Which error log?

Andreas.

-- 
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.


___
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils


Re: dd (coreutils 6.10)

2008-06-29 Thread Pádraig Brady
Jon Grant wrote:
 Hi,
 
 I am running dd from coreutils 6.10 on the latest Knoppix disc, trying
 to copy a failing drive to a new drive so i can try mount the partition.
 
 I noticed that dd tries the to read the same 512-byte block 40 times
 before giving up.

In addition if dd can't read the block at all it will not
write anything to the output, and so your partitions will
be even more messed up.

ddrescue may be better sorted to your needs.

Pádraig.


___
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils


Re: dd (coreutils 6.10)

2008-06-29 Thread Andreas Schwab
Jon Grant [EMAIL PROTECTED] writes:

 I noticed that dd tries the to read the same 512-byte block 40 times
 before giving up. Could it not give up on each block after say.. 1 or 2
 tries?

dd just tells the kernel to read the block, and immediately gives up on
it when the kernel returns an error.  Any repetition is controlled by
the device driver in the kernel.

Andreas.

-- 
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.


___
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils


Re: dd (coreutils 6.10)

2008-06-29 Thread Jon Grant

Hi,

Pádraig Brady wrote on 29/06/08 11:35:

Jon Grant wrote:

Hi,

I am running dd from coreutils 6.10 on the latest Knoppix disc, trying
to copy a failing drive to a new drive so i can try mount the partition.

I noticed that dd tries the to read the same 512-byte block 40 times
before giving up.


In addition if dd can't read the block at all it will not
write anything to the output, and so your partitions will
be even more messed up.


ah, I did not realise that, thanks for highlighting that.


ddrescue may be better sorted to your needs.


Thanks for the tip. Just had a look at it.

I found dd_rescue last night, have been using that, with the -A option 
so it writes zeroed blocks if it can't read a block. If this doesn't 
work I will try copying with ddrescue as you suggest.


Kind regards, Jon


___
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils


dd (coreutils 6.10)

2008-06-28 Thread Jon Grant

Hi,

I am running dd from coreutils 6.10 on the latest Knoppix disc, trying
to copy a failing drive to a new drive so i can try mount the partition.

I noticed that dd tries the to read the same 512-byte block 40 times
before giving up. Could it not give up on each block after say.. 1 or 2 
tries?


I am running with this command line so it just saves zero if it can't 
get the block:


dd if=/dev/hda of=/dev/hdb bs=512 conv=noerror

Attached is a log of a section of it running which illustrates the problem.

I would be happy to implement the feature if it is not presently
implemented.  Perhaps an additional iflag=FLAGS  ? (I could not find the
current documentation of them in the man or info pages BTW)

Kind regards, Jon


___
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils