LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-13-2006, 10:53 AM   #1
[KIA]aze
Member
 
Registered: Jun 2006
Distribution: Debian, Ubuntu, Windows XP
Posts: 146

Rep: Reputation: 16
Filesize seems to increase when moving from ext3 to FAT32


I didn't know I should post this in hardware or software, so I posted it here:

I am currently trying to backup all my files on an external USB hard disk.
The external HD is in FAT32 format, while my PC HD is in ext3.

Before moving files, I did a "df -h", which showed that I still had 2 GB free on the external HD.
I moved 1GB from my local HD to the external disk.

But strangely, there wasn't enough space left on the disk.
Maybe I moved a little bit more then 1GB, but it was certainly less than the diskspace shown as free on the external HD.

Do files take up more space in FAT32 than in ext3?
Does it have something to do with "sparse" files I heard about?
Or could it be folder links?

And how can I optimize the space taken up on FAT32 if that's the case?
Because I plan on creating an extra FAT32 partition on my PC for sharing files between Windows and Linux.

Last edited by [KIA]aze; 12-13-2006 at 11:10 AM.
 
Old 12-13-2006, 11:56 AM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
The minimum file size on a FAT32 filesystem is 32K. On EXT2/3, the minimum file size is 1K, 2K or 4K. As a result, if you have many small files on an EXT2/3 filesystem they can "grow"up to 32X their original size when copied to FAT32.

FAT32 is very simplistic and limited as a filesystem. Why not use EXT2/3? You can even access it from Windows.
 
Old 12-13-2006, 12:14 PM   #3
[KIA]aze
Member
 
Registered: Jun 2006
Distribution: Debian, Ubuntu, Windows XP
Posts: 146

Original Poster
Rep: Reputation: 16
Thanks for the answer. I did indeed have a lot of small files.

But can I also write to the ext partition from windows with Explore2fs?

And even if it's possible, I don't think it will be as I imagine it.
Basically, I want to create 1 partition for each OS (+ Linux swap), and one data partition.
For example, I want to be able to save data to the data partition from Windows or Linux programs directly.

Here's what I had in mind:
-5GB ext ->Linux
-5GB NTFS->Windows
-512MB ->swap
-rest FAT32 (or other) -> data+progs
 
Old 12-13-2006, 12:23 PM   #4
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
If you want to read/write the partition as if it were a normal Windows partition, then you need to use a filesystem driver, like Ext2IFS. You install this driver in Windows, and you can read/write an EXT2 partition as native.
 
Old 12-14-2006, 09:57 PM   #5
carl0ski
Member
 
Registered: Sep 2004
Location: Melbourne, Victoria Australia
Distribution: Support those that support you :)
Posts: 872
Blog Entries: 12

Rep: Reputation: 30
Quote:
Originally Posted by macemoneta
If you want to read/write the partition as if it were a normal Windows partition, then you need to use a filesystem driver, like Ext2IFS. You install this driver in Windows, and you can read/write an EXT2 partition as native.
I use(d) Ext2IFS for a fair while on Windows XP and 2003
and it as fast as NTFS in windows
and works with Linux obviously

Get this you can even use windows defragmenter

well it loads anyway because windows said it did not need defragmenting.

Well gave windows 3 days on it and Ext3 fragmented

I guess that proves the Filesystem isnot the cause of fragmentation.
 
Old 12-14-2006, 11:25 PM   #6
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
To get around this type of issues (wasted space), zip your directory first. i.e from commandline
Code:
tar -cvzf mydir.tar.gz mydirectory
This will create a zipped archive in the current directory of the directory mydirectory.
 
  


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
RSYNC between FAT32 and ext3 mfajer Linux - Software 1 05-23-2005 07:08 AM
Increase EXT3 Filesystem size in a LVM? jadupl2 Red Hat 3 11-14-2004 08:40 PM
ext3 vs fat32 waynevnc Debian 1 07-06-2004 05:53 PM
Ext3 -> Fat32 The Gate Keeper Linux - Newbie 1 02-19-2003 08:35 PM
ext3 shown as fat32 bluecadet Linux - General 1 01-04-2002 08:44 AM


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