LinuxQuestions.org
Review your favorite Linux distribution.
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 10-19-2006, 02:43 AM   #1
mayankh
Registered User
 
Registered: Jul 2006
Posts: 18

Rep: Reputation: 0
how to umark EOF status on scsci tape


Hi all,

as I have ultarium 200x400 LTO tape, that was with some backup taken already.

I have to append new backup on same tape , and by mistake I have set EOF at start of tape and now I am not able to list the backuped contents are already on tape, I think I have lost data.

Plz suggest what to do to remove EOF status from LTO tape.
 
Old 10-20-2006, 02:14 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
I think that you can use the mt command to skip over the EOF mark. You would have to address the tape drive through the nonrewinding interface in /dev. For example, if your tape drive is addressed as /dev/st0 then there should also be another file named /dev/nst0. The first one will rewind the tape automatically after you perform a tape operation. The second one will leave the tape wherever it stops when you perform a tape operation.

So in summary you use the mt utility. The mt utility takes the fsf command to skip forward a certain number of files. You address the tape drive using the nonrewinding interface in /dev so that the tape will remain at the place that it stops when the mt fsf command is finished.
Code:
mt -f /dev/nst0 fsf 1
Then you can run your backup software as you normally would.

As far as removing the EOF I suppose you could record a meaningless value into that space on the tape. It might be a bit tricky. I don't know the exact length of the tape marks or what value would be good to write there. If you wanted to write one byte with the value zero you could do this.
Code:
dd if=/dev/zero of=/dev/st0 bs=1 count=1
I don't know if that would work or not. It might make things worse.

Last edited by stress_junkie; 10-20-2006 at 02:21 PM.
 
  


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
Installing RedHat 8.0 onto Dell PowerEdge SC1425 - hdc: status error: status = 0x58 fishsponge Linux - General 0 07-11-2006 09:02 AM
Eof tostay2003 Programming 4 07-05-2006 10:11 AM
Using a DDS5 tape drive to restore from a DDS3 backup tape. AndrewCAtWayofthebit Linux - Hardware 1 05-14-2006 09:15 AM
Umark (Benchmarking on UT program) problem Deltabweb Linux - Games 0 07-10-2005 11:31 PM
<< Eof ? sikandar Linux - Software 5 09-18-2003 11:39 AM

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

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