LinuxQuestions.org
Visit Jeremy's Blog.
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
  Search this Thread
Old 02-05-2003, 12:15 PM   #1
RHrulz
Member
 
Registered: Jul 2002
Location: Troy, KS
Distribution: Mandrake 10.1
Posts: 57

Rep: Reputation: 15
Tar error


I just installed a Seagate Hornet 40 IDE tape drive. Installed RH8. Everything works fine, but...
I can tar to the tape (tar cvf /dev/st0 *) drive /dev/st0, but I get error when I try to read what I just tarred to it (tar tvf /dev/st0).

tar: /dev/st0: Cannot read: Input/output error
tar: At beginning of tape, quitting now
tar: Error is not recoverable: exiting now

Any idea of what would cause this?
 
Old 02-05-2003, 11:20 PM   #2
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,849

Rep: Reputation: 553Reputation: 553Reputation: 553Reputation: 553Reputation: 553Reputation: 553
Re: Tar error

Quote:
Originally posted by RHrulz

I can tar to the tape (tar cvf /dev/st0 *) drive /dev/st0, but I get error when I try to read what I just tarred to it (tar tvf /dev/st0).

tar: /dev/st0: Cannot read: Input/output error
tar: At beginning of tape, quitting now
tar: Error is not recoverable: exiting now

This is an IDE tape masquerading as SCSI? Well, if that's the case...

It's probably not really a tar error. It sounds like you haven't initialized the tape drive. You should take a look at the manpage for ``stinit''. You'll need to come up with a config file to pass to it. I've been using one that I cannibalized from the stinit manpage and substituted in the name/strings that my tape drive produced when probed at boot time.

Make a small script that runs stinit that you can run from within rc.local at boot time. And don't boot the system with a tape loaded. YMMV, but on my system (and some others at work) the system hangs when it attempts to initialize the drive if a tape is loaded. I wound up adding code to my tape init script to go looking for a tape being online and ejecting it before running stinit. Better than having to hit the reset button to unlatch the system.

Hope this helps,

Rick
 
  


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
how can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 14 10-25-2016 02:48 AM
getting error during "tar -xvzf filename.tar.gz" b0nd Linux - Newbie 11 04-23-2005 08:50 PM
Tar gives error when creating a tar file archive davidas Linux - Newbie 10 04-13-2004 12:35 AM
Error while installing package.tar.tar isone Linux - Software 2 11-03-2003 11:58 AM
problem unzipping a tar.bz2 file tar: Error is not recov jyome Linux - Software 4 09-04-2003 01:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:59 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