Solved

tar problem

Posted on 1997-11-13
3
947 Views
Last Modified: 2006-11-17
When i type


paul @ MLG> tar xv
x 2DRPNL.IGS, 3977748 bytes, 7770 blocks
x 4DRPNL.IGS, 4411179 bytes, 8616 blocksChange tape and press the Enter key:
tar: tape read error: Not enough space
Change tape and press the Enter key:
tar: tape read error: Not enough space
Change tape and press the Enter key:
tar: tape read error: Not enough space
Change tape and press the Enter key:
paul @ MLG> ll
total 16378
-rw-r--r--    1 paul     user     3977748 Oct 30 09:49 2DRPNL.IGS
-rw-r--r--    1 paul     user     4407296 Nov 13 08:38 4DRPNL.IGS

As you see the last file is incomplete
After i type tar xv it says this in my console:

NOTICE: SCSI tape #1,4 blocksize mismatch; blocksize on tape is 10240 bytes

paul @ MLG> mt blksize

 Recommended tape I/O size: 10240 bytes (20 512-byte blocks)
 Minimum block size: 1 byte(s)
 Maximum block size: 16777215 bytes
 Current block size: 10240 byte(s)

I tried dd as well and that wouldn't work but i am no dd expert.
The tape drive is tps1d4. I am using an SGI with iris 5.3
0
Comment
Question by:onestar
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
Taliesin earned 20 total points
ID: 2007769
use a file named, for instance "dumb":

#!/bin/sh
ls -1 | cpio -o -C 10240 | dd bs=10240 of=$1


translation:
"list names only of every file in directory,
use the answer as input for:
for each input, turn it in blocks of size 10240,
pipe those blocks to:
read from stndard input and write to device $1, using
blocks of size 10240 all the time."

use it as:

paul@MLG> dumb [tape_device]



0
 
LVL 1

Expert Comment

by:Taliesin
ID: 2007770
OOps....
wrong answer....
you must use

paul@MLG> tar xv 10240

that's all

0
 
LVL 1

Author Comment

by:onestar
ID: 2007771
That does not work.

It says:

Change tape and press the Enter Key:
tar: tape read error: Not enough space

I don't get any files off.

0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question