Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am not a newbie... more an average Linux user. But there is one thing that has me pretty much stumped for an explanation. I can't account for where all my disk space is. I have an Acer Aspire laptop with a 40Gbyte hard drive. Here is my partitioning scheme:
/dev/hda1 = 384.37MB Linux Swap
/dev/hda2 = 32.23GB ReiserFS w/ Ubuntu Linux
/dev/hda3 = 4.66GB ReiserFS w/ Linux Mint (Testing partition)
This adds up to 37.27GB which leaves 2.73GB gone in thin air. Gparted does not show any unused space. I understand that the manufacturers probably exagerated with the 40GB spec... but still 2.73GB!
And it doesn't end there. Gparted shows that hda2, my Ubuntu partition has 4.43GB free space with 27.79GB used. this adds up to the 32.23GB for hda2. But when I run Nautilus as root (sudo), select all files and folders in "/" , and get their Properties to see exactly how much space *everything* occupies... I get contents totaling 25.4GB! (with some contents unreadable... i don't know what root can't read but...)
So that's another 2.39GB vanished... plus the 2.73.. makes 5.12GB! That's more than 12% of my hard drive! What's going on here? How can I reclaim my hard disk space?
No, I think that's correct. As a rule of thumb, you should deduct 7% from the volume as indicated by the manufacturer. 40GB - 7% = 37.2GB.
In addition, you tend to lose more space by formatting. File systems such as ext3 (reiser, too, I guess) reserve about 5-7% for root tasks; that is space which can't be used for anything else.
Distribution: Dabble, but latest used are Fedora 13 and Ubuntu 10.4.1
Posts: 425
Rep:
Quote:
Originally Posted by librano
Hi all!
I am not a newbie... more an average Linux user. But there is one thing that has me pretty much stumped for an explanation. I can't account for where all my disk space is. I have an Acer Aspire laptop with a 40Gbyte hard drive. Here is my partitioning scheme:
/dev/hda1 = 384.37MB Linux Swap
/dev/hda2 = 32.23GB ReiserFS w/ Ubuntu Linux
/dev/hda3 = 4.66GB ReiserFS w/ Linux Mint (Testing partition)
This adds up to 37.27GB which leaves 2.73GB gone in thin air. Gparted does not show any unused space. I understand that the manufacturers probably exagerated with the 40GB spec... but still 2.73GB!
And it doesn't end there. Gparted shows that hda2, my Ubuntu partition has 4.43GB free space with 27.79GB used. this adds up to the 32.23GB for hda2. But when I run Nautilus as root (sudo), select all files and folders in "/" , and get their Properties to see exactly how much space *everything* occupies... I get contents totaling 25.4GB! (with some contents unreadable... i don't know what root can't read but...)
So that's another 2.39GB vanished... plus the 2.73.. makes 5.12GB! That's more than 12% of my hard drive! What's going on here? How can I reclaim my hard disk space?
Thanks in advance.
lib.
------------------
Every file system creates overhead -- space taken up in order to lay out the structure of the file system itself. Your overhead loss is about right for ReiserFS from what I've been told.
NTFS (Windows) takes five to ten percent of each partition, FAT likewise, ditto EXT2 and 3.
A big part of the reason is that journaled file systems (NTFS, EXT3)take up space for the journal.
My boot partition set up under Mandriva Free 2006 was set by me at 50 megabytes. Overhead takes 5 meg (10 percent) right off the bat, and my free space percentages bear that out.
This all boils down to, as most things do, our federal government. Somewhere, a while ago, they decided to change what a MB or a GB was, to make things 'easier' for everyone to understand in advertising and what not.
No longer was a KB 1024 Bytes, it is 1000 Bytes. No longer was a MB 1048576 bytes, it is 1000000 Bytes. And lo and behind, lo longer is a GB equal to 1,073,741,824 bytes, it is now just simply 1,000,000,000 Bytes.
So: Take the "40GB" advertised drive size (40,000,000,000 Bytes), divide it by a true GB, and you get...37.25 GB. I think that pretty much solves the mystery of the missing disk space.
thanks for the replies... journalised file system... win some, lose some i guess... and as for the 40,000,000,000 bytes... what a rip off, don't you think...
And it gets worse when you look at larger drives. I recently bought a 160GB drive and split it into two 80GB FAT32 partition. After formatting, while the partitions are still empty, I ran df -h on each and the result was 0KB used and 75GB free.
Hmm... 75x2=150, but I bought 160. Wait a sec - 150x1048576=1.57GB. Too bad I didn't get 160x1048576=1.67GB. Good thing I stopped believing every dotted i and crossed t of advertisements. I've known for a long time that they play games with numbers.
I can't complain too much. I got it on sale for $50 with instant savings. Actually, the SATA version was on sale, but I picked up the PATA version. Lucky for me OfficeMax employees don't know the difference. When it rang up full price I said "It's in the ad for $50". She looked it up and got the manager, who also checked the ad, to do the override.
thanks for the replies... journalised file system... win some, lose some i guess... and as for the 40,000,000,000 bytes... what a rip off, don't you think...
Not if everyone is using the same definitions....
AFAIK, all drives are spec'ed the same way--thus allowing fair comparisons.
This all boils down to, as most things do, our federal government. Somewhere, a while ago, they decided to change what a MB or a GB was, to make things 'easier' for everyone to understand in advertising and what not.
I think it is more than any one government. There are international standards for units and such and "giga" is defined as 1 billion------"kilo" is 1000, etc.
The only group who EVER thought that kilo meant 1024 was the computer crowd. Remember, this is the same bunch that thinks Windows is an operating system.....
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.