grub2 dual boot

Asked by JG

I followed http://ubuntuforums.org/showthread.php?t=275728 to install on two hard drives, with ubunto in the master position, however grub2 is different than the instructions in this post with 9.10. I have XP in boot partition (2nd) on 2nd disk. I ran grub2-update to attempt to automatically update the configuration, but while grub2 gives me a menu with XP, it doesn't work.

I also have two sets of ubunto options I assume do to a failed install which I repeated.

How do I make the drive swap as per the thread with grub2 and how do I get rid of the duplicated entries?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu grub2 Edit question
Assignee:
No assignee Edit question
Solved by:
JG
Solved:
Last query:
Last reply:
Revision history for this message
JG (jeffgio) said :
#1

Here's the excerpt from .cfg

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Professional (on /dev/sdb2)" {
 drivemap -s (hd0) ${root}
 chainloader +1
}
### END /etc/grub.d/30_os-prober ###

I assume I need to edit the 30_os-prober file to control the text? It appears that root is not set

Should I remove the first kernal files to eliminate the extra boot options, by then repeating update-grub?

Revision history for this message
JG (jeffgio) said :
#2

After some research I found that this works

 drivemap (hd0) (hd1)
 drivemap (hd1) (hd0)
 set root=(hd0)
 chainloader (hd1,2)+1

Do I need the set root line?

Revision history for this message
JG (jeffgio) said :
#3

solved