dd errors with certain DVDs
Tony Nelson
tonynelson at georgeanelson.com
Tue Mar 27 22:10:17 UTC 2007
At 10:38 PM +0100 3/27/07, Paul Smith wrote:
>On 3/27/07, Tony Nelson <tonynelson at georgeanelson.com> 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.
>> >
>> >The above does not work; the error is:
>> >
>> >$ dvdok backups.iso
>> >dd: invalid number `1.25073e+06'
>> >
>> >$
>> >
>> >Paul
>>
>> dd if=/dev/dvd bs=2048 count=$(isosize -d 2048 /dev/dvd) | sha1sum
>
>Thanks, Tony. That works perfectly!
You're welcome. I learned about isosize from another Paul, Paul Howarth.
My command is spiffier than his, though.
<http://www.city-fan.org/tips/IsoImageFromMedia>
--
____________________________________________________________________
TonyN.:' <mailto:tonynelson at georgeanelson.com>
' <http://www.georgeanelson.com/>
More information about the fedora-list
mailing list