Tuesday, April 23, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 1112  / 2 Years ago, sat, march 19, 2022, 6:41:20

While browsing the net about formatting my 1T hard drive as ext4, I read about people completely filling their drive and being unable to mount. How much can I fill it to safely? Even 95% wastes 50 GB! 99% seems too close as percentage. This is not a system drive just storage.


More From » hard-drive

 Answers
7

Ok, so the question is about filling up the filesystem, not about partitioning the drive. Two things come to mind:




  1. Accidentally filling up a filesystem should not cause total filesystem corruption. Filesystem code is written by the most skilled developers, tested for years before being included into the kernel and used as the default filesystem in a distribution. Ext4 is used on millions and millions of computers, some of which contain mission-critical data or highly loaded. It it exteremely unlikely that developers simply forgot to add a check for free space before writing data or that a major bug exist which routinely leads to filesystem corruption when the filesystem is full.


  2. By default, when an ext4 filesystem is created, a few percent of disk space is reserved for the superuser, so during the normal operation it is impossible to use up all disk space, unless you're logged in as root.




The latter does waste some considerable space on large drives (5% by default), so some people reduce this number on non-system drives.



In certain situations (repeatedly creating and deleting many files) a nearly-full filesystem may result in excessive fragmentation and some performance loss, however ext4 is better in this respect than ext3.


[#36116] Monday, March 21, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
afisird

Total Points: 193
Total Questions: 112
Total Answers: 111

Location: Angola
Member since Mon, Jul 12, 2021
3 Years ago
;