Editing Grub

Joe Hart j.hart at hccnet.nl
Fri Jun 2 18:58:11 UTC 2006


Richard E. Barmann wrote:
> On Friday 02 June 2006 12:02 pm, Tez wrote:
>   
>> Richard E. Barmann wrote:
>>     
>>> I am using kubuntu and KDE 3.5.2. I have this on a 20G hard drive. Is it
>>> possible and practical (and easy enough) that I could put Windows on my
>>> 10G drive that is empty, I have a company that I do some work for that
>>> needs there reports done on a form that would be better in Windows.
>>>       
>> It is possible, you'll just need to add a couple of lines to your
>> /boot/grub/menu.lst if update-grub didn't detect it.
>> Something like:
>> title               Windows
>> root               (hd1,0)
>> chainloader   +1
>>
>>
>> Terence Simpson
>>     
> My /boot/grub/menu1st has the linux kernels loaded --"hd 0.0" and the 20 g 
> disk is called in "disks dev/hda1" and the 10G disk is called"dev/hdb1" I 
> just want to pass this by you so I do not mess up. Also if I install 
> WindowsXP do I do that after editing Grub? If I start the WindowsXP cd will 
> it give me a chance to choose the 10G drive ? Sorry for all the questions but 
> I want to be sure before I proceed.
>
>   
No!  Windows XP will trash your MBR (Master Boot Record).  I would 
advise you to disconnect your HD with Linux on it before you install 
Windows.  You may be able to just disable it in your BIOS if it can do 
that.  Install windows then connect your Linux HD back up, then edit the 
menu.lst.  If you already installed Windows, then you're stuck to using 
only Windows until you use a rescue disk to fix your MBR, which you can 
do with Grub by:

#cd /boot/grub
#grub
grub>root (hd0,0)
grub>setup (hd0)
grub>quit

the grub> are the prompts from the grub command.

your menu.lst should point windows to hd(0,1) since it is hdb1

good luck






More information about the kubuntu-users mailing list