Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Help, I am using Digital UNIX V4.0
@ 1999-04-15  4:00 Le Beaux
  1999-04-15  4:00 ` Peter da Silva
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Le Beaux @ 1999-04-15  4:00 UTC (permalink / raw)


Help, I am using Digital UNIX V4.0

I am trying to untar files from a 4mm tape.

When I 
#ls -lut /dev/rmt*

 I get

crw-rw-rw-   1 root     system     9,5122 Apr 15 13:58 /dev/rmt0h
crw-rw-rw-   1 root     system     9,5126 Apr 14 16:52 /dev/rmt0a
crw-rw-rw-   1 root     system     9,5120 Apr 14 16:37 /dev/rmt0l
crw-rw-rw-   1 root     system     9,5124 Apr 14 16:37 /dev/rmt0m

Next I tried,

#cd 
#tar cvf /dev/rmt0h bin 

and I get

a bin
a bin/setx 1 Blocks

However, when I try 
#tar tvf /dev/rmt0h

tar: [offset 0]: I/O error

Any guess on what this error could be from?  Suggestions?  Solutions?
Anything?

Email is appreciated. Thanks.

-------
Scott Boston
Tech. Support Rep.
ENSYTE Energy Software Int'l
Scott_Boston@ensyte.com



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Help, I am using Digital UNIX V4.0
  1999-04-15  4:00 Help, I am using Digital UNIX V4.0 Le Beaux
@ 1999-04-15  4:00 ` Peter da Silva
  1999-04-16  4:00   ` Le Beaux
  1999-04-16  4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 8+ messages in thread
From: Peter da Silva @ 1999-04-15  4:00 UTC (permalink / raw)


In article <3716568f.7348776@news.primenet.com>,
Le Beaux <Scott_boston@ensyte.com> wrote:
>#cd 
>#tar cvf /dev/rmt0h bin 
>a bin
>a bin/setx 1 Blocks

You just overwrote whatever was on the tape with bin/setx.

>However, when I try 
>#tar tvf /dev/rmt0h
>tar: [offset 0]: I/O error

Since you are now at the end of the tape, it hits EOF immediately.

-- 
In hoc signo hack, Peter da Silva <peter@baileynm.com>
 `-_-'   "Heb jij vandaag je wolf al geaaid?"
  'U`
         "Tell init(8) to lock-n-load, we're goin' zombie slaying!"



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Help, I am using Digital UNIX V4.0
  1999-04-15  4:00 ` Peter da Silva
@ 1999-04-16  4:00   ` Le Beaux
  1999-04-16  4:00     ` Peter da Silva
  1999-04-17  4:00     ` Seppo Routimo
  0 siblings, 2 replies; 8+ messages in thread
From: Le Beaux @ 1999-04-16  4:00 UTC (permalink / raw)


Okay... Let me make myself a little more clear.

I had trouble untarring a 4mm tape sent from the client, so I got an
empty tape and tried tarring my bin directory which only has the setx
file in it.

It appears that that worked okay.  Now, I am getting that tar:[offset
0]: I/O error when trying to untar my new bin/setx file.  Well, untar
are simply get the contents of that tape.

Thank you all for all the help you have giving me so far.

--Scott

On 15 Apr 1999 22:46:58 GMT, peter@baileynm.com (Peter da Silva)
wrote:

>In article <3716568f.7348776@news.primenet.com>,
>Le Beaux <Scott_boston@ensyte.com> wrote:
>>#cd 
>>#tar cvf /dev/rmt0h bin 
>>a bin
>>a bin/setx 1 Blocks
>
>You just overwrote whatever was on the tape with bin/setx.
>
>>However, when I try 
>>#tar tvf /dev/rmt0h
>>tar: [offset 0]: I/O error
>
>Since you are now at the end of the tape, it hits EOF immediately.
>
>-- 
>In hoc signo hack, Peter da Silva <peter@baileynm.com>
> `-_-'   "Heb jij vandaag je wolf al geaaid?"
>  'U`
>         "Tell init(8) to lock-n-load, we're goin' zombie slaying!"

