LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices



Reply
 
Search this Thread
Old 10-26-2006, 01:46 AM   #1
lupusyonderboy1
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
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,805

Rep: Reputation: 324Reputation: 324Reputation: 324Reputation: 324
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)
savedefault
makeactive
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).
 
  


Reply


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


All times are GMT -5. The time now is 07:53 PM.

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