From fb107c13c9d3fb96302266221238ce40a6c8d97f Mon Sep 17 00:00:00 2001 From: Brennan Novak Date: Tue, 20 Oct 2015 21:28:45 -0700 Subject: [PATCH] fixed markdown on resize-root-disk-image --- en/configuration/resize-root-disk-image.md | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/en/configuration/resize-root-disk-image.md b/en/configuration/resize-root-disk-image.md index 07c33802..66a4e862 100644 --- a/en/configuration/resize-root-disk-image.md +++ b/en/configuration/resize-root-disk-image.md @@ -7,10 +7,10 @@ redirect_from: - /wiki/ResizeRootDiskImage/ --- -Resizing \`root.img\` Size +Resizing `root.img` Size -------------------------- -The safest way to increase the size of \`root.img\` is to do it for a standalone +The safest way to increase the size of `root.img` is to do it for a standalone VM (qvm-create --standalone) - which has its own root filesystem (copy of template, instead of smart sharing). But it should also work for a normal template (as long as changes in the @@ -18,15 +18,17 @@ template between reboots didn't exceed 10G). Replace the size and the path (name) of the template as wished and run your modified command: -~~~ + +``` truncate -s 20G /var/lib/qubes/vm-templates/fedora-21/root.img -~~~ +``` Then start your template or standalone VM and run: -~~~ + +``` sudo resize2fs /dev/mapper/dmroot -~~~ +``` after that shutdown the template. -Then you should have extended \`root.img\` in your VM/template +Then you should have extended `root.img` in your VM/template