qubes-doc/ResizeDiskImage.md
IX4 SVS 17c6c94ff9 ResizeDiskImage changed
FIxed minor typos, made HVM disk image & Windows instructions a bit more verbose
2013-10-04 10:47:53 +00:00

1.2 KiB

layout title permalink
wiki ResizeDiskImage /wiki/ResizeDiskImage/

Resizing Disk Image

There are several disk images which can be easily extended. But pay attention to the overall consumed space of your sparse disk images.

Private disk image

The private disk image of a AppVM can be grown with qubes-grow-private:

qvm-grow-private <vm-name> <size>

HVM disk image

In this example we will grow the disk image of an HVM to 30GB.

First, stop/shutdown the HVM.

Then, from a Dom0 terminal (in KDE: System Tools -> Terminal Emulator) do the following:

cd /var/lib/qubes/appvms/<yourHVM>/
ls -lh root.img  (<--verify current size of disk image)
truncate -s 30GB root.img
ls -lh root.img  (<--verify new size of disk image)

The partition table and file-system must be adjusted after this change:

Windows 7

  1. Click Start
  2. type "diskmgmt.msc" - this takes you to Disk Management
  3. Right-click on your existing volume, select "Extend Volume..."
  4. Click through the wizard.

No reboot required.

FreeBSD

gpart recover ada0
sysctl kern.geom.debugflags=0x10
gpart resize -i index ada0
zpool online -e poolname ada0