From 54755ac44469894ac42cb119f7355cefdd5ac89c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Fri, 5 Sep 2014 22:42:14 +0200 Subject: [PATCH] Avoid 100MB reserved space in private ext4 partition The ext4 reserved space is necessary for root partitions, but in the private.img data partition, it is wasted space (accessible only to root processes), which means losing 100 MB of the default 2GB. From mkfs.ext4 man page: "-m reserved-blocks-percentage Specify the percentage of the filesystem blocks reserved for the super-user." ... "The default percentage is 5%." --- vm-systemd/misc-post.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/vm-systemd/misc-post.sh b/vm-systemd/misc-post.sh index e718d02..f0a9f1b 100755 --- a/vm-systemd/misc-post.sh +++ b/vm-systemd/misc-post.sh @@ -14,6 +14,7 @@ INTERFACE=eth0 /usr/lib/qubes/setup-ip if [ -e /dev/xvdb -a ! -e /etc/this-is-dvm ] ; then resize2fs /dev/xvdb 2> /dev/null || echo "'resize2fs /dev/xvdb' failed" + tune2fs -m 0 /dev/xvdb mount /rw if ! [ -d /rw/home ] ; then