LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-08-2008, 10:46 PM   #1
SentralOrigin
Member
 
Registered: Jul 2005
Distribution: Gentoo, Ubuntu
Posts: 318

Rep: Reputation: 30
Is this normal? (Different file sizes)


I have 2 identical USB-powered hard drives, and I formatted both of them when I first got them. I copied over about 100 GB or I had on one of the hard drives to the other one, but when I compared the sizes, the one I transferred the files over to was several hundred bytes smaller than the original on my first hard drive. Is this normal?
 
Old 12-09-2008, 12:39 AM   #2
thedonkdonk
Member
 
Registered: Oct 2005
Location: San Jose, CA
Distribution: Fedora, RHEL, CentOS
Posts: 136

Rep: Reputation: 16
It can be. Are the drives the same model? Are the drives using the same file system?

Most likely, the drives have a different file system. Because of how the file system keeps track of files the same file could report different sizes on different file systems. Use a md5sum to check to make sure the file got transferred correctly.
 
Old 12-09-2008, 12:46 AM   #3
SentralOrigin
Member
 
Registered: Jul 2005
Distribution: Gentoo, Ubuntu
Posts: 318

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by thedonkdonk View Post
It can be. Are the drives the same model? Are the drives using the same file system?

Most likely, the drives have a different file system. Because of how the file system keeps track of files the same file could report different sizes on different file systems. Use a md5sum to check to make sure the file got transferred correctly.
Yes, they are the same exact model. I got both of them together at the time, and they are both formatted as ext3.

How do I use a md5sum to check?
 
Old 12-09-2008, 01:57 AM   #4
thedonkdonk
Member
 
Registered: Oct 2005
Location: San Jose, CA
Distribution: Fedora, RHEL, CentOS
Posts: 136

Rep: Reputation: 16
md5sum [OPTION] [FILE]
So,
Code:
md5sum file1
with give a number. something like 1a433491840c4a3140ac817f347cb6bb. Then do the same with file2. see if the number is the same then the files are the same. if they are different then you have different files. ie, one (or both) got corrupted.
 
  


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
define different physical sizes on Multiple Monitors of different sizes MasterC Linux - Desktop 2 03-18-2008 04:24 PM
ASAP! file and dir sizes omerdvd Linux - Newbie 1 12-10-2006 03:41 AM
LL and DU reporting different file sizes trewsfan Linux - General 5 07-20-2006 05:56 PM
reiserfs file sizes doralsoral Linux - Software 1 01-19-2005 03:52 PM
DVD File Sizes Maestro485 Linux - Software 1 12-21-2004 07:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:29 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