Announcement

Collapse
No announcement yet.

Grub Configuration

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Grub Configuration

    Hey All,

    Sorry to introduce myself with a problem but I could really use your help.

    I installed Kubuntu and subsequently XP. Which of course screwed up Grub, which I have restored using the Kubuntu DVD.

    My problem starts though trying to build an entry in Grub to boot XP. I think the biggest issue I am having is finding the right partition to boot because XP is not the first partition on the drive.

    Here is what is displayed when I run
    Code:
    sudo fdisk -l /dev/sda
    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 35874 288157873+ 83 Linux
    /dev/sda2 35875 38913 24410767+ 5 Extended
    /dev/sda3 36483 38913 19526976 7 HPFS/NTFS
    /dev/sda5 35875 36482 4883697 82 Linux swap / Solaris

    And here's the entry from menu.lst in /boot/grub/

    title Windows XP
    root (hd0,3)
    makeactive
    chainloader +1

    I believe XP's partition to be the 3rd one on the drive but looking at the Linux entries in the menu.lst they look like this;

    title Ubuntu 9.04, kernel 2.6.28-13-generic
    uuid 287827f1-9b9d-4afb-9f97-98308d0f25f8
    kernel /boot/vmlinuz-2.6.28-13-generic root=UUID=287827f1-9b9d-4afb-9f97-98308d0f25f8 ro quiet splash
    initrd /boot/initrd.img-2.6.28-13-generic
    quiet

    I am not very familiar with Grub configuration so any/all help is much appreciated..

    Cheers,
    Pix

    #2
    Re: Grub Configuration

    I grub, you need to know that partitions begin with 0 being the first, 1 being the second, etc. So to Grub, your windows partition is located on (hd0,2) not on (hd0,3).

    Comment


      #3
      Re: Grub Configuration

      Duuuh cheers Detonate been puzzling me for a little while now..

      Comment

      Working...
      X