Visit Our UNIX and Linux User Community

Unable to Untar

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


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

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:

od -c sunos.tar | head

# 3  
Old 05-28-2012
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

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:
file sunos.tar

# 6  
Old 05-29-2012
That was in the OP, it doesn't recognize it, just says 'data'.

Previous Thread | Next Thread
Test Your Knowledge in Computers #647
Difficulty: Medium
Window Maker is a free and open-source window manager for the X Window System designed to emulate NeXTSTEP's GUI.
True or False?

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. (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 . 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


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


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

Featured Tech Videos