Solved

tar problem

Posted on 1997-11-13
3
961 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses

623 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