-   Linux - General (
-   -   dd return code (

barefootdoctor 10-10-2005 08:01 PM

dd return code
Issued the command:
dd if=/dev/nst0 bs=64K | /usr/bin/gunzip -c | dd of=/dev/raw/933610-0b43 bs=64K

got the following return code:

+++ RC=4 +++

The tape drive was online and ready. I am new to this but I don't see anything wrong with the command.

free_ouyo 10-12-2005 03:10 PM

dd return code

I don't know about the return code of you problem but with some backup tools or tape drives, the system or the user create a tape header located on tape first file and the full backup is located as second file on the tape.
Maybe you just have to skip one file.

A other issue with tape drives is the blocksize used to write/read the tape.
I would try the same command with bs=32k and if don't work, increase the bs.

barefootdoctor 10-13-2005 12:54 PM

For some reason it works now
Thanks for your suggestions. I tried it again playing with the bs option changing it to obs etc and it now works, even the original command works. I must of some how not set up the tape drive correctly with the mt command is my guess.

All times are GMT -5. The time now is 03:56 PM.