Configuring Grub in a Dual boot Win xp/Suse9 computer
Most of us started with windows and then decided to test out other operating systems eg Linux. Installed Linux and on starting the computer, Grub kicks in and we're able to boot Linux but not windows.
To boot windows, you need to edit "/boot/grub/menu.lst "
Firstly a few basics :-
a. always install Grub, in the boot sector of the root partition of Linux
Never install Grub in the master boot record (MBR) 'cos when you uninstall Linux, you 'll not be able to get back to booting windows. The MBR is trashed.
b. Grub sees the ist hard disk as "hd0"
c. Example, 4 primary partitions, Linux sees 1st partition as 1,2,3,4 respectively, but Grub sees it as 0,1,2,3.
d. If the 4th primary partition is an Extended partition with 2 Logical partitions , then the 1st logical partition is labelled "hd5" and 2nd log. partn. as "hd6"
Note even if there're only 3 primary partitions, the 1st Logical partn. is still labelled "hd5"
Example a hard disk with win xp in 1st partition, Suse9 in 2nd partition
Make sure your partitions are labelled correctly.
Open up YaST2 Control Center, click "Partitioner"
Look for /dev/hda1 x Gb Win95 Fat32 LBA /WxP
/dev/hda2 x Gb Linux native /
hda where " a" denotes 1st hard disk, but Grub sees as "hd0"
hda1 where "1" is 1st primary partition on 1st hard disk, but Grub sees as
x - partition size, Win95 Fat32 LBA is the file type, / WxP - the mount point
Take note of these settings.
Open up YaST2 Control Center, click "Boot Loader Configuration"
Your Boot Loader Type should be GRUB
Boot Loader Location should be /dev/hda2
Available Sections should be Linux(default),windows WxP
Click "Edit Configurating Files "
Under "File Name" bring up /boot/grub/menu.lst (down arrow)
Look for this line.
### Don't change this comment-YaST2 identifier;Original name:windows Wxp ###
title windows WxP
Make sure the windows settings are correct, (change it if necessary)
press "OK", then press "Finish"
Hope this is useful to someone.
Re: Cofiguring Grub in a Dual boot Win xp/Suse9 computer
this is not entirely true. I believe that you can use fdisk to restore the MBR to boot windows. Correct me if i'm wrong, but this is my belief.
Originally Posted by pchin