Live Chat & Podcast at 1:00PM Eastern on Sunday!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Linux and Unix
Tag Cloud
access acer asus bios bsod computer crash desktop dns driver drivers error ethernet excel freeze gaming graphics hard drive hardware hdmi internet laptop malware memory monitor motherboard network printer problem ram registry repair router slow software sound trojan ubuntu 11.10 uninstall usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
EXT3 gives me less total capacity

Reply  
Thread Tools
DiGiTY's Avatar
Member with 322 posts.
 
Join Date: Oct 2006
15-Sep-2008, 03:27 AM #1
EXT3 gives me less total capacity
My 1 TB RAID drive was FAT32 and had 931 GB total capacity. I re-formatted it as EXT3 and I only have 870 GB total capacity. why the difference? Is this normal?
tech.jk's Avatar
Computer Specs
Member with 208 posts.
 
Join Date: Aug 2007
Location: Melbourne, Australia
Experience: I void warranties.
15-Sep-2008, 05:59 AM #2
ummmmmmmmmmm... did you partition the drive?
lotuseclat79's Avatar
Distinguished Member with 21,345 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
15-Sep-2008, 09:46 AM #3
Hi DiGiTY,

As root, issue the command: fdisk -l
and post it here (it basicly will list the contents of the partition tables on all of your disks) - it will tell you a lot both before and after you reformat. In this case, to make a comparison, you might need to reformat as fat32, issue fdisk -l, and then reformat as ext3, issue fdisk -l in order make the comparison between the two formats - but, I doubt you will want to do that.

-- Tom
__________________
The independence created by philosophical insight is - in my opinion - the mark of distinction
between a mere artisan or specialist and a real seeker after truth. - Einstein 1944
Imagination is more important than knowledge. - Einstein
DotHQ's Avatar
Member with 449 posts.
 
Join Date: May 2008
Location: Ohio USA
Experience: Advanced
15-Sep-2008, 10:33 AM #4
For comparison sake I did the fdisk -l on a Red Hat system that I have a 4.1 TB power vault attached. The 4.1 TB turned into 3.8 TB (ext3) of usable space once formatted.
lotuseclat79's Avatar
Distinguished Member with 21,345 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
15-Sep-2008, 12:01 PM #5
Hi DotHQ,

Thanks for the data. Every file system is encumbered with inodes and metadata that control how it functions in the OS environment. That is the difference between having a total capacity (4.1TB), and a useable capcity (3.8TB) - without it, one would not be able to find their files!

-- Tom
__________________
The independence created by philosophical insight is - in my opinion - the mark of distinction
between a mere artisan or specialist and a real seeker after truth. - Einstein 1944
Imagination is more important than knowledge. - Einstein
DiGiTY's Avatar
Member with 322 posts.
 
Join Date: Oct 2006
15-Sep-2008, 02:32 PM #6
i didn't re-format the drive in question (sdb1) back to FAT32, but I do have another drive that is the clone (sda1) of the drive in question when it was FAT32:

Code:
ubuntu@ubuntu:~$ sudo fdisk -l

Disk /dev/sda: 1000.1 GB, 1000144371712 bytes
255 heads, 63 sectors/track, 121593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x52aa52aa

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1      121593   976695741    c  W95 FAT32 (LBA)

Disk /dev/sdb: 1000.2 GB, 1000213577728 bytes
255 heads, 63 sectors/track, 121602 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0004ef61

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1      121602   976768033+  83  Linux
ubuntu@ubuntu:~$
does this help?
DiGiTY's Avatar
Member with 322 posts.
 
Join Date: Oct 2006
15-Sep-2008, 02:41 PM #7
okay, this is weird... i just copied some files over (~400 GB) from the FAT32 drive to the EXT3 drive and NOW the total capacity has jumped from 870 GB to 917 GB for the EXT3!!

what's going on here?
Attached Thumbnails
EXT3 gives me less total capacity-1tb_raid_drives_properties-01.jpg  

Last edited by DiGiTY; 15-Sep-2008 at 02:49 PM..
lotuseclat79's Avatar
Distinguished Member with 21,345 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
15-Sep-2008, 06:41 PM #8
Total capacity is determined when you format the drive, so your capacity has not changed as you can see by the output of the fdisk -l command.

