Page 1 of 1

[solved]How much can you fill a harddrive

Posted: Mon Oct 08, 2012 10:12 pm
by wyrdoak
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?

Re: How much can you fill a harddrive

Posted: Tue Oct 09, 2012 3:27 am
by xenopeek
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

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

Posted: Tue Oct 09, 2012 10:40 am
by wyrdoak
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.