Nekochan Net

Official Chat Channel: #nekochan // irc.nekochan.net
It is currently Wed Oct 22, 2014 12:59 am

All times are UTC - 8 hours [ DST ]


Forum rules


Any posts concerning pirated software or offering to buy/sell/trade commercial software are subject to removal.



Post new topic Reply to topic  [ 27 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Tape restore
Unread postPosted: Wed Mar 21, 2012 1:29 am 
Offline
User avatar

Joined: Tue Mar 22, 2005 2:11 am
Posts: 125
Location: Cairo
It's been ages since I did this, but I need to get some old files off tape. Some were backed up via the Irix System Manager, others via tar. Hardware is O2 and HP DAT40.

I get errors like this:

david@scaramanga david$ /usr/freeware/bin/tar --list --file=/dev/tape
/usr/freeware/bin/tar: /dev/tape: Cannot open: No such file or directory

/usr/freeware/bin/tar --list --file=/dev/rmt/tps1d3nr
/usr/freeware/bin/tar: /dev/rmt/tps1d3nr: Cannot read: I/O error
/usr/freeware/bin/tar: At beginning of tape, quitting now
/usr/freeware/bin/tar: Error is not recoverable: exiting now

Via the GUI I get cpio "Errors during read of backup".

I can get the tape to eject from Irix, so hardware is being detected. Tried multiple tapes, all have the same trouble. SCSI seems to be terminated and plugged in. What else to try?


Top
 Profile  
 
 Post subject: Re: Tape restore
Unread postPosted: Wed Mar 21, 2012 2:34 am 
Offline

Joined: Mon Sep 12, 2011 2:28 pm
Posts: 638
Location: Boston
what does 'mt status' or 'mt blksize' say?
have you tried using the sgi tar?

_________________
:PI: :O2: :Indigo2IMP: :Indigo2IMP:


Top
 Profile  
 
 Post subject: Re: Tape restore
Unread postPosted: Wed Mar 21, 2012 4:54 am 
Offline
User avatar

Joined: Tue Mar 22, 2005 2:11 am
Posts: 125
Location: Cairo
Both mt status and blksize say:

/dev/nrtape: No such file or directory in filesystem


Top
 Profile  
 
 Post subject: Re: Tape restore
Unread postPosted: Wed Mar 21, 2012 5:50 am 
Offline

Joined: Sat Nov 12, 2011 4:18 am
Posts: 330
Location: Tokyo
maybe running autoconfig && ioconfig -f /hw will help to ensure your kernel and /hw are up to date with the devices you have installed....

_________________
[click for links to hinv] JP: :Fuel: |:Octane2: |:O2: | :Indy: || PL: [ :Fuel: :O2: :O2+: :Indy: ]


Top
 Profile  
 
 Post subject: Re: Tape restore
Unread postPosted: Wed Mar 21, 2012 7:32 am 
Offline
Moderator
Moderator
User avatar

Joined: Mon Jun 06, 2005 9:53 pm
Posts: 2940
Location: USA
Also keep in mind that, depending on the version of IRIX under which the backups were made, the System Manager backup tool sometimes used programs other than tar, such as cpio or bru. More info at viewtopic.php?p=7290331#p7290331


Top
 Profile  
 
 Post subject: Re: Tape restore
Unread postPosted: Wed Mar 21, 2012 11:21 am 
Offline
User avatar

Joined: Mon Nov 12, 2007 8:54 pm
Posts: 1317
Location: Berkeley, CA, USA, NA, Earth, Sol
Hey now, don't forget about the Backup/Restore Manager wiki page. It includes the table of versions, links into TechPubs, and tips for reading those tapes on non-IRIX systems. If you run across something that isn't there, please feel free to edit the page and add it...

_________________
Then? :IRIS3130: ... Now? :O3x02L: :A3504L:- :A3502L: :1600SW:+MLA :Fuel: :Octane2: :Octane: :Indigo2IMP: ... Other: DEC :BA213: :BA123: Sun, DG AViiON, NeXT :Cube:


Top
 Profile  
 
 Post subject: Re: Tape restore
Unread postPosted: Wed Mar 21, 2012 11:34 am 
Offline
Moderator
Moderator
User avatar

Joined: Mon Jun 06, 2005 9:53 pm
Posts: 2940
Location: USA
smj wrote:
Hey now, don't forget about the Backup/Restore Manager wiki page. It includes the table of versions, links into TechPubs, and tips for reading those tapes on non-IRIX systems. If you run across something that isn't there, please feel free to edit the page and add it...

Sorry about that! You are right - the wiki page is the place to go for info about the IRIX Backup and Restore Manager. Nice job on the page!


Top
 Profile  
 
 Post subject: Re: Tape restore
Unread postPosted: Wed Mar 21, 2012 3:32 pm 
Offline
User avatar

Joined: Mon Nov 12, 2007 8:54 pm
Posts: 1317
Location: Berkeley, CA, USA, NA, Earth, Sol
josehill wrote:
Sorry about that! You are right - the wiki page is the place to go for info about the IRIX Backup and Restore Manager.

Thanks for the kind words. The wiki is (hopefully) a good resource, but certainly not the only one. Please keep sharing links to threads that you have bookmarked, etc - there's often helpful yet tangential information that wouldn't show up in any one wiki page.

And everybody bear in mind, you can create an account and create or edit a page in the wiki yourselves. If you had to spend several hours digging around for a solution, odds are somebody else will be in the same boat one day - consider adding what you learned to an existing page, or create a new one.

_________________
Then? :IRIS3130: ... Now? :O3x02L: :A3504L:- :A3502L: :1600SW:+MLA :Fuel: :Octane2: :Octane: :Indigo2IMP: ... Other: DEC :BA213: :BA123: Sun, DG AViiON, NeXT :Cube:


Top
 Profile  
 
 Post subject: Re: Tape restore
Unread postPosted: Wed Mar 21, 2012 3:34 pm 
Offline
User avatar

Joined: Mon Nov 12, 2007 8:54 pm
Posts: 1317
Location: Berkeley, CA, USA, NA, Earth, Sol
kubatyszko wrote:
maybe running autoconfig && ioconfig -f /hw will help to ensure your kernel and /hw are up to date with the devices you have installed....

That sounds like good advice. Anybody with a DAT drive on an O2 want to share which device special file(s) they use successfully?

If none of this is getting anywhere, do you have another machine you could connect the DAT drive to, to see if it works there?

_________________
Then? :IRIS3130: ... Now? :O3x02L: :A3504L:- :A3502L: :1600SW:+MLA :Fuel: :Octane2: :Octane: :Indigo2IMP: ... Other: DEC :BA213: :BA123: Sun, DG AViiON, NeXT :Cube:


Top
 Profile  
 
 Post subject: Re: Tape restore
Unread postPosted: Wed Mar 21, 2012 3:40 pm 
Offline

Joined: Mon Sep 12, 2011 2:28 pm
Posts: 638
Location: Boston
the MAKEDEV script creates the nrtape etc links to /hw/rmt/ devices when they exist. but there are special ioctls that need to be called on the tape device when it is used, that's why I recommend native irix tar.

_________________
:PI: :O2: :Indigo2IMP: :Indigo2IMP:


Top
 Profile  
 
 Post subject: Re: Tape restore
Unread postPosted: Thu Mar 22, 2012 12:54 am 
Offline
User avatar

Joined: Tue Mar 22, 2005 2:11 am
Posts: 125
Location: Cairo
Thanks. I tried the autoconfig thing, and now when I try to read the backup the GUI says "Tape full. Please insert the next tape".

My O2 is the only computer I have with a SCSI interface. Strange.


Top
 Profile  
 
 Post subject: Re: Tape restore
Unread postPosted: Thu Mar 22, 2012 2:42 am 
Offline

Joined: Sat Nov 12, 2011 4:18 am
Posts: 330
Location: Tokyo
better full tape than no tape :)

