Re: Narrowing down problem source
Hi,
Richard Owlett wrote:
> Block count: 1941504
> ...
> 1941504+0 records in
> 1941504+0 records out
This is ok.
> Block count: 2284052
> ...
> 1941504+0 records in
> 1941504+0 records out
This is not ok.
The variable "block" was computed correctly, but program "dd"
did not retrieve enough blocks.
(I wonder whether it's a bug or a feature that it does not
report an error. At least this behavior is reproducible.)
It seems that the system does not tell "dd" the block count of
the new DVD but the count of the previous one.
What do you get from this command
echo "Device block count: $(expr $(cat /sys/class/block/sr0/size) / 4)"
inserted in the script after the line
echo "Byte count: $(expr $blocks '*' 2048)"
(The /sys filesystem is an inexhaustible source of wonders.)
Have a nice day :)
Thomas
Reply to: