[solved]How much can you fill a harddrive

Questions about the project and the distribution - obviously no support questions here please

[solved]How much can you fill a harddrive

Postby wyrdoak on Mon Oct 08, 2012 10:12 pm

The rule of thumb so as not for loose performance in Windows usually runs 50% for you system partition and 75% for a data partition.
Is there anything like this in Linux? Or can you just cram it full?
Last edited by wyrdoak on Tue Oct 09, 2012 10:33 am, edited 1 time in total.
-Dell Mini Netbook-Atom CPU-N270-1.60ghz; 16gbs mini ePCI PATA SSD
RAM- 1gbs-(Maya-Xfce) LInux 3.2.0.57-generic(i686)
SolydX (32bit)
User avatar
wyrdoak
Level 6
Level 6
 
Posts: 1313
Joined: Thu May 19, 2011 1:32 pm
Location: USA

Linux Mint is funded by ads and donations.
 

Re: How much can you fill a harddrive

Postby xenopeek on Tue Oct 09, 2012 3:27 am

You can cram it full, but note that /tmp and /var both need disk space for your operating system to function properly. Usually on a server setup you would have these directories on separate partitions. If you have these lumped together with / (which is recommended for desktop use), just be aware that you need some free space for temporary files, log files, and other such things.

If you are using default ext4 file system, no need to worry :D By default 5% of the file system is reserved for the operating system to use. So you can fill your file system up to 95%, and the operating system can continue to work because it has this reserved disk space where it can put any temporary files, log files, and such.

If you have separate data partitions (for /home for example), you can use tune2fs to decrease or remove the reserved block count. Because on a data partition you generally don't need disk space reserved for the operating system to use. It needs disk space on /tmp and /var.

You can view the settings of your ext4 file system with (here as example for /dev/sdb1 partition):
Code: Select all
sudo tune2fs -l /dev/sdb1

Or just the reserved block count:
Code: Select all
sudo tune2fs -l /dev/sdb1 | grep 'Reserved block count'

To remove the 5% reserved blocks for a data partition, do:
Code: Select all
sudo tune2fs -m 0 /dev/sdb1
User avatar
xenopeek
Level 21
Level 21
 
Posts: 15054
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: [solved]How much can you fill a harddrive

Postby wyrdoak on Tue Oct 09, 2012 10:40 am

Thanks for the info :D I've been bleeding off data from my home partition to keep it under 75%, although I back up data anyway, [learned when floppy's were the size of the laptop or larger :lol: ] now I don't have to watch space as close as I have.
-Dell Mini Netbook-Atom CPU-N270-1.60ghz; 16gbs mini ePCI PATA SSD
RAM- 1gbs-(Maya-Xfce) LInux 3.2.0.57-generic(i686)
SolydX (32bit)
User avatar
wyrdoak
Level 6
Level 6
 
Posts: 1313
Joined: Thu May 19, 2011 1:32 pm
Location: USA


Return to Non-technical Questions

Who is online

Users browsing this forum: No registered users and 3 guests