Page 1 of 1

restore WinXP into another partition

Posted: Mon Jun 09, 2008 2:50 pm
by mamntc02
Hi all!!

I have a problem involving restore a partition image into other partition, saved using partimage.

That was I made: I format the whole HDD, then I created a little 10Gb NTFS partition (first partition, ie: sda1) where I installed WinXP.
Once installed, I ran an ubuntu LiveCD, to save an image of XP installation into a file using partimage. I tried to restore to check the image was successfully created, and it was.

Now, I'm trying to restore the image into another partition in same disk and there is the problem. My partitions are:

Code: Select all

Ordre (m per a obtenir ajuda): p

Disc /dev/sda: 250.0 GB, 250059350016 octets
255 heads, 63 sectors/track, 30401 cylinders
Units = cilindres of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000530f6

Dispositiu Arrenc.   Inici         Final    Blocs    Id  Sistema
/dev/sda1               1       22947   184321746    7  HPFS/NTFS
/dev/sda2   *       22948       25963    24226020    7  HPFS/NTFS
/dev/sda3           25964       27179     9767520   83  Linux
/dev/sda4           27180       30401    25880715    5  Estesa
/dev/sda5           27180       30218    24410736   83  Linux
/dev/sda6           30219       30401     1469916   82  Intercanvi Linux / Solaris
As you can see, I have two independent WinXP: if I load 1st WinXP, the second is hidden and viceversa. I hidde each partition from the other using grub.
Well, my problem is that I cannot load the partition 2. When I try to load, I can see WindowsXP logo, but then it tries to run 'chkdsk' application it tells me: 'autochk not found'. I've been looking through internet any answer and many posts tells: 'the partition is hidden'. I know this was not true. That's what I thought even I choose partition 2, Windows tries to load 1st partition. And that's it. Once I unhide 1st partition, loading from 2nd one, it loads!!! But as I thought it loads 1st partition, I don't know why.

I also tried to modify boot.ini file, as I show (instead of partition(2) it was partition(1)):

Code: Select all

[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" /fastdetect
But it doesn't work either.

I think, as I save the partition image from sda1, once restored (even into another partition) Windows tries to load partition 1. I want to know how modify this. I loaded from WinXP install CD to use restore utility: bootcfg, bootfix, etc... And it didn't work either.

PD: This is my grub config file: menu.lst

Code: Select all

title		Ubuntu 8.04, kernel 2.6.24-17-generic
unhide 		(hd0,0)
unhide		(hd0,1)
root		(hd0,2)
kernel		/boot/vmlinuz-2.6.24-17-generic root=UUID=1461763b-444e-4fb8-848d-545e5e4fc80a ro quiet splash
initrd		/boot/initrd.img-2.6.24-17-generic
quiet

title		Ubuntu 8.04, kernel 2.6.24-17-generic (recovery mode)
root		(hd0,2)
kernel		/boot/vmlinuz-2.6.24-17-generic root=UUID=1461763b-444e-4fb8-848d-545e5e4fc80a ro single
initrd		/boot/initrd.img-2.6.24-17-generic

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title		Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title		Microsoft Windows XP Professional
hide		(hd0,1)
unhide		(hd0,0)
root		(hd0,0)
savedefault
makeactive
chainloader	+1


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda2
title		Microsoft Windows XP Professional (Proves)
hide		(hd0,0)
unhide		(hd0,1)
root		(hd0,1)
savedefault
makeactive
chainloader	+1
I hope you understand what I'm triyng to do. And sorry for my english ;)

Thanks a lot.