can you try this:

mt rewind
dd if=/dev/tape of=/tmp/file bs=1024 count=100
file /tmp/file

if it reads anything, it may tell you the header of data on the tape - (cpio,tar,etc) and then use according tool to read the data.

_________________
[click for links to hinv] JP: :Fuel: |:Octane2: |:O2: | :Indy: || PL: [ :Fuel: :O2: :O2+: :Indy: ]


Top
 Profile  
 
 Post subject: Re: Tape restore
Unread postPosted: Thu Mar 22, 2012 3:43 am 
Offline
User avatar

Joined: Tue Mar 22, 2005 2:11 am
Posts: 125
Location: Cairo
mt rewind
/dev/nrtape: No such file or directory in filesystem

Also

dd if=/dev/tape of=/tmp/file bs=1024 count=100
Cannot open /dev/tape: No such file or directory

Mysterious. Is there some kind of driver that should be installed?


Top
 Profile  
 
 Post subject: Re: Tape restore
Unread postPosted: Thu Mar 22, 2012 4:02 am 
Offline

Joined: Sat Nov 12, 2011 4:18 am
Posts: 330
Location: Tokyo
try to use /dev/rmt/tps1d3nr instead of /dev/tape or /dev/nrtape

There are no tape drivers in IRIX (except APD which doesn't concern you),
but you may want to take a look here:

/var/sysgen/master.d/scsi
(on my box, it seems to only support HP DAT C5683A - which seems to be the DDS20/40.)

This file contains some definitions on how to talk to tape drives, their capabilities etc..

Can you also run:

scsicontrol -i /dev/scsi/*

and show us the output?

_________________
[click for links to hinv] JP: :Fuel: |:Octane2: |:O2: | :Indy: || PL: [ :Fuel: :O2: :O2+: :Indy: ]


Top
 Profile  
 
 Post subject: Re: Tape restore
Unread postPosted: Thu Mar 22, 2012 4:50 am 
Offline
User avatar

Joined: Tue Mar 22, 2005 2:11 am
Posts: 125
Location: Cairo
scaramanga 3# scsicontrol -i /dev/scsi/*
/dev/scsi/sc0d1l0: Disk SEAGATE ST336704LC 0004
ANSI vers 3, ISO ver: 0, ECMA ver: 0; supports: 16bit synch linkedcmds cmdqueing
Device is ready
/dev/scsi/sc0d2l0: Disk FUJITSU MAJ3091MC 0113
ANSI vers 4, ISO ver: 0, ECMA ver: 0; supports: 16bit synch linkedcmds cmdqueing
Device is ready
/dev/scsi/sc0d4l0: CD-ROM TOSHIBA CD-ROM XM-5401TA3605
ANSI vers 2, ISO ver: 0, ECMA ver: 0; supports: reladdr synch linkedcmds
Device is not ready

/dev/scsi/sc1d3l0: Tape HP C5683A C305
ANSI vers 3, ISO ver: 2, ECMA ver: 0; supports: 16bit synch


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 27 posts ]  Go to page 1, 2  Next

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group