LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   dd return code (http://www.linuxquestions.org/questions/linux-general-1/dd-return-code-371706/)

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
 
Hello,

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.
--
free_ouyo

barefootdoctor 10-13-2005 12:54 PM

For some reason it works now
 
Hi
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.
bfd


All times are GMT -5. The time now is 09:45 AM.