• porblem with

    From cholsonic@googlemail.com@21:1/5 to Jianlin Chang on Fri Jun 30 05:06:03 2017
    On Wednesday, May 31, 1995 at 8:00:00 AM UTC+1, Jianlin Chang wrote:
    It's pretty strange that
    rsh ...|dd of=... ibs=2b obs=2b
    works.

    Any suggestion?




    I know this post is over 20 years old but it sure helped me; we are still wrestling with tape backups of an AIX 4.5 system. We had the following command to backup our data to tape,

    tar -cvf- * | dd of=/dev/rmt2 bs=512k

    However, we also wanted backup to a file so was trying,

    tar -cvf- * | tee /backup/data.tar | dd of=$tapedrv bs=512k

    But was getting same error mentioned here.

    Guided by this post that mentioned using ibs and obs to specify the block size, I tried,

    tar -cvf- * | tee /backup/data.tar | dd of=$tapedrv obs=512k (not knowing the input blocksize),

    and it worked!!

    My guess is that tee changed the blocksize of the stdout to the pipe, and that dd was expecting 512k. By allowing dd to only specify the output blocksize made this work.

    Thanks

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)