[Bug 586175] Re: Windows XP/2003 doesn't boot
Hi Andy When i look at your w7 partition table output, then there seems to be a problem with start/end cylinders. Your first partitions last cylinder is 13, but also the start cylinder of your second partition is 13. two partitions should not share the same cylinder/sector! Something seems to be messed up. I would create a loop device and then use a deep scan with testdisk on that loop device. May be it's possible to correct the wrong entrys in the partition table. Cheers Andreas -- Windows XP/2003 doesn't boot https://bugs.launchpad.net/bugs/586175 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to qemu-kvm in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 586175] Re: Windows XP/2003 doesn't boot
Hi Andy When i look at your w7 partition table output, then there seems to be a problem with start/end cylinders. Your first partitions last cylinder is 13, but also the start cylinder of your second partition is 13. two partitions should not share the same cylinder/sector! Something seems to be messed up. I would create a loop device and then use a deep scan with testdisk on that loop device. May be it's possible to correct the wrong entrys in the partition table. Cheers Andreas -- Windows XP/2003 doesn't boot https://bugs.launchpad.net/bugs/586175 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 586175] Re: Windows XP/2003 doesn't boot
I run into the same problem, but the workaround regarding editing the number of heads in the ntfs partition boot sector did it for me. Little Howto: Asume: A raw complete harddisc image within a bootable NTFS partition with XP or 2k3 on it Incident: when using these image with kvm based qemu, the system wan't boot anymore solution: 1) set up the whole discimage as a loop device - losetup /dev/loop0 /path/to/my/diskimage.raw 2) let kpartx create drive mappings for all partitions within the loop device - kpartx -a /dev/loop0 3) you need to know on which partition your NTFS partition resides - fdisk -l /dev/loop0 4) use the right partition mapping with hex-edit (eg. partition 1) - hexedit /dev/mapper/loop0p1 5) look on hex position 0x1a, for the count of heads NTFS asumes - in hexedit type enter and then 1A 6) change the value to 0xFF - in hexedit type FF 7) save and exit hexedit - press Ctrl+X to end 8) remove the partition mappings - kpartx -d /dev/loop0 9) remove loop device - losetup -d /dev/loop0 Hope that helps Cheers Andreas -- Windows XP/2003 doesn't boot https://bugs.launchpad.net/bugs/586175 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to qemu-kvm in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 586175] Re: Windows XP/2003 doesn't boot
I run into the same problem, but the workaround regarding editing the number of heads in the ntfs partition boot sector did it for me. Little Howto: Asume: A raw complete harddisc image within a bootable NTFS partition with XP or 2k3 on it Incident: when using these image with kvm based qemu, the system wan't boot anymore solution: 1) set up the whole discimage as a loop device - losetup /dev/loop0 /path/to/my/diskimage.raw 2) let kpartx create drive mappings for all partitions within the loop device - kpartx -a /dev/loop0 3) you need to know on which partition your NTFS partition resides - fdisk -l /dev/loop0 4) use the right partition mapping with hex-edit (eg. partition 1) - hexedit /dev/mapper/loop0p1 5) look on hex position 0x1a, for the count of heads NTFS asumes - in hexedit type enter and then 1A 6) change the value to 0xFF - in hexedit type FF 7) save and exit hexedit - press Ctrl+X to end 8) remove the partition mappings - kpartx -d /dev/loop0 9) remove loop device - losetup -d /dev/loop0 Hope that helps Cheers Andreas -- Windows XP/2003 doesn't boot https://bugs.launchpad.net/bugs/586175 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs