LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
LinkBack Search this Thread
Old 11-02-2009, 08:35 PM   #1
none98763
LQ Newbie
 
Registered: Nov 2009
Posts: 1

Rep: Reputation: 0
tar & tape problem


I have scsi LTO3 tape attached / OpenSUSE 11.1

what happens:

linux:~ # dd if=/dev/zero of=dummy_file bs=1M count=5
5+0 records in
5+0 records out
5242880 bytes (5.2 MB) copied, 0.132575 s, 39.5 MB/s

linux:~ # mt -f /dev/nst0 tell
At block 0.
linux:~ # tar cvzf /dev/nst0 dummy_file
dummy_file
linux:~ # mt rewind
linux:~ # mt tell
At block 0.

linux:~ # tar tvzf /dev/nst0

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors
linux:~ #

But...
linux:~ # tar cvzf - dummy_file | cat > /dev/nst0
dummy_file
linux:~ # mt tell
At block 3.
linux:~ # mt rewind
linux:~ # tar tvzf /dev/nst0
-rw-r--r-- root/root 5242880 2009-11-03 02:29 dummy_file
linux:~ #

So, if I put it trough pipe it is working, otherwise not.
Anybody seen something like this?
 
Old 11-04-2009, 03:16 PM   #2
HaroldWho
Member
 
Registered: Nov 2006
Location: southeastern PA
Distribution: Slackware
Posts: 86

Rep: Reputation: 20
I think that 'tar' creates the archive first, and then gzips it. It is thus unable to gzip the archive created on the tape.

What happens if you try 'tar tvf /dev/nst0' to read that tape you made?
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
a tough question 4 u, problem in extracting tar & tar.gz files p_garg Linux - General 5 11-08-2010 12:02 PM
Problem with tar piping through openssl to tape kaplan71 Linux - Software 2 11-23-2008 12:06 PM
Problem: tar Backup to Remote Tape Drive HaroldWho Linux - Software 8 07-30-2008 01:05 PM
BackUp & Restore with TAR (.tar / .tar.gz / .tar.bz2 / tar.Z) asgarcymed Linux - General 5 12-31-2006 03:53 AM
Problem with dd and tar to tape hastur Linux - Software 0 10-22-2004 08:38 AM


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

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