-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Wednesday 2008-05-21 at 15:00 +0100, David Bolt wrote:
On Wed, 21 May 2008, Carlos E. R. wrote:-
bs=1024k count=4489 ?
For a DVD-R the size is 2,298,496 sectors, or 4,707,319,808 bytes, which you can get from using:
bs=256k count=17957
The sector being...? ah, 2 KiB. Then I prefer bs=2K count=2298496 (note that for dd KB is not equal to kB, they don't use the new notation (KB/KiB))
A DVD+R is slightly smaller at 2,295,104 sectors, or 4,700,372,992 bytes, and you can get that from using:
bs=128k count=35861
bs=2K count=2295104 :-)
<snip>
time nice cmp --bytes=4700000000 /dev/hdc $1
You do know this will miss any errors that may occur in the last 365KiB to 7MiB, don't you? If you use:
time nice cmp --bytes=$(wc -c <$1) /dev/hdc $1
I wrote that as quick hack, because my DVDs are exactly 4700000000 bytes. I didn't know the exact sizes you mentioned above.
it'll compare the exact size and show up any errors that the script might miss at present.
Yep, thanks, I simply haven't bothered to modify it yet :-) You use wordcount (wc) to count bytes! Funny. It is strictly correct and according to the manual, but I hadn't thought of that. ... cer@nimrodel:~> wc -c /Grande/imgs/crypta_f2_dvd.mm.x 4700000000 /Grande/imgs/crypta_f2_dvd.mm.x I'd better remove the second word. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFINDKBtTMYHG2NR9URAuW6AJ9w6A9gJhdmXK1Kemwbufjb4jl53wCdEVa/ cnICmNfRM7DuaXj5CzVz21U= =Qe1H -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org