- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Newbi needs help. Tar commands replies error 'bloc...
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
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
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
тАО07-18-2002 12:10 AM
тАО07-18-2002 12:10 AM
Newbi needs help. Tar commands replies error 'blocksize error'
I'm using HP-UX 11, (hp 9000, L1000).
Tape drive DDS4. I can read bakup tape
that i've created on my machine, however,
I'm getting 'Tar: tape blocksize error'
whenever trying to read tapes from other
machines. the tape is readable in other
machine (Unisys A series mainframe).
I'm using Tar command:
#tar -tvf /dev/rmt/0mn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 12:24 AM
тАО07-18-2002 12:24 AM
Re: Newbi needs help. Tar commands replies error 'blocksize error'
Looks like you need to rewind your tape first
mt -t /dev/rmt/0m rew
Then
tar -tvf /dev/rmt/0m
The 0mn means you are using the no rewind option with your tar command
HTH
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 12:30 AM
тАО07-18-2002 12:30 AM
Re: Newbi needs help. Tar commands replies error 'blocksize error'
Maybe you can try it with:
dd if=/dev/rmt/0m ibs=256k | tar tvf -
Maybe you can get ride of the ibs=256k at all, or you have to change it with the correct block size.
Heiner
P.S. SGI also likes to write byteswapped. If this is here the case to you have to add the dd option 'conv=swab'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 12:50 AM
тАО07-18-2002 12:50 AM
Re: Newbi needs help. Tar commands replies error 'blocksize error'
you told us, that you have problems with tar- tapes from "other" machines. Does that mean other platforms, like solaris or aix? Then use a different command, which will solve your problem easily: pax
The command pax is able to read every tar- or cpio- format. And it's available on every UNIX platform. For more information:
man pax
Allways stay on the bright side of life!
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 01:15 AM
тАО07-18-2002 01:15 AM
Re: Newbi needs help. Tar commands replies error 'blocksize error'
as already suggested just rewind the tape and issue
tar tvf /dev/rmt/0m
regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 01:52 AM
тАО07-18-2002 01:52 AM
Re: Newbi needs help. Tar commands replies error 'blocksize error'
1. Steven, it's still giving blocksize error
even after rewinding the tape.
2. Peter, I used pax -cdnv & pax -dv, but it
that there is no output, just an empty line.
did I give the correct command?
3. Heiner, I've tried the dd command with a
few combinations of the ibs= ???k , even
removing the ibs, but it's give a new error:
'directory checksum error'
My collegue is still at it, trying a few
combos with ibs=???k.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 05:47 AM
тАО07-18-2002 05:47 AM
Re: Newbi needs help. Tar commands replies error 'blocksize error'
dd if=/dev/rmt/0mn of=/tmp/record1 bs=64k count=1
dd if=/dev/rmt/0mn of=/tmp/record2 bs=64k count=1
ll /tmp/record1 /tmp/record2
file /tmp/record1
and report the result (i.e. output) here.
What this will show is:
- The record size of the first and second record.
- Whether HP-UX recognizes this as a tar archive (i.e. byte order correct).
Other question: Does "tar -tvf /dev/rmt/0mn" report *anything else* (besides "tar: tape blocksize error" , i.e. (part of) the *listing*? If so, then please post the beginning of that listing, i.e. 10 or so lines.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 05:58 AM
тАО07-18-2002 05:58 AM
Re: Newbi needs help. Tar commands replies error 'blocksize error'
It is possible that the tapes are not in tar format . I would suggest that you do a simple dd to check whter the data is wriiten or not like
dd if=/dev/rmt/0m of=/tmp/test
and check after that whether there is some data in that file or not , in case you see some data then the tapes are not in tar format .
I dont hink it is a media issue as you can write and read sucessfully.
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 06:10 AM
тАО07-18-2002 06:10 AM
Re: Newbi needs help. Tar commands replies error 'blocksize error'
First check if there was any block size used while taking the backup or what is the default block size when using tar on the system where the backup was taken.
Then use the -b option with the tar command to specify the block size,
tar -tvfb /dev/rmt/0m block_size
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 11:33 PM
тАО07-18-2002 11:33 PM
Re: Newbi needs help. Tar commands replies error 'blocksize error'
good luck