installing image of windows installation onto linux while keeping grub
My computer currently has just the default Kubuntu setup, meaning I installed it over my entire hard drive, there are no other partitions.
I also have a handy dandy image of a functioning Windows XP Pro installation sitting around. I'd like to add that image to the computer on an NTFS partition. I can do that using Ubuntu's partition manager and Norton Ghost, but how do I update GRUB so it's aware that there's another operating system that was added while it was asleep? Will I even encounter this problem?
I'll assume that the ntfs partition will not be the first partition on the drive, i.e., you will make the partition at the end, behind Linux.
After making the partition, and coping xp to it, edit /boot/grub/menu.lst (grub.conf on some distros).
Add something like this:
map (hd0,0) (hd0,1)
map (hd0,1) (hd0,0)
Here, I assume the partitions are hda1 and hda2, with xp on hda2. Windows will not boot unless it's on the first partition of the first drive. So, we tell it a little lie, that it's number one when it isn't. That what the map lines do, tell windows it on the first partition of the first drive.
That should be all that's required to add xp to the grub menu, and make it bootable (assuming the partition is flagged as bootable when you make it).
|All times are GMT -5. The time now is 09:02 PM.|