LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-09-2006, 08:16 AM   #1
ISummers
LQ Newbie
 
Registered: Sep 2006
Posts: 6

Rep: Reputation: 0
md5sum is wrong


Hi,
When I ftp a large file 600M Oracle to my Linux server from my XP pc that I downloaded it to, the md5sum seems to give the wrong answer.

For instance.

1. fsum on my XP pc gives the correct answer as stated by Oracle.

2. Copy to Linux server.

3. Run md5sum (result may be good or bad)

4. When good result, I then copy to another disk and recheck. Result is wrong! Then check the original "right" copy on the Linux server and that gives me a wrong number when the last time I ran it the number was correct. What the "f" is going on?

Do I have a bad md5sum that somehow touches/changes the zip file?

Regards,
Ian
 
Old 09-09-2006, 08:44 AM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,007
Blog Entries: 5

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
When you start the ftp make sure you type "bin" after login to tell it is a binary rather than an ASCII transfer.

Unix/Linux and Dos/Windows have different end of lines so an ASCII transfer from one to the other will usually change these end of line. A binary transfer tells it to transfer as is with no conversion.
 
Old 09-09-2006, 11:13 AM   #3
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
Try another transfer method and compare the results. It's likely that the bin thing mentioned above is the problem. Try using scp or sftp and see if the file is still corrupted. scp and sftp are modern, secure alternatives to rcp and ftp.

They are better in that they encrypt data as it goes over the network, and the password for the account is also encrypted. FTP sends the password in the clear so that someone who is sniffing your network traffic could easily get it.

There is of course a penalty for the encryption - some extra setup, although this should be more or less automatic on modern liux distros. You also get a higher CPU load. If the network is very fast and you are sending a lot of data, an scp/sftp connection can easily hog a lot of your CPU cycles.

I once worked at a project where we transferred gigabytes of data every night using rcp over a very fast network - multiple files in parallel. We switched to scp for the security and found that it had a really big hit on CPU resources.

I still favour using the s tools though, despite the CPU load. security security security!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
FC3: Media test pass - but MD5SUM is wrong Vikinghat Fedora - Installation 9 10-24-2006 04:58 AM
wrong md5sum karan_736 General 5 08-04-2006 02:16 AM
binutils - wrong md5sum Tuttle Linux From Scratch 3 11-16-2005 06:45 AM
md5sum : 1 out of 4 is wrong! yeehi Linux - General 8 11-02-2004 06:37 PM
Help with MD5SUM Smokeball Linux - Newbie 3 08-30-2003 10:45 PM


All times are GMT -5. The time now is 11:53 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration