Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

tar problem

Posted on 1997-11-13
3
Medium Priority
?
968 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 40 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

722 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