Edit Grub

Joe Hart j.hart at hccnet.nl
Thu Jun 29 07:25:30 UTC 2006


Richard E. Barmann wrote:
> I installed Dapper Dan 6.06 on my 80G drive (Master) then I installed 
> WindowsXP on my 20G drive (Slave) The master reads hda1/windows NTSF and the 
> Slave reads extended 3
> That is the opposite of what they should be. How can I remidy this?-- 
>   
There are three ways:

1) Physically change the postiton of the drives (by changing jumpers or 
different place on a cable-select.

2) Trick windows to think it's using the first drive (mentioned earlier 
in this thread) using map.

3) Start over.  Install Windows first, then install Kubuntu.  Kubuntu 
will see the windows and set the grub up like it should.  Unfortunately 
windows doesn't detect any other OS when it installs.

In case one or two, you WILL need to edit grub's menu.lst

It works like this:

/dev/hda1 = (hd0,0)
/dev/hda2 = (hd0,1)
/dev/hdb1 = (hd1,0)
/dev/hdb2 = (hd1,1)

Usually it is best to have Windows on the first partition of the first 
drive.  With Windows < NT it was a must.  Windows XP doesn't have to be 
there, and doesn't need to be fooled, so you can do something like this:

Drive 1:  IDE master 80 GB - Linux
Drive 2: IDE slave 20GB - Windows
---
title Linux
root (hd0,0)
kernel    /boot/vmlinuz root=/dev/hda1 ro quiet splash
initrd     /boot/initrd.img
boot

title Windows
root (hd1,0)
chainloader +1
---

It should work (although you do need to point to the right kernel for 
Linux, that line above is a dummy)








More information about the kubuntu-users mailing list