I issued the following dd(1) command in 15.0-BETA1 and it failed:
Yet when I piped stdin to it instead, it succeeded:
The man page mentions that dd first appeared in AT&T UNIX. So I tried it on my SVR4 system and it succeeded:
Similarly, it works in Fedora Linux:
That doesn't make sense to me. Any thoughts?
Code:
# dd if=/dev/cd0 bs=1 count=1352306688 | sha512sum
dd: /dev/cd0: Invalid argument
Yet when I piped stdin to it instead, it succeeded:
Code:
# cat /dev/cd0 | dd bs=1 count=1352306688 | sha512sum
1352306688+0 records in
1352306688+0 records out
df9142b24c50535e27ecd463e1ccd120ab5a8ccd54f7cecb067f24b7cea4ab222eee45c91e735c1b8f1a0484c239734d5ce377671ff50924dd76e9fc83245c82 -
1352306688 bytes transferred in 5590.785396 secs (241881 bytes/sec)
The man page mentions that dd first appeared in AT&T UNIX. So I tried it on my SVR4 system and it succeeded:
Code:
# uname -a
manapua manapua 4.0 4 i386 386/AT
# dd if=/dev/cdrom/cd0 bs=1 count=32768 | sum
32768+0 records in
32768+0 records out
0 64
Similarly, it works in Fedora Linux:
Code:
$ sudo dd if=/dev/cdrom bs=1 count=1352306688 | sha512sum
1352306688+0 records in
1352306688+0 records out
1352306688 bytes (1.4 GB, 1.3 GiB) copied, 4346.49 s, 311 kB/s
df9142b24c50535e27ecd463e1ccd120ab5a8ccd54f7cecb067f24b7cea4ab222eee45c91e735c1b8f1a0484c239734d5ce377671ff50924dd76e9fc83245c82 -
That doesn't make sense to me. Any thoughts?