[solved]How much can you fill a harddrive

Questions about the project and the distribution - obviously no support questions here please
Forum rules
Do not post support questions here. Before you post read the forum rules. Topics in this forum are automatically closed 6 months after creation.
Locked
wyrdoak

[solved]How much can you fill a harddrive

Post 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?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
xenopeek
Level 25
Level 25
Posts: 29597
Joined: Wed Jul 06, 2011 3:58 am

Re: How much can you fill a harddrive

Post 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
Image
wyrdoak

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

Post 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.
Locked

Return to “Non-technical Questions”