LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
Go Back   LinuxQuestions.org > Forums > Linux > 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
 
Thread Tools
Old 11-02-2009, 08:35 PM   #1
none98763
LQ Newbie
 
Registered: Nov 2009
Posts: 1
Thanked: 0
tar & tape problem


[Log in to get rid of this advertisement]
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?
linuxsuse none98763 is offline     Reply With Quote
Old 11-04-2009, 03:16 PM   #2
HaroldWho
Member
 
Registered: Nov 2006
Location: southeastern PA
Distribution: Slackware
Posts: 54
Thanked: 1
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?
linux HaroldWho is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
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
a tough question 4 u, problem in extracting tar & tar.gz files p_garg Linux - General 4 04-04-2006 02:46 PM
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 02:23 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration