Solved

tar problem

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
sed -- search an replace multiple pattern 11 67
FTP on FreeBSD server 2 111
auto mounter on solaris 1 52
What are recommended OS for exim mail server? 10 100
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…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
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.:

911 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now