LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 10-10-2005, 09:01 PM   #1
barefootdoctor
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, 04:10 PM   #2
free_ouyo
Member
 
Registered: Mar 2004
Location: Belgium
Distribution: Ubuntu
Posts: 133

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

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


Reply


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 4 02-22-2014 04:54 PM
My shell return message always print chaos code backpacker Linux - Newbie 1 06-24-2005 08:05 AM
Wine failed with return code 137 whishkah Linux - Software 2 06-13-2005 04:46 AM
return value from shell script to c code? khucinx Programming 1 05-13-2004 04:43 PM
Return code from main() using gcc Meatwad Programming 13 01-27-2004 07:36 PM


All times are GMT -5. The time now is 01:23 PM.

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