-------
Scott Boston
Tech. Support Rep.
ENSYTE Energy Software Int'l
Scott_Boston@ensyte.com



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Help, I am using Digital UNIX V4.0
  1999-04-16  4:00   ` Le Beaux
@ 1999-04-16  4:00     ` Peter da Silva
  1999-04-17  4:00     ` Seppo Routimo
  1 sibling, 0 replies; 8+ messages in thread
From: Peter da Silva @ 1999-04-16  4:00 UTC (permalink / raw)


In article <3717513d.71522403@news.primenet.com>,
Le Beaux <Scott_boston@ensyte.com> wrote:
>I had trouble untarring a 4mm tape sent from the client, so I got an
>empty tape and tried tarring my bin directory which only has the setx
>file in it.

>It appears that that worked okay.  Now, I am getting that tar:[offset
>0]: I/O error when trying to untar my new bin/setx file.  Well, untar
>are simply get the contents of that tape.

Ah, I see what you're doing now.

You may have a bad tape drive. In fact that seems likely, since you used
the rewind device, and because you got I/O error rather than EOF.

-- 
In hoc signo hack, Peter da Silva <peter@baileynm.com>
 `-_-'   "Heb jij vandaag je wolf al geaaid?"
  'U`
         "Tell init(8) to lock-n-load, we're goin' zombie slaying!"



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Help, I am using Digital UNIX V4.0
  1999-04-15  4:00 Help, I am using Digital UNIX V4.0 Le Beaux
  1999-04-15  4:00 ` Peter da Silva
@ 1999-04-16  4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
  1999-04-16  4:00 ` John Hill
  1999-04-16  4:00 ` deseim
  3 siblings, 0 replies; 8+ messages in thread
From: Alan Rollow - Dr. File System's Home for Wayward Inodes. @ 1999-04-16  4:00 UTC (permalink / raw)



In article <3716568f.7348776@news.primenet.com>, Scott_Boston@ensyte.com (Le Beaux) writes:

>However, when I try 
>#tar tvf /dev/rmt0h
>
>tar: [offset 0]: I/O error
>
>Any guess on what this error could be from?

Some versions of tar attempt to guess the transfer size used to
write a tape by reading the first record using a very large
transfer size (1 MB or there-abouts).  I think it does something
similar writing.  But, not all tape drives support such a large
transfer size.  The I/O error could be cause by it trying to
use a larger tranfer size than the drive support, or that the
driver *believes* the drive supports.

The maximum transfer size for a drive is a parameter in /etc/ddr.dbase.
The default for unrecognized drives may be 64 KB.

You can check by looking at the error log to see what the error
was.  Prefer to use DECevent to format the error log (the dia
command, if DECevent is installed).  If you use uerf(8), use
the option "-o full" to get the full error listing.

>Suggestions?  Solutions?

First, don't write to tape when you're trying to extract from it...

Second, use an explicit transfer size on the tar command.  From
my experience, that will prevent it from trying to use a large
size.

>Scott Boston
>

--
Alan Rollow				alan@nabeth.cxo.dec.com




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Help, I am using Digital UNIX V4.0
  1999-04-15  4:00 Help, I am using Digital UNIX V4.0 Le Beaux
  1999-04-15  4:00 ` Peter da Silva
  1999-04-16  4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
@ 1999-04-16  4:00 ` John Hill
  1999-04-16  4:00 ` deseim
  3 siblings, 0 replies; 8+ messages in thread
From: John Hill @ 1999-04-16  4:00 UTC (permalink / raw)
  To: Scott_boston

Le Beaux wrote:
> 
> Help, I am using Digital UNIX V4.0
> 
> I am trying to untar files from a 4mm tape.
> 
> When I
> #ls -lut /dev/rmt*
> 
>  I get
> 
> crw-rw-rw-   1 root     system     9,5122 Apr 15 13:58 /dev/rmt0h
> crw-rw-rw-   1 root     system     9,5126 Apr 14 16:52 /dev/rmt0a
> crw-rw-rw-   1 root     system     9,5120 Apr 14 16:37 /dev/rmt0l
> crw-rw-rw-   1 root     system     9,5124 Apr 14 16:37 /dev/rmt0m

So you get a directory listing of devices in the /dev directory.

> 
> Next I tried,
> 
> #cd
> #tar cvf /dev/rmt0h bin
> 
> and I get
> 
> a bin
> a bin/setx 1 Blocks

