Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 10-10-2005, 08:01 PM   #1
LQ Newbie
Registered: Oct 2005
Posts: 2

Rep: Reputation: 0
Question 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.
Old 10-12-2005, 03:10 PM   #2
Registered: Mar 2004
Location: Belgium
Distribution: Ubuntu
Posts: 133

Rep: Reputation: 15
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.
Old 10-13-2005, 12:54 PM   #3
LQ Newbie
Registered: Oct 2005
Posts: 2

Original Poster
Rep: Reputation: 0
Smile 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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Nagios - Return code of 127 for check of service sriramsreedhar Linux - General 5 11-14-2016 02:32 PM
My shell return message always print chaos code backpacker Linux - Newbie 1 06-24-2005 07:05 AM
Wine failed with return code 137 whishkah Linux - Software 2 06-13-2005 03:46 AM
return value from shell script to c code? khucinx Programming 1 05-13-2004 03:43 PM
Return code from main() using gcc Meatwad Programming 13 01-27-2004 06:36 PM > Forums > Linux Forums > Linux - General

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration