On Wed, 21 May 2008, Carlos E. R. wrote:-
The Wednesday 2008-05-21 at 15:00 +0100, David Bolt wrote:
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.
Yes. Should have mentioned that.
Then I prefer bs=2K count=2298496
That's another way.
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.
I was trying to think of another way to get the size but, as I don't know another way as yet, I just went with what I know.
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.
If you pipe the file into it, rather than passing it as a name, you don't need to remove the second word: davjam@adder:/local> ls -l test.image.blank -rw-r--r-- 1 davjam users 4707319808 2008-05-21 14:52 test.image.blank davjam@adder:/local> wc -c <test.image.blank 4707319808 Regards, David Bolt -- Team Acorn: http://www.distributed.net/ OGR-P2 @ ~100Mnodes RC5-72 @ ~15Mkeys SUSE 10.1 32bit | openSUSE 10.2 32bit | openSUSE 10.3 32bit | openSUSE 11.0b3 SUSE 10.1 64bit | openSUSE 10.2 64bit | openSUSE 10.3 64bit RISC OS 3.6 | TOS 4.02 | openSUSE 10.3 PPC | RISC OS 3.11 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org