LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-15-2005, 10:51 AM   #1
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 522

Rep: Reputation: 31
scp from ext2 to ext3


Hi!

I made a backup with scp from an ext2 to an ext3. In the ext2 the whole data is 391MB but in the ext3 (a usb external hard drive) it is 497MB!
Did something go wrong or is it related to the different fileīs system?

Thanks.

XpucTo
 
Old 12-15-2005, 11:29 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
Hi,

This could be explained by a different blocksize for ext2 and ext3 (ext3 having a bigger blocksize). It's not something to worry about, it works as designed. Due to the bigger blocksize the ext3 fs uses more space, this will especially show if a lot of small files are stored.

Hope this clears things up a bit.
 
Old 12-15-2005, 11:41 AM   #3
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 522

Original Poster
Rep: Reputation: 31
Thanks for your answer.

Itī s a bit of a problem because it makes huge difference of space use! For bigger Backups (gigas) how are you then supposed to plan things?
 
Old 12-15-2005, 12:17 PM   #4
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 522

Original Poster
Rep: Reputation: 31
Something must be wrong actually.

When I do du -h in another directory with ext2, I get 760K. When I do du -h in the same backuped (scp -r) directory in ext3 on an external usb hard drive, I get 120M!

Can anyone explain it to me?
 
Old 12-15-2005, 12:21 PM   #5
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 522

Original Poster
Rep: Reputation: 31
Ok. Hier it is:
When I do
du -h /home/user/public_html/rpad/R/
I get 104 MB.
When I do
du -h /home/user/public_html/rpad/
I only get 624K

Why?
 
Old 12-15-2005, 12:59 PM   #6
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
Hi again,

The R directory (home/user/public_html/rpad/R/) is probably a mounted partition.

Could you post the output of this command:

du -sh /home/user/public_html/rpad/*

and

df -h

About the blocksize difference:

'Normally' the blocksize difference doesn't have that big an effect on the total size. On most modern HD's the blocksize is 4K and most files are bigger then that, so most blocks are 100% used/filled. But if you have a lot(!) of small files (say 1k) the effect will be noticable (every 1k file takes up 4k space [1 block]).
 
  


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
ext2 | ext3 bruse Linux - Newbie 3 03-03-2005 09:10 AM
ext2 to ext3? alaios Linux - General 1 07-09-2004 11:05 AM
Ext2 or Ext3? Eidi Linux From Scratch 3 11-27-2003 10:21 AM
ext2 and ext3 jperensky Linux - General 3 11-21-2002 03:21 PM
ext2 ext3 and others safrout Linux - Hardware 2 05-01-2002 07:02 PM


All times are GMT -5. The time now is 05:13 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration