Unable to Untar


 
Thread Tools Search this Thread
Operating Systems Solaris Unable to Untar
# 1  
Old 05-28-2012
Question Unable to Untar

Hello,

Code:
bash-2.05# tar -xvf sunos.tar
tar: directory checksum error
bash-2.05# file sunos.tar
sunos.tar:    data
bash-2.05#

Can someone please help me untar this. This is a Solaris 9 box.

Last edited by DukeNuke2; 05-28-2012 at 10:41 AM..
# 2  
Old 05-28-2012
It doesn't look like a tar file. What says:

Code:
od -c sunos.tar | head

?
# 3  
Old 05-28-2012
Code:
bash-2.05# od -c sunos.tar | head
0000000 033 032 Í Æ Ë ¦ á Â Á Ô ê 004 232 W 006 ü
0000020 Õ 206 Ù 8 ú = Ý Í a 205 Â 026 i 3 a \
0000040 Á ¿ 227 \t Õ 217 g 212 ` 203 + O ÷ T ª ª
0000060 ¸ ê 033 ´ Ð 025 ¥ h ¥ 220 225 ² < Ê m £
0000100 0 025 017 D ' M 022 G H 210 ë È 007 å n 037
0000120 Í ñ Ã ù ± Õ ë \b î ^ ® i 215 p 7 ø
0000140 = ¥ / 213 006 ù 211 ª Ï ° Í Ù i ó « È
0000160 217 \f C & : { 226 201 G 007 031 ¤ * W & ó
0000200 ï ¦ N T ¡ 035 024 ¼ 232 î P \r ` ï î )
0000220 ä I & 027 Ç # " Î Å Ä 034 ý * Ã { 230
bash-2.05#


Last edited by Scrutinizer; 05-28-2012 at 11:50 AM.. Reason: wrappping - mod: code tags
# 4  
Old 05-28-2012
First thought is that the tar archive is corrupt.

Where did the archive come from? Did you create it?

Did you ftp it onto the system? If so, did you use "binary" transfer?
# 5  
Old 05-29-2012
Whatever that file is, it is not a tar archive .
What do you get for:
Code:
file sunos.tar

# 6  
Old 05-29-2012
That was in the OP, it doesn't recognize it, just says 'data'.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Untar fail

Hi Team, I have a file named as follows: aaa.tar.gz Now I need to verify if the untar fails, then the script has to send a mail. In order to check this condition, I need a tar.gz file which is unable to untar it. Can anyone help me to create a file which I will be able to unzip successfully... (2 Replies)
Discussion started by: kmanivan82
2 Replies

2. UNIX for Dummies Questions & Answers

How to untar the below file?

I need to extract the below file. could you please let me know how to extract by using unix command. manfucture.today.1678.tar.gz (5 Replies)
Discussion started by: ramkumar15
5 Replies

3. UNIX for Dummies Questions & Answers

Not able to untar a file in HP UX!

Hi, I have been trying to untar this file hello.tar which consists of 3 files but nothing happens: eux750{root}# tar -xvf hello.tar x /hello, 8405 bytes, 17 tape blocks Why am I not able to see the untarred files.:wall: Thanks to help! (2 Replies)
Discussion started by: terminator
2 Replies

4. Shell Programming and Scripting

Not able to untar file

Hello Experts, I have requirement in which a file is present in the folder_test. In that folder there is file called Test.tar.gz.20111102. Now my requirement is i have to rename this file to someother format and untar it.... folder_test Test.tar.gz.20111102 I am using the below... (5 Replies)
Discussion started by: aks_1902
5 Replies

5. Shell Programming and Scripting

cp, chown, untar

hello i want shell script. i have a source.txt /home/user409/public_html/test/ /home/user09876/public_html/xdsss/ /home/user9765/public_html/320xxx/ . . . maybe 1000 lines i want . 1.read a source.txt 2.untar special.tar.gz into these directory in source.txt 3.i want to... (14 Replies)
Discussion started by: topic32428285
14 Replies

6. AIX

untar

Hi, How can i untar a set of files in to different directory. This is content tar -tvf samba.tar drwxrwxrwx 0 0 0 Nov 28 18:35:41 2008 samba/ -rw-r--r-- 0 0 0 Nov 18 15:12:40 2008 samba/b.txt -rw-r--r-- 0 0 0 Nov 18 15:12:40 2008 samba/c.txt -rw-r--r-- 0... (4 Replies)
Discussion started by: allwin
4 Replies

7. UNIX and Linux Applications

unable to UNTAR a file

Hi frens, I have to install samba on UNIX box for that i have downloaded the samba file from netand now trying to untar that file and getting following error: # tar -xvf samba-3.0.28a.tar.gz UX:tar: ERROR: Directory checksum error even i checked many times by again downloading the file... (6 Replies)
Discussion started by: NIMISH AGARWAL
6 Replies

8. Shell Programming and Scripting

Untar remotely

I need to upload tar or zip files to a unix server than unzip or untar them remotely. Any suggestions on the easiest way to do the remote untar or unzip? For example does someone know of a cgi script or something? Thanks -jz (3 Replies)
Discussion started by: jwzumwalt
3 Replies

9. UNIX for Advanced & Expert Users

untar

i have try to untar the file in same location. But it gave the error # tar -xvf TSMSRVAIX5220.tar x tivoli.tsm.devices.acsls, 757760 bytes, 1480 media blocks. tar: 0511-169 A directory checksum error on media; 4011 not equal to 8222. How can i rectify this prob. Thanks in advance ... (2 Replies)
Discussion started by: prakash96453
2 Replies

10. UNIX for Advanced & Expert Users

Untar to different location

I have a tar file where the files have been tar'd along with the location of the file i.e /opt/abc/file.txt /opt/abc/file2.txt I am trying to untar this file on a different server where /opt/abc does not exist. How do I untar these files without the tar trying to create the structure... (3 Replies)
Discussion started by: handak9
3 Replies
Login or Register to Ask a Question