Jump to content

Grub


thebrookster
 Share

Recommended Posts

I am attempting to add my Windows XP installation to Grub. I have attempted to add it using the relevant wixard in mcc, however when I tried to boot into Windows it just told me that it was not a bootable disk. Having researched this online, I have become even more confused, as everything I have found goes on about chainloaders, which I am fairly certain that I have never used before when faced with a similar problem. The gist of my system is that I have Mandriva installed on my Primary Master HDD, I have a Primary Slave HDD which contains only files, and I have Windows installed onto my SATA drive on partition sda1. (I have two disc drives on the Secondary IDE controller.) What code do I need to enter into menu.lst to boot XP (which is an NTFS partition).

 

Any advice/help given will be much appreciated,

 

Phil

 

P.S Grub is installed onto the MBR of the Primary Master HDD

Link to comment
Share on other sites

You can try this one, it works for me change hd0,0 to your set up (probably (hd1,0), you can check in /boot/grub/device.map which is which )

 

title windows

root (hd0,0)

chainloader +1

 

if it doesn't work you might give a command to switch the active partition or something like that, I can't remember :unsure:

 

edit: add this after the root command:

 

map (hd0) (hd1)

map (hd1) (hd0)

 

you might need to change hd1 to the drive with the windows partition on it, check your device.map

Edited by ffi
Link to comment
Share on other sites

to use ffi's suggestion you'll need to directly edit your /etc/grub.conf file with your favorite text editor, as root.

 

if you don't understand let us know and we'll try to explain it better.

Link to comment
Share on other sites

I always use this entry for Windows in grub:

 

title Windows XP
rootnoverify (hd0,0)
makeactive
chainloader +1

 

but there can be variations depending on where Windows is loaded, and what disk it's no to how the rootnoverify works, as well as the remapping.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...