- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Problem with tar
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
Discussions
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
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
08-09-2004 03:46 AM
08-09-2004 03:46 AM
Problem with tar
I have the following problem with tar:
tar -tvf /dev/rmt/0m
Tar: blocksize = 2
directory checksum error
what is the problem and how i can resolve it?
Please help
Thanks
David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2004 03:48 AM
08-09-2004 03:48 AM
Re: Problem with tar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2004 03:49 AM
08-09-2004 03:49 AM
Re: Problem with tar
Try to check the file
# file tar_file
tar_file: tar file
did you ftp the file whit binary mode ?
maybe a corrupt file, try and redownload it again.
HTH,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2004 03:58 AM
08-09-2004 03:58 AM
Re: Problem with tar
or cpio for that matter.
Every once in a while I get passed a cpio tape from someone and it catches me off guard.
Best regards,
Kent M. Ostby
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2004 08:05 AM
08-09-2004 08:05 AM
Re: Problem with tar
check this doc.
http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000062965233
Document description: Why does tar(1) report directory checksum error
Document id: A1327736
Hope this helps,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2004 08:09 AM
08-09-2004 08:09 AM
Re: Problem with tar
This error may be due to following reason
1. Corrupted files.
2.Bad block in hard disk ( while you taking backup).
3.Problem with media or DDS(tape) drive.
3.Incompatability of drive and media
4.format you used to take backup.( If you are trying to read the backup which you took with cpio or fback it will give you this problem)
Thanks
Sathya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2004 08:16 AM
08-09-2004 08:16 AM
Re: Problem with tar
root# dd if /dev/rmt/0m|of /bigfs/tarfile.tar
root# file /bigfs/tarfile.tar
Chances are it is cpio, compressed or gzipped for which you need to use other utilities ie:
cpio -idvmucat /bigfs/tarfile.tar|gunzip|tar tvf -
cat /bigfs/tarfile.tar|uncompress|tar tvf -
...
HTH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2004 01:49 AM
08-10-2004 01:49 AM
Re: Problem with tar
some more informations would be nice ...
Is it a tape? Is it from SGI workstation?
Do you have a tar-file? From windows?
Have you tried to rename it with extension .gz and to gunzip it?
Or unzip in windows?
Only some ideas ...
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2004 01:55 AM
08-10-2004 01:55 AM
Re: Problem with tar
Try
dd if=/dev/rmt/0m bs=10k | tar tvf -
Suspect tape is not compatible with drive or drive is broken.
Can you make a new backup with tar on a blank tape and read it back.
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2004 02:07 AM
08-10-2004 02:07 AM
Re: Problem with tar
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2004 02:14 AM
08-10-2004 02:14 AM
Re: Problem with tar
To prevent this use a blocking
factor of 1 can be used, although performance may be reduced somewhat. Use with -b 1 on tar file
More informations are given over tar man page on b option as,
----------------
Use the next arg argument as the blocking factor for archive
records. The default is 20; the maximum is at least 20.
However, if the f - modifier is used to specify standard
input, the default blocking factor is 1.
The blocking factor is determined automatically when reading
nine-track tapes (key letters x and t). On nine-track
tapes, the physical tape record length is the same as the
block size. The block size is defined as the logical record
size times the blocking factor (number of logical records
per block).
The blocking factor must be specified when reading flexible
disks and cartridge tapes if they were written with a
blocking factor other than the default.
If a tar file is read using a blocking factor not equal to
the one used when the file was written, an error may occur
at the end of the file but there may or may not be an actual
error in the read. To prevent this problem, a blocking
factor of 1 can be used, although performance may be reduced
somewhat.
tar writes logical records of 512 bytes, independent of how
logical records may be defined elsewhere by other programs
(such as variable-length records (lines) within an ASCII
text file).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2004 02:16 AM
08-10-2004 02:16 AM
Re: Problem with tar
V.
0 pts. please
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2004 08:46 PM
08-10-2004 08:46 PM
Re: Problem with tar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2004 09:23 PM
08-10-2004 09:23 PM
Re: Problem with tar
Don't mind but try to understand the scale 1-10. If you are assigning 1 point that means the answer is irrelevent to question but i didn't see any of the answers of that kind. See the link below on point assignment.
http://forums1.itrc.hp.com/service/forums/helptips.do?admit=716493758+1085211538437+28353475#33
Regards,
ps. Muthukumar, never mind .. this will count somewhere else :))