The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > AIX
Google UNIX.COM


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Tape drive problem James Zwecker SCO 2 04-14-2008 01:49 PM
Problem restoring files from remote tape drive lindab SUN Solaris 4 07-02-2007 05:52 AM
reading contents on a 4mm tape DATDANGGADUDE AIX 0 06-22-2006 06:10 PM
error reading from tape colesy UNIX for Dummies Questions & Answers 3 08-30-2002 08:54 AM
DLT TAPE DRIVE/ Script problem /Ignite. nemex UNIX for Dummies Questions & Answers 2 12-27-2001 09:20 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 06-02-2006
Registered User
 

Join Date: Jun 2006
Posts: 2
Problem reading a 4mm tape drive

I'm attempting to read a tape in a 4mm drive (AIX 4.3) using the following command...

Code:
tar tvf /dev/rmt0
...and I keep getting the following error message:

Code:
tar: 0511-193 An error occurred while reading from the media.
There is not enough memory available now.
I've googled this error message and found many sources (including this thread on this site) that indicate it is a problem with the block size on the tape being different from the block size on the drive. However, I've tried changing the block size on the drive to 0 (variable), 512, and 1024, using this command...

Code:
chdev -l rmt0 -a block_size=#
, and nothing is working. When I set the block size to 512 or 1024, the2second line of the error message changes to this:

Code:
tar: 0511-193 An error occurred while reading from the media.
There is an input or output error.
I'm afraid the drive might be broken, but I'm hoping someone might have some other suggestions for me. If I haven't included enough info, let me know.

TIA
Reply With Quote
Forum Sponsor
  #2  
Old 05-24-2007
Registered User
 

Join Date: May 2007
Location: Arizona
Posts: 1
I am not an expert but I read 4mm tapes alot. The command I use to read them is
tar -tvf /dev/rmt/0n

Hope this helps.
Reply With Quote
  #3  
Old 05-24-2007
Registered User
 

Join Date: Nov 2006
Posts: 45
You can easily find the block size with the following commands.

#Change the block size to variable
chdev -l rmt0 -a block_size=0

#Read one huge block
dd if=/dev/rmt0 of=/tmp/testblock bs=128k count=1

#Find the block size with wc
wc -c /tmp/testblock

And there you have the blocksize.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 05:48 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0