LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-28-2009, 11:41 PM   #1
hadimotamedi
Member
 
Registered: Aug 2009
Posts: 228

Rep: Reputation: 30
Inquiry:problem on unzip a file?


Dear All
I have tried to get a backup from my Red Hat 7.2 server , as the followings :
#tar -czf conf.tgz conf
Then I got a copy from it on my MS Windows client , through sftp .
At now , when I want to unzip it on my Virtual Box Red Hat 7.2 as guest on Windows XP as host it returns as "incomplete literal tree , format violated" . It cannot even be unzipped on my MS Windows client . But it still can be unzipped on the original RedHat 7.2 server, as the followings :
#tar -zxvf conf.tgz
Can you please do me favor and let me know what is wrong in the above scenario that the backup file is no longer useful ?
Let me thank you in advance
 
Old 11-29-2009, 03:54 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
I expect you have not installed gzip on your windows machine. I don't use windows but I would be amazed if by default it comes with a tool that can decompress gziped files.

Evo2.
 
Old 11-29-2009, 04:16 AM   #3
hadimotamedi
Member
 
Registered: Aug 2009
Posts: 228

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by evo2 View Post
I expect you have not installed gzip on your windows machine. I don't use windows but I would be amazed if by default it comes with a tool that can decompress gziped files.

Evo2.
Sorry . But the WinRar is installed on my MS Windows client . Can you please let me know why the file cannot be uncompressed ?
Thank you in advance
 
Old 11-29-2009, 04:22 AM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Ok, check if it has been corrupted. Check the md5sum
Code:
md5sum conf.tgz
Make sure that the output is the same on both the original Red Hat machine and on the virtual machine.

You should also check on the windows machine, but I don't know how to do that.

Evo2.
 
Old 11-29-2009, 04:27 AM   #5
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally Posted by evo2 View Post
You should also check on the windows machine, but I don't know how to do that.
From the Command Window prompt: md5sum file.tgz

Edit: sorry, I forgot that md5sum is not a windows command. I installed it from here.

Last edited by colucix; 11-29-2009 at 04:50 AM.
 
Old 11-29-2009, 05:00 AM   #6
hadimotamedi
Member
 
Registered: Aug 2009
Posts: 228

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by evo2 View Post
Ok, check if it has been corrupted. Check the md5sum
Code:
md5sum conf.tgz
Make sure that the output is the same on both the original Red Hat machine and on the virtual machine.

You should also check on the windows machine, but I don't know how to do that.

Evo2.
Thank you for your reply . I checked its checksum on my Linux & Windows machine , as the below and attached :
"C:\Documents and Settings\user>md5sum wxc2.tgz
8b4bc0f33bbca8a820bd920239812ee5 *wxc2.tgz"
Please let me know what is wrong here ?
Thank you in advance
Attached Thumbnails
Click image for larger version

Name:	ScreenHunter_002.jpg
Views:	6
Size:	171.2 KB
ID:	2077  
 
Old 11-29-2009, 07:41 AM   #7
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Now compare it with the checksum of the original file on the Red Hat server. If they are not the same, something went wrong in the transfer process (and you have to download it again), if they are the same you have to further investigate in order to discover where the problem resides.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What is the difference between using "jar xvf" and "unzip" to unzip the zip-file? thomas2004ch Linux - Newbie 4 08-27-2009 05:11 AM
How do I unzip a .EXE file? sghod1212 Mandriva 7 02-08-2006 09:15 AM
[Inquiry] File Assosiations - Konqueror vs Firefox EclipseAgent SUSE / openSUSE 3 12-11-2005 01:03 AM
how do i unzip a .gz file? xstealthrtx Linux - General 3 01-20-2005 12:26 PM
Can't unzip a file GhostOfYoda Linux - Newbie 4 07-27-2003 10:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration