<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>disk Archives - ITEC4B</title>
	<atom:link href="https://itec4b.com/tag/disk/feed/" rel="self" type="application/rss+xml" />
	<link>https://itec4b.com/tag/disk/</link>
	<description>Information Technology Expert Consulting</description>
	<lastBuildDate>Sun, 22 Jan 2023 11:36:29 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.3</generator>
	<item>
		<title>Linux Disk Space: ext filesystem reserved blocks</title>
		<link>https://itec4b.com/linux-disk-space-ext-filesystem-reserved-blocks/</link>
		
		<dc:creator><![CDATA[author]]></dc:creator>
		<pubDate>Wed, 18 Jan 2023 13:59:46 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[disk]]></category>
		<category><![CDATA[ext]]></category>
		<category><![CDATA[filesystem]]></category>
		<category><![CDATA[linux]]></category>
		<guid isPermaLink="false">https://itec4b.com/?p=163</guid>

					<description><![CDATA[With an ext filesystem 5% of disk space is by default reserved for privileged processes/root user. This allows the system to keep functioning even if non-privileged users fill up all the space available to them.Important tasks and system processes will still be able to work and write to the drive. NEVER set it to 0 &#8230; <p class="link-more"><a href="https://itec4b.com/linux-disk-space-ext-filesystem-reserved-blocks/" class="more-link">Read more<span class="screen-reader-text"> "Linux Disk Space: ext filesystem reserved blocks"</span></a></p>]]></description>
										<content:encoded><![CDATA[
<p>With an ext filesystem 5% of disk space is by default reserved for privileged processes/root user.</p>



<p>This allows the system to keep functioning even if non-privileged users fill up all the space available to them.<br>Important tasks and system processes will still be able to work and write to the drive.</p>



<p>NEVER set it to 0 for a system partition<br>tune2fs reservation changes happen immediately</p>



<pre class="wp-block-code"><code># tune2fs -m &lt;reserved-blocks-percentage> /dev/&lt;device-name></code></pre>



<p>Set the percentage of the filesystem which may only be allocated by privileged processes.<br>Reserving some number of filesystem blocks for use by privileged processes is done to avoid filesystem fragmentation, and to allow system daemons (root-owned daemons) , such as syslogd(8), to continue to function correctly after non-privileged processes are prevented from writing to the filesystem.<br><br>The default percentage of reserved blocks is 5%<br><br>See also: mkfs.ext4 with option -m (reserved-blocks-percentage) to create an ext4 filesystem</p>



<p>For a large ext filesystem used for system partition you may reduce it to 1% of disk space:</p>



<pre class="wp-block-code"><code># tune2fs -m 1 /dev/&lt;device-name></code></pre>



<p>For an ext filesystem that only acts as storage you may disable it:</p>



<pre class="wp-block-code"><code># tune2fs -m 0 /dev/&lt;device-name>
# tune2fs -r 0 /dev/&lt;device-name></code></pre>



<p>Set the number of reserved filesystem blocks directly:</p>



<pre class="wp-block-code"><code># tune2fs -r &lt;reserved-blocks-count></code></pre>



<p>Example for 3GB of reserved filesystem 4K blocks:<br>1GB = 1024^3 bytes = 1073741824 bytes<br><br>3GB = 3 x 1073741824 = 3221225472 bytes<br>3GB = 3221225472 bytes / 4096 bytes = 786432 blocks</p>



<pre class="wp-block-code"><code># tune2fs -r 786432</code></pre>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
