LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-16-2016, 06:12 AM   #16
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 16,604

Rep: Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604

dd if=something you want to read from something
dd of=something means you want to write onto something
if you omit if, stdin will be used instead
if you omit of, stdout will be used instead
see man dd
 
Old 11-16-2016, 06:24 AM   #17
DimTheo
LQ Newbie
 
Registered: Nov 2016
Posts: 20

Original Poster
Rep: Reputation: Disabled
ok i tried several tapes all give me the same error about space
i do rewind them first
then this

read: Not enough space
0+0 records in
0+0 records out
 
Old 11-16-2016, 06:28 AM   #18
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 16,604

Rep: Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604
did you write anything on those tapes?
does it work really locally?
probably you have a disk full somewhere...
 
Old 11-16-2016, 06:44 AM   #19
DimTheo
LQ Newbie
 
Registered: Nov 2016
Posts: 20

Original Poster
Rep: Reputation: Disabled
all tapes have data - verified from log files
i can not test locally due to limited hd space , thats why i am doing this via ssh to extract data on another computer's disk which has a lot of free space
640G 175G 433G 29% /orastage
 
Old 11-16-2016, 06:55 AM   #20
DimTheo
LQ Newbie
 
Registered: Nov 2016
Posts: 20

Original Poster
Rep: Reputation: Disabled
for example , i have this tape inserted in the tape drive now

there is data , this is the log file

tar cvf - *20161006* | ssh root@192.168.1.2 dd of=/dev/rmt/1
obs=126b

421289640+0 records in
3343568+1 records out

real 609m23.025s
user 102m56.737s
sys 11m12.550s


i try to dd if , i get the same errors like before

ssh root@agrotica dd if=/dev/rmt/1 obs=126b | tar xvf -
Password:
read: Not enough space
0+0 records in
0+0 records out
tar: This does not look like a tar archive
tar: Error exit delayed from previous errors


the path where i am telling it to extract the file has 433gb free space

Last edited by DimTheo; 11-16-2016 at 07:24 AM.
 
Old 11-16-2016, 07:32 AM   #21
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 16,604

Rep: Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604
probably there is no space (enough) on the remote host (agrotica) somewhere
 
Old 11-16-2016, 07:35 AM   #22
DimTheo
LQ Newbie
 
Registered: Nov 2016
Posts: 20

Original Poster
Rep: Reputation: Disabled
agrotica is where the tape drive is mounted to . Does it matter if that machine has limited space left ? I Why should it matter though ? i just want to copy data off the tape via ssh to another host
 
Old 11-16-2016, 09:01 AM   #23
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 4,555

Rep: Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088
Your dd command is trying to read the tape at the wrong block size. Instead of "obs=126b" use "bs=126b".
 
1 members found this post helpful.
Old 11-16-2016, 09:44 AM   #24
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 16,604

Rep: Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604
oh yes, forgotten to say. i means input, o means output, so dd if= ibs= and dd of= obs= belong together.
 
1 members found this post helpful.
Old 11-16-2016, 09:47 AM   #25
DimTheo
LQ Newbie
 
Registered: Nov 2016
Posts: 20

Original Poster
Rep: Reputation: Disabled
ok i will try ssh root@192.168.1.2 dd if=/dev/rmt/1 bs=126b | tar xvf - in a few and i will report back
 
Old 11-16-2016, 11:39 AM   #26
DimTheo
LQ Newbie
 
Registered: Nov 2016
Posts: 20

Original Poster
Rep: Reputation: Disabled
bs=126b did the trick , seems to be working ok so far

thanks
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is Tar file to tape drive faster than dir/files to tape drive? Runge_Kutta Linux - General 2 03-11-2009 07:13 AM
tape contents view Ammad Linux - General 1 09-23-2008 07:57 AM
view the content of tape binuveranal Linux - Server 1 02-26-2008 11:18 PM
how to view content of tape angelfire Linux - Hardware 5 07-22-2006 04:21 AM
How can konqueror view html files in .gz & .bz2 files directly? ailinzhe Linux - Software 5 05-24-2004 08:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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
Open Source Consulting | Domain Registration