As another poster mentioned, you just overwrite the tape (the "c"
option creates a tar file on the device (or disk file) specified
after the "f" option. I do hope you have a copy of the original
tape...

> 
> However, when I try
> #tar tvf /dev/rmt0h
> 
> tar: [offset 0]: I/O error
> 
> Any guess on what this error could be from?  Suggestions?  Solutions?
> Anything?
>
Again another poster explained - you were trying to read tape after
the EOF.

Next time, you should:

1) Write protect any tape - at least then you can't overwrite your
   data.
2) Use tar tvf /dev/rmt0h to check the contents of the tape.
3) Use tar xvf /dev/rmt0h to copy the contents of the tape to the
   local directory (make sure this is where you want it to go).
 
> Email is appreciated. Thanks.
> 
> -------
> Scott Boston
> Tech. Support Rep.
> ENSYTE Energy Software Int'l
> Scott_Boston@ensyte.com

Regards,
John Hill



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Help, I am using Digital UNIX V4.0
  1999-04-15  4:00 Help, I am using Digital UNIX V4.0 Le Beaux
                   ` (2 preceding siblings ...)
  1999-04-16  4:00 ` John Hill
@ 1999-04-16  4:00 ` deseim
  3 siblings, 0 replies; 8+ messages in thread
From: deseim @ 1999-04-16  4:00 UTC (permalink / raw)


It colud be a problem with the block size, try something like this, to
restore:

mt rewind
dd if=/dev/nrmt0h bs=64k | tar -tvf -

Hope this help you, cheers,

    Javier Suarez

In article <3716568f.7348776@news.primenet.com>,
  Scott_boston@ensyte.com wrote:
> Help, I am using Digital UNIX V4.0
>
> I am trying to untar files from a 4mm tape.
>
> When I
> #ls -lut /dev/rmt*
>
>  I get
>
> crw-rw-rw-   1 root     system     9,5122 Apr 15 13:58 /dev/rmt0h
> crw-rw-rw-   1 root     system     9,5126 Apr 14 16:52 /dev/rmt0a
> crw-rw-rw-   1 root     system     9,5120 Apr 14 16:37 /dev/rmt0l
> crw-rw-rw-   1 root     system     9,5124 Apr 14 16:37 /dev/rmt0m
>
> Next I tried,
>
> #cd
> #tar cvf /dev/rmt0h bin
>
> and I get
>
> a bin
> a bin/setx 1 Blocks
>
> However, when I try
> #tar tvf /dev/rmt0h
>
> tar: [offset 0]: I/O error
>
> Any guess on what this error could be from?  Suggestions?  Solutions?
> Anything?
>
> Email is appreciated. Thanks.
>
> -------
> Scott Boston
> Tech. Support Rep.
> ENSYTE Energy Software Int'l
> Scott_Boston@ensyte.com
>

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Help, I am using Digital UNIX V4.0
  1999-04-16  4:00   ` Le Beaux
  1999-04-16  4:00     ` Peter da Silva
@ 1999-04-17  4:00     ` Seppo Routimo
  1 sibling, 0 replies; 8+ messages in thread
From: Seppo Routimo @ 1999-04-17  4:00 UTC (permalink / raw)


Le Beaux wrote:

> Okay... Let me make myself a little more clear.
>
> I had trouble untarring a 4mm tape sent from the client, so I got an
> empty tape and tried tarring my bin directory which only has the setx
> file in it.
>
> It appears that that worked okay.  Now, I am getting that tar:[offset
> 0]: I/O error when trying to untar my new bin/setx file.  Well, untar
> are simply get the contents of that tape.
>
> Thank you all for all the help you have giving me so far.
>
> --Scott

Hi

You can write to tape? And You can read the tape on an other drive?
We had a problem after 4.0D upgrade on the tape drive. It wrote ok and
one could read the tape on an other machine but the drive that took the
dump
(sic) gave I/O error. The service came with a drive firmware? tape and
once it was installed everything worked ok (didn't need reboot).

Seppo





^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~1999-04-17  4:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-04-15  4:00 Help, I am using Digital UNIX V4.0 Le Beaux
1999-04-15  4:00 ` Peter da Silva
1999-04-16  4:00   ` Le Beaux
1999-04-16  4:00     ` Peter da Silva
1999-04-17  4:00     ` Seppo Routimo
1999-04-16  4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
1999-04-16  4:00 ` John Hill
1999-04-16  4:00 ` deseim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox