LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-10-2008, 07:50 PM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Folder Sizes Don't Match Up


I have a folder called /test located on server_old. I am moving the entire folder (and sub folders) to my PC. When I do this, I get a size discrepancy and I don't understand why.

Here is the folder I want:

Code:
server_old:/# du -h test/
4.6G	test/
Now I run the following command:

Code:
scp -r /test/ carlwill@my_pc:~/Desktop
Now this looks normal and everything copies over to my pc and then when I check the size of /test on my pc, the size is larger and I don't understand why.

Code:
carlwill@my_pc:~/Desktop$ du -h test/
5.3G	test/
Anyone know what I am doing wrong or not taking into consideration.
 
Old 07-10-2008, 07:56 PM   #2
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
Two candidates for your consideration:

1) different block sizes on each file system
2) remote file system doesn't support sparse files ("holes")
 
Old 07-10-2008, 08:00 PM   #3
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
I am not sure about 1 or 2. All I can verify is that they're both ext3 file systems but I don't think that makes a difference.
 
Old 07-10-2008, 08:09 PM   #4
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
I assumed since you said "PC", that you had either a FAT or NTFS file system on the other end. But you say they are both ext2.

You can examine 1 easily enough. Example:

sudo tune2fs -l /dev/hda1
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
grep/sed/awk - find match, then match on next line gctaylor1 Programming 3 07-11-2007 08:55 AM
Viewing Folder Sizes? carlosinfl Linux - General 10 02-06-2007 05:41 AM
total size of segments reported by Readelf/Objdump doesn't match symbol table sizes quartermaster Linux - Software 1 08-11-2006 01:31 PM
Declaring Folder Sizes for Apache makeshifttheory Ubuntu 3 06-04-2006 06:36 PM
How does one calculate folder sizes in linux GryphonTech Linux - Newbie 2 10-23-2004 03:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:47 AM.

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