← Back to team overview

registry team mailing list archive

[Bug 586175] Re: Windows XP/2003 doesn't boot

 

Andreas,

The program that created the disk image seems confused, but it worked for creating a VM for FC11.
Windows install seems to run fine, until wanting to boot from the drive it created.
I don't know what creates the drive image and geometry, but it is broken.

I think this is what I used to create the VM, but I have messed around
with so many configurations and methods, I'm not sure what is what
anymore.

virt-install --connect qemu:///system -n w7 -r 2048 --vcpus=2 \
--disk path=/vm/w7.img,size=20,sparse=false,format=qcow2 \
-c /vm/w7cd.iso --vnc --noautoconsole \
--os-type windows --os-variant win7 --accelerate --network=bridge:br0 --hvm

How many thousands of people have struggled with this and also got nowhere?
It just looks like the virt-install developers have not tasted their own dogfood!

LVM is supposed to be easy - just select vm image and boot, but the more
I read about VMs, kvm, qemu, virtualbox, virsh etc, the more confused I get on how they
relate to each other.

testdisk reports this:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Disk /dev/loop0 - 21 GB / 20 GiB - CHS 41943040 1 1         (wtf ??)

     Partition                  Start        End    Size in sectors
 1 * HPFS - NTFS                 2048     206847     204800 [System Reserved]
 2 P HPFS - NTFS               206848   41940991   41734144


Select 1:
Disk /dev/loop0 - 21 GB / 20 GiB - CHS 41943040 1 1
     Partition                  Start        End    Size in sectors
 1 * HPFS - NTFS                 2048     206847     204800 [System Reserved]

Boot sector
Warning: Incorrect number of heads/cylinder 16 (NTFS) != 1 (HD)
Warning: Incorrect number of sectors per track 63 (NTFS) != 1 (HD)
Status: OK

Backup boot sector
Warning: Incorrect number of heads/cylinder 16 (NTFS) != 1 (HD)
Warning: Incorrect number of sectors per track 63 (NTFS) != 1 (HD)
Status: OK

Sectors are identical.

A valid NTFS Boot sector must be present in order to access
any data; even if the partition is not bootable.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Rebuild BS:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Disk /dev/loop0 - 21 GB / 20 GiB - CHS 41943040 1 1
     Partition                  Start        End    Size in sectors
 1 * HPFS - NTFS                 2048     206847     204800 [System Reserved]

filesystem size           204800 204800
sectors_per_cluster       8 8
mft_lcn                   8533 8533
mftmirr_lcn               2 2
clusters_per_mft_record   -10 -10
clusters_per_index_record 1 1
Extrapolated boot sector and current boot sector are different.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Q

Select 2:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Disk /dev/loop0 - 21 GB / 20 GiB - CHS 41943040 1 1
     Partition                  Start        End    Size in sectors
 2 P HPFS - NTFS               206848   41940991   41734144

Boot sector
Warning: Incorrect number of heads/cylinder 16 (NTFS) != 1 (HD)
Warning: Incorrect number of sectors per track 63 (NTFS) != 1 (HD)
Status: OK

Backup boot sector
Warning: Incorrect number of heads/cylinder 16 (NTFS) != 1 (HD)
Warning: Incorrect number of sectors per track 63 (NTFS) != 1 (HD)
Status: OK

Sectors are identical.

A valid NTFS Boot sector must be present in order to access
any data; even if the partition is not bootable.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Rebuild BS:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Disk /dev/loop0 - 21 GB / 20 GiB - CHS 41943040 1 1
     Partition                  Start        End    Size in sectors
 2 P HPFS - NTFS               206848   41940991   41734144

filesystem size           41734144 41734144
sectors_per_cluster       8 8
mft_lcn                   786432 786432
mftmirr_lcn               2 2
clusters_per_mft_record   -10 -10
clusters_per_index_record 1 1
Extrapolated boot sector and current boot sector are different.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

It looks a mess.

-- 
Windows XP/2003 doesn't boot
https://bugs.launchpad.net/bugs/586175
You received this bug notification because you are a member of Registry
Administrators, which is the registrant for Debian.