From e352164673c7c8b0fd62fcb231d66d4611049db3 Mon Sep 17 00:00:00 2001 From: Jeepler Date: Fri, 18 Sep 2015 23:46:58 +0200 Subject: [PATCH] added a page ResizeRootDiskImage.md and removed the external link --- ResizeRootDiskImage.md | 29 +++++++++++++++++++++++++++++ UserDoc.md | 7 ++----- 2 files changed, 31 insertions(+), 5 deletions(-) create mode 100644 ResizeRootDiskImage.md diff --git a/ResizeRootDiskImage.md b/ResizeRootDiskImage.md new file mode 100644 index 00000000..7f434708 --- /dev/null +++ b/ResizeRootDiskImage.md @@ -0,0 +1,29 @@ +--- +layout: doc +title: ResizeRootDiskImage +permalink: /doc/ResizeRootDiskImage/ +redirect_from: /wiki/ResizeRootDiskImage/ +--- + +### Resizing \`root.img\` Size + +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 +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 diff --git a/UserDoc.md b/UserDoc.md index 297bbe66..bed52081 100644 --- a/UserDoc.md +++ b/UserDoc.md @@ -57,9 +57,8 @@ Qubes User Documentation 3. [Upgrading the Fedora 20 Template](/doc/FedoraTemplateUpgrade20/) 4. [Templates: Fedora - minimal](/doc/Templates/FedoraMinimal/) 5. [Templates: Debian](/doc/Templates/Debian/) - 6. External Links - 1. [Extending \`root.img\` Size](https://groups.google.com/group/qubes-devel/msg/9d1ac581236ca9b4) - + 6. [Extending \`root.img\` Size](/doc/ResizeRootDiskImage/) + 6. **DispVMs** 1. [Disposable VMs](/doc/DisposableVms/) 2. [DispVM Customization](/doc/UserDoc/DispVMCustomization/) @@ -102,5 +101,3 @@ Qubes User Documentation 1. [Installing on system with new AMD GPU (missing firmware problem)](https://groups.google.com/group/qubes-devel/browse_thread/thread/e27a57b0eda62f76) 2. [Solving problems with Macbook Air 2012](https://groups.google.com/group/qubes-devel/browse_thread/thread/b8b0d819d2a4fc39/d50a72449107ab21#8a9268c09d105e69) 3. [Booting with GRUB2 and GPT](https://groups.google.com/group/qubes-devel/browse_thread/thread/e4ac093cabd37d2b/d5090c20d92c4128#d5090c20d92c4128) - -