Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-26-2006, 01:46 AM   #1
LQ Newbie
Registered: Sep 2006
Posts: 12

Rep: Reputation: 0
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?
Old 10-26-2006, 07:29 AM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
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:

title Windows
root (hd0,1)
map (hd0,0) (hd0,1)
map (hd0,1) (hd0,0)
chainloader +1

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).


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can somebody help me with installing Kubuntu on a Gateway and keeping Windows XP too? supertunaman Linux - Newbie 17 09-03-2006 09:01 PM
installing Linux but keeping Windows 98 otp_ggc Linux - Newbie 3 06-16-2002 08:52 AM
Installing Linux while keeping Windows Matt Geary Linux - Software 5 11-21-2000 02:15 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:03 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration