删除磁盘分区时保留给root用户的部分

磁盘分区,home一个单独分区第一次安装经验当时保留了5空间给root用户实际上root用户目录在/基本需要在home保留一部分空间给root所以必要这5%去掉

google一下发现用tune2fs调整这个reserved-blocks

sudo tune2fs -m 0 /dev/sda5

其中m参数指定是reserved-blocks大小百分比

man手册相关内容

-m reserved-blocks-percentage
Set the percentage of the filesystem which may only be allocated by privi-
leged processes. Reserving some number of filesystem blocks for use by
privileged processes is done to avoid filesystem fragmentation, and to
allow system daemons, such as syslogd(8), to continue to function cor-
rectly after non-privileged processes are prevented from writing to the
filesystem. Normally, the default percentage of reserved blocks is 5%.

如果你喜欢这篇日志的话,欢迎订阅我的RSS Feed!
本文来源于一阁Blog。版权所有,转载请确保已阅读该页面

0 Responses to “删除磁盘分区时保留给root用户的部分”


  1. No Comments
  1. 1 关于红联linux门户网站多次转载本博客文章并不注明出处的行为 - 一阁Blog - linux、智能手机、网络,所有我感兴趣的技术……

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="">

Quote selected text