Solved

tar problem

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

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…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

760 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

19 Experts available now in Live!

Get 1:1 Help Now