Nekochan Net

Official Chat Channel: #nekochan // irc.nekochan.net
It is currently Mon Sep 01, 2014 3:27 pm

All times are UTC - 8 hours


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 Previous  1, 2
Author Message
 Post subject: Re: Tape restore
Unread postPosted: Thu Mar 22, 2012 4:46 am 
Offline

Joined: Sat Nov 12, 2011 3:18 am
Posts: 330
Location: Tokyo
Hmm, looks exactly like the very supported one in my IRIX, it must work (unless it's broken).

Can you run :

mt -f /dev/rmt/tps1d3nr status

And paste the output as well ?

_________________
[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:48 am 
Offline
User avatar

Joined: Tue Mar 22, 2005 1:11 am
Posts: 123
Location: Cairo
mt -f /dev/rmt/tps1d3nr status
Controller: SCSI
Device: HP: C5683A C305 9
Status: 0x2264
Drive type: DAT
Media : READY, write protected, not at BOT, block 2


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

Joined: Sat Nov 12, 2011 3:18 am
Posts: 330
Location: Tokyo
ok, then:


mt -f /dev/rmt/tps1d3nr rewind

dd if=/dev/rmt/tps1d3nr of=/tmp/file bs=512 count=10

file /tmp/file

and paste the output of all above

_________________
[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 2:22 pm 
Offline
User avatar

Joined: Tue Mar 22, 2005 1:11 am
Posts: 123
Location: Cairo
david@scaramanga david$ mt -f /dev/rmt/tps1d3nr rewind
david@scaramanga david$
david@scaramanga david$ dd if=/dev/rmt/tps1d3nr of=/tmp/file bs=512 count=10
0+0 records in
0+0 records out
david@scaramanga david$ file /tmp/file
/tmp/file: Empty file


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

Joined: Sat Nov 12, 2011 3:18 am
Posts: 330
Location: Tokyo
Ok,

try again that sequence with count=1000 - let's see if this changes (make sure to mt rewind the tape every time - the nr at the end of tape device means No Rewind).

you may also want simply trying cat /dev/rmt/tps1d3nr > /tmp/file1 && file /tmp/file1 and see if this gets you anything..

Also, you can try running mt -f /dev/rmt/tps1d3nr blksize
it should return the default block size, and use that block size in the dd command.

_________________
[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:20 pm 
Offline

Joined: Sat Nov 12, 2011 3:18 am
Posts: 330
Location: Tokyo
also, you could try:


mt -f /dev/rmt/tps1d3nr rewind
mt -f /dev/rmt/tps1d3nr status
mt -f /dev/rmt/tps1d3nr fsf 1
mt -f /dev/rmt/tps1d3nr status
mt -f /dev/rmt/tps1d3nr rewind

This will: rewind the tape, show if it's really at BOT (beginning of tape), go forward by one file (one backup hopefully, it should take some time depending on how big it is), and show again how far did you get, and then rewind again. This will confirm the tape has some actual data.
Very likely the restore tool doesn't work because your /dev/tape or /dev/nrtape don't work properly.

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


Top
 Profile  
 
 Post subject: Re: Tape restore
Unread postPosted: Sat Mar 24, 2012 1:57 am 
Offline
User avatar

Joined: Tue Mar 22, 2005 1:11 am
Posts: 123
Location: Cairo
david@scaramanga david$ mt -f /dev/rmt/tps1d3nr blksize

Recommended tape I/O size: 0 bytes (0 512-byte blocks)
Minimum block size: 1 byte(s)
Maximum block size: 16777215 bytes
Current block size: 512 byte(s)
david@scaramanga david$ mt -f /dev/rmt/tps1d3nr status
Controller: SCSI
Device: HP: C5683A C305 9
Status: 0x2264
Drive type: DAT
Media : READY, write protected, not at BOT, block 2
david@scaramanga david$ mt -f /dev/rmt/tps1d3nr fsf 1
mt -f /dev/rmt/tps1d3nr status
david@scaramanga david$ mt -f /dev/rmt/tps1d3nr status
Controller: SCSI
Device: HP: C5683A C305 9
Status: 0x8264
Drive type: DAT
Media : READY, write protected, at FMK, block 778800


Top
 Profile  
 
 Post subject: Re: Tape restore
Unread postPosted: Sat Mar 24, 2012 2:41 am 
Offline

Joined: Sat Nov 12, 2011 3:18 am
Posts: 330
Location: Tokyo
Okay, so your block size is set to 512 bytes, and somehow dd set to 512 couldn't read anything meaningful earlier.
778800 blocks 512 bytes each is 39GB of data - I guess that's compressed (DDS4).

try this then:

mt -f /dev/rmt/tps1d3nr rewind (will take a while)

dd if=/dev/rmt/tps1d3nr of=/tmp/file2 bs=512 count=778800

file /tmp/file2

(you may need to try with count decreased by 1 and 2 as well, I can't remember if it counts filemarks as blocks or not).

This might be able to copy the whole tape to a file on your drive, if not, then I don't really have any more ideas.

Your drive seems to respond to commands, works with the tape, the tape DOES have the data, so it really should work with no problems...

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


Top
 Profile  
 
 Post subject: Re: Tape restore
Unread postPosted: Sat Mar 24, 2012 3:18 am 
Offline
User avatar

Joined: Tue Mar 22, 2005 1:11 am
Posts: 123
Location: Cairo
david@scaramanga david$ mt -f /dev/rmt/tps1d3nr rewind
<if=/dev/rmt/tps1d3nr of=/tmp/file2 bs=512 count=778800
0+0 records in
0+0 records out
david@scaramanga david$ file /tmp/file2
/tmp/file2: Empty file


Top
 Profile  
 
 Post subject: Re: Tape restore
Unread postPosted: Sat Mar 24, 2012 4:35 am 
Offline

Joined: Sat Nov 12, 2011 3:18 am
Posts: 330
Location: Tokyo
OK, last try:

mt -f /dev/rmt/tps1d3nr rewind

mt -f /dev/rmt/tps1d3nr status

paste what it shows, if it says " not at BOT, block 2 " like I saw before, then try as well:

mt -f /dev/rmt/tps1d3nr bsr 1
or
mt -f /dev/rmt/tps1d3nr bsr 2

until the status starts showing "at BOT"

Then try using your restore tool again or use dd and file combination one more time.

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


Top
 Profile  
 
 Post subject: Re: Tape restore
Unread postPosted: Tue Mar 27, 2012 4:53 pm 
Offline

Joined: Sat Nov 12, 2011 3:18 am
Posts: 330
Location: Tokyo
here's one more idea, try using gnu tar (maybe from nekoware), I just saw a "not enough space error" running irix tar while gnu tar worked fine.

_________________
[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 28, 2012 9:30 am 
Offline
User avatar

Joined: Wed May 07, 2008 6:47 pm
Posts: 324
Location: Seattle, WA
"not enough space" means there's no room to store the block read, given the blocksize you specified (i.e. the blocksize on tape is larger than 512b). There is no corresponding error to specifying a larger blocksize than exists on tape.

try with bs=32768 or bs=65536. It'll probably work a lot better.

_________________
:OnyxR: :IRIS3130: :IRIS2400: :Onyx: :ChallengeL: :4D220VGX: :Indigo: :Octane: :Cube: :Indigo2IMP: :Indigo2: :Indy:


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

All times are UTC - 8 hours


Who is online

Users browsing this forum: Bing [Bot] 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