dd errors with certain DVDs

Paul Smith phhs80 at gmail.com
Tue Mar 27 09:49:12 UTC 2007


On 3/27/07, Cameron Simpson <cs at zip.com.au> wrote:
> | | Your script is buggy (and needlessly complex). It can round the block
> | | count down by one.  Try this:
> | |   blocos=$(ls -l "$1" | awk '{ print ($5+2047) / 2048 }')
> |
> | My script is buggy too. Make it say this:
> |   blocos=$(ls -l "$1" | awk '{ print int(($5+2047) / 2048) + 1 }')
>
> Gah. My brain was off! The first version is correct:
>
>   blocos=$(ls -l "$1" | awk '{ print ($5+2047) / 2048 }')
>
> See sig.

Thanks, Cameron. I will try it later to check whether it works fine,
and then I will let you know about the result.

Paul




More information about the fedora-list mailing list