summaryrefslogtreecommitdiff
path: root/notes/qemu_ntfs_resize.mdwn
diff options
context:
space:
mode:
Diffstat (limited to 'notes/qemu_ntfs_resize.mdwn')
-rw-r--r--notes/qemu_ntfs_resize.mdwn16
1 files changed, 16 insertions, 0 deletions
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.