You are not logged in.

#1 2011-06-09 13:45:24

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Getting Windows XP out of VirtualBox and on to the HDD (dual boot)

Installed Windows XP in VirtualBox and now I'd like to somehow get it on the HDD, on the second partition.

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1              63    20964824    10482381   83  Linux
/dev/sdb2   *    20964825    62910539    20972857+   7  HPFS/NTFS/exFAT
/dev/sdb3        62910540   976751999   456920730   83  Linux

10 GB Arch Linux (ext4)
20 GB Windows XP (NTFS)
430 GB Storage (ext4)

As you can see, no extended partitions, all primary.


So, back to VirtualBox...

Arch Linux i686 Host OS.

Windows XP guest.
Arch Linux guest.

Long story short, I extracted the Windows XP guest files to the 20 GB NTFS partition using the "cp -a" command.

boot.ini wrote:

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(2)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect /noguiboot

GRUB2 grub.cfg wrote:

# (2) Windows
menuentry "Windows XP" {
insmod ntfs
set root=(hd0,1)
search --no-floppy --fs-uuid --set 7B126CD40A319G24
drivemap -s (hd0) ${root}
chainloader +1
}

Now the problem is that XP freezes on a BSOD telling me to CHKDSK /F the partition.

What do I do ?

Last edited by DSpider (2011-06-09 13:48:38)


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#2 2011-06-09 13:52:28

stryder
Member
Registered: 2009-02-28
Posts: 500

Re: Getting Windows XP out of VirtualBox and on to the HDD (dual boot)

I think you need to install windows as it is quite specific to your hardware which probably different from the hardware virtualbox is emulating.

Offline

#3 2011-06-09 14:06:08

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Getting Windows XP out of VirtualBox and on to the HDD (dual boot)

Weird. This command worked ok for Arch. Even after my old computer died and I had to replace the motherboard, CPU, RAM (but kept the case and HDD). It copies every file it can find, and in the order it finds them on the HDD. Very useful tool.

Can't I just clone the virtual XP partition and paste it over the 20 GB physical partition ? I mean sure, I would gladly install Windows XP from a USB stick or something but the problem is Windows XP only likes the first primary partition of the first HDD, and that one is taken (by Arch Linux). It won't let me install anywhere else.


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#4 2011-06-09 14:58:32

mandog
Member
From: Peru
Registered: 2008-09-17
Posts: 218

Re: Getting Windows XP out of VirtualBox and on to the HDD (dual boot)

Yes it will allow you to install on any partition you want it to.


I'm dyslexic Please do not complain about puntuation or spelling and remember most dyslexic people have above average iq.

Offline

#5 2011-06-09 16:18:56

stryder
Member
Registered: 2009-02-28
Posts: 500

Re: Getting Windows XP out of VirtualBox and on to the HDD (dual boot)

Arch discovers hardware on boot and loads the proper modules so even when you copy arch from one machine to another only minor adjustments are needed. Not so windows.

Offline

Board footer

Powered by FluxBB