A blog about skating and cycling, or vice versa

Partitioning is such sweet sorrow#

Sun, 13 Apr 2008 23:11:39 +0000

A disk read error occurred
Press Ctrl+Alt+Del to restart

If you - as I did this afternoon - have a qemu image containing an NTFS filesystem that you want to enlargen considerably (in my case, from 2GB to ~40), please note that XP Pro will not boot the result unless the number of disk heads in the partition table matches that in the NTFS BIOS Parameter Block (more on that here ) and additionally, IME, both are set to 255. gparted and fdisk both seem to default to 64, which doesn't work.

The basic plan is in the page I linked to and involves qemu-img, fdisk, ntfsresize and hexedit in approxaimately that order. Some other notes: