- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: tar error
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2007 06:59 PM
05-06-2007 06:59 PM
tar error
When I trying tar -tvf/xvf to tar file i am getting "An error occurred while reading from the media." There are many tar files in my system and all giving same error. Is there block size issue?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2007 07:30 PM
05-06-2007 07:30 PM
Re: tar error
What is your command used?
Regards
L-DERLYN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2007 07:36 PM
05-06-2007 07:36 PM
Re: tar error
do you get the same error message when you create the tar on the file system?
e.g.
tar -cvf /tmp/MYFILES.TAR ./dir/*
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2007 07:39 PM
05-06-2007 07:39 PM
Re: tar error
It usually relates to the block size. Is the tar archive made on hp-ux or any other OS.
You might have to play with the block size. The default on hp-ux is 20.
man tar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2007 07:48 PM
05-06-2007 07:48 PM
Re: tar error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2007 07:55 PM
05-06-2007 07:55 PM
Re: tar error
(copied from you second thread)
why do you mean that's a block size issue?
I think it could be only if this files are not created by yourself (from SGI for example).
"An error occurred while reading from the media."
From your first message it seems like you want to read from tape, but if you say: 'There are many tar files in my system'
then you've maybe not given the right path for the tar-file.
What's your command?
And how big are your tar files and which path does they have?
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2007 08:14 PM
05-06-2007 08:14 PM
Re: tar error
Try with the below block sizez
tar tvbf 10 tarfile (block size 10)
tar xvbf 1 tarfile (block size 1)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2007 08:33 PM
05-06-2007 08:33 PM
Re: tar error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2007 08:34 PM
05-06-2007 08:34 PM
Re: tar error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2007 08:39 PM
05-06-2007 08:39 PM
Re: tar error
For example, the tar file name is tarfile;
run the command :
tar tvbf 1 tarfile (give us the output)
if it does not work
do the file command
file tarfile
give us the output of both the commands.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2007 09:14 PM
05-06-2007 09:14 PM
Re: tar error
so what is your command you use?
Please more infos.
Use 'file
You also could try with winzip (at a pc) to read tar-file.
The vendor don't know how it was created?
Strange ...
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2007 09:22 PM
05-06-2007 09:22 PM
Re: tar error
my vendor resend tar files and which are working fine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2007 09:24 PM
05-06-2007 09:24 PM