Hello,
I've seen the following strange behavior of dd on an Slackware 7.0 installation. I
tried to restore a tar off of an amanda (http://www.amanda.org) tape. In order to do
this you have to strip the first 32k block containing some amanda information. This is
usually done with:
dd bs=32k if=/dev/nst0 skip=1 | gzip -dc | tar -xf -
The above does not work on this slackware 7 installation (it has worked on an older
RedHat 4 distribution), it seems to ignore the skip parameter at all.
A workaround is:
dd bs=32k if=/dev/nst0 | dd skip=64 | gzip -dc | tar xf
If InFile is a file on local harddisk, skip will work fine too.
I recompiled fileutils-4.0 and fileutils-3.13 (same version as on the mentioned RedHat
4 installation), but I get the same results.
--
Diese Mail kommt von http://freemail.allesklar.de
Der kostenlose Service von http://www.allesklar.de