From 11a8320cab60964d90ad23c0a0b9ddc66b4b1ecd Mon Sep 17 00:00:00 2001 From: Joe Rayhawk Date: Tue, 16 Nov 2010 17:12:09 -0800 Subject: New notes: qemu ntfs resizing --- notes/qemu_ntfs_resize.mdwn | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 notes/qemu_ntfs_resize.mdwn diff --git a/notes/qemu_ntfs_resize.mdwn b/notes/qemu_ntfs_resize.mdwn new file mode 100644 index 0000000..d49efda --- /dev/null +++ b/notes/qemu_ntfs_resize.mdwn @@ -0,0 +1,16 @@ +The normal approach to resizing an ntfs partition (losetup cfdisk, +losetup -o32256 ntfsresize) will not work as you would expect because losetup +and qemu, in the absense of real hardware, will invent disagreeing drive +geometries which Windows' boot sector depends upon to start. It is conceptually +simplest to find a means of running (c|s|)fdisk and ntfsresize from inside qemu +itself. + +http://gparted.sourceforge.net/download.php + +If you are using a qcow2 image, you probably need to + +* qemu-img old.qcow2 new.raw +* truncate -s 100GiB new.raw # or what have you +* qemu-img new.raw old.qcow2 + +It is not clear why qcow2 images do not support resizing. -- cgit v1.2.3