Hard disks are formatted at a low-level with 512 byte sectors. File systems are formatted at a higher level to map to the low level sectors on the hard drive where the data really resides as mapped by the file system inodes. Take the number of cylinders as formatted and multiply by the figure 8225280 bytes, e.g.
8225280 bytes * 121593
or
8225280 bytes * 121602

The way you compute 1TB is not 1,000,000,000,000 bytes, but with KB block sizes that are 1024 bytes * 1024 bytes for 1MB * 1024 bytes for 1GB * 1024 bytes for 1 TB or a total of 1099511627776 bytes total in 1TB.

-- Tom
__________________
The independence created by philosophical insight is - in my opinion - the mark of distinction
between a mere artisan or specialist and a real seeker after truth. - Einstein 1944
Imagination is more important than knowledge. - Einstein
DiGiTY's Avatar
Member with 322 posts.
 
Join Date: Oct 2006
16-Sep-2008, 07:24 PM #9
so basically usable capacity of a EXT3 formatted 1 TB drive is normally 870 GB and 931 GB on a FAT32 formatted 1 TB drive... why the discrepancy (sorry, if it feels like I'm repeating myself, I don't think my original question was answered)?

did I format it wrong (i used GParted)?
lotuseclat79's Avatar
Distinguished Member with 21,345 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
17-Sep-2008, 01:22 PM #10
Hi DiGiTY,

No, the total capacity of each disk is the same. There are more cylinders in the Linux formatted disk than the FAT32 formatted disk according to your fdisk -l output. (See the blocks columns).

There is a difference in how each file system formats the disk - i.e. usable capacity vs. total capacity (which is the same). The metadata and inode structures for each file system is the difference - i.e. different file systems have different designs where some are more reliable than others - and, I do not believe that the FAT32 file system is journaled, whereas, the ext3 file system includes a journal.

-- Tom
__________________
The independence created by philosophical insight is - in my opinion - the mark of distinction
between a mere artisan or specialist and a real seeker after truth. - Einstein 1944
Imagination is more important than knowledge. - Einstein
DiGiTY's Avatar
Member with 322 posts.
 
Join Date: Oct 2006
17-Sep-2008, 05:56 PM #11
okay so journaled is taking up extra GBs?

I formatted the drive from the command line (mkfs.ext3 -m 1 -j -L mindgrapes) and this time I get 924 GB of usable capacity. i guess that's okay, I guess I can live with 7 less GB of space

...though space is an issue right now... could I use different switches/options to get even more usable space (I just can't get over the fact that FAT32 is using all of the available 931 GB and something more advanced like EXT3 can't)?
lotuseclat79's Avatar
Distinguished Member with 21,345 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
18-Sep-2008, 11:50 AM #12
A journaled file system such as ext3 guarantees a greater amount of data reliability than a file system without one (fat32).

Everything is a tradeoff - do you want greater reliability with regard to the data kept in your file system, or if reliability does not matter - go back to using fat32.

Neither file system can guarantee the hard drive won't fail, which is a good reason for backing up your hard drives.

-- Tom
__________________
The independence created by philosophical insight is - in my opinion - the mark of distinction
between a mere artisan or specialist and a real seeker after truth. - Einstein 1944
Imagination is more important than knowledge. - Einstein
kaska's Avatar
Junior Member with 3 posts.
 
Join Date: Sep 2008
21-Sep-2008, 02:23 AM #13
Hi, I also got a new 1tb hd in an enclosure. And format it to ext3. but the thing is i get even less space than diggity. this is what i get when i type in df:
/dev/sdb1 917G 37G 834G What I want to know is why is the total usable space only 871g and not 917. What happened to the rest of the 46g?
lotuseclat79's Avatar
Distinguished Member with 21,345 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
21-Sep-2008, 10:18 AM #14
Issue the command as a regular user from Linux:
$ sudo fdisk -l

What does that tell you about the partitions on the hard drive?

-- Tom
kaska's Avatar
Junior Member with 3 posts.
 
Join Date: Sep 2008
21-Sep-2008, 12:56 PM #15
tom,

I get this:
Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 1 121601 976760001 83 Linux
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 08:46 PM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.