LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 04-16-2012, 08:06 PM   #1
newFreeBSD
Member
 
Registered: Mar 2006
Location: Malaysia, Putrajaya
Distribution: CentOS, Ubuntu, Fedora
Posts: 54

Rep: Reputation: 0
Copy data from tape


Hi,

I having problem copy data from tape. The is Archive Python tape drive. This is what id do:

Step 1
Code:
tar -b 512 -tvf /dev/st0
Got some error:
Code:
tar: /dev/st0: Cannot read: Input/output error
tar: At beginning of the tape, quitting now
tar: Error is not recoverable: exitting now
Step 2
Code:
mt -f /dev/st0 status
Show block size 512 bytes.

dd copy not working. No data copy. Please assist me.

Thanks.
 
Old 04-16-2012, 09:15 PM   #2
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Since you are able to issue the mt command, I assume you have the correct permissions. But just to be sure, try your first command as root.

Overall, this looks an awful lot like a failing tape drive or failing tape.

jlinkels
 
Old 04-16-2012, 09:38 PM   #3
newFreeBSD
Member
 
Registered: Mar 2006
Location: Malaysia, Putrajaya
Distribution: CentOS, Ubuntu, Fedora
Posts: 54

Original Poster
Rep: Reputation: 0
Yes, i did in root permissions. Are you confident tape problem? I think so but i need solid proof to report my manager.
 
Old 04-17-2012, 05:07 AM   #4
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Tape or tape drive. Try another tape, perform a write/read sequence. You could also attempt to run a cleansing tape. ButI can tell you for sure this is not a driver/software problem. The bits on the tape are not appearing correctly on the output of the drive. That is a mechanical or physical failure.

jlinkels
 
Old 04-17-2012, 08:30 PM   #5
newFreeBSD
Member
 
Registered: Mar 2006
Location: Malaysia, Putrajaya
Distribution: CentOS, Ubuntu, Fedora
Posts: 54

Original Poster
Rep: Reputation: 0
This is 4mm tape drive. Last time i read 3590 and 3592, with same pc no problem at all. Some of my friend said this 4mm sometimes complicated. Let me give some example:

1. Tape A cannot be read by tape drive A but it can be read by tape drive B. Either way around.
 
Old 04-17-2012, 10:38 PM   #6
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,783

Rep: Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214
Are you sure the tape was written with a 512-byte block size? Check /var/log/messages for an "Incorrect block size" message. You can find the actual block size by putting the drive in variable block size mode and then trying to read a huge block:
Code:
mt -f /dev/st0 setblk 0
dd if=/dev/st0 of=/dev/null bs=64k count=1
The messages from dd will tell you how much was in that one block. If that is something other than tar's default block size (10240), you'll have to tell tar the correct size ("-b" option) as well as having the drive in the correct mode.
 
Old 04-19-2012, 06:40 AM   #7
gdejonge
Member
 
Registered: Aug 2010
Location: Netherlands
Distribution: Kubuntu, Debian, Suse, Slackware
Posts: 317

Rep: Reputation: 73
Sounds awfully like a miss-alligned head. How long ago was the problem tape written?

1. As jlinkels suggested try a new tape and do a write and read the data back.

2. You are sure the data was written with tar and not cpio or dump?

3. Did you try a cleaning tape?
 
Old 04-19-2012, 07:02 AM   #8
newFreeBSD
Member
 
Registered: Mar 2006
Location: Malaysia, Putrajaya
Distribution: CentOS, Ubuntu, Fedora
Posts: 54

Original Poster
Rep: Reputation: 0
This tape is year 1990. You must be surprised. This data very important.

---------- Post added 04-19-12 at 08:03 PM ----------

Nothing error on /var/log/message
 
Old 04-22-2012, 11:03 PM   #9
gdejonge
Member
 
Registered: Aug 2010
Location: Netherlands
Distribution: Kubuntu, Debian, Suse, Slackware
Posts: 317

Rep: Reputation: 73
Not really surprised. The problem is in the fact that your heads got miss-aligned. This is a commen problem with drives that use a helical scan system. The only option you got is to have a professional company to re-align the heads so they can read the old tapes.
 
  


Reply



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
Looking for tape copy utility/program davinder_jamwal Linux - General 3 12-24-2008 06:17 AM
copy dev/hda7 to the tape kakil Linux - Server 11 01-22-2008 11:39 AM
Copy files to tape helpmhost Linux - General 2 01-23-2007 01:22 PM
Unable to copy onto the tape sachinh Linux - General 5 05-25-2006 02:27 AM
How to copy a VHS tape to hardrive? Blue1K Linux - General 5 02-06-2005 04:47 PM

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

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