Announcement

Collapse
No announcement yet.

Grub related issues

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

    Grub related issues

    Hello,

    I was dual booting Win 2K and Gutsy and everything was working fine. However, for some reason, I had to reinstall Win 2K. No changes were made at all to the Linux partition. After the reinstall was complete, as expected, Windows destroyed my grub screen. Searching on the net, I found and used the following commands to restore grub:

    Code:
    find /boot/grub/stage1
    root (hd0,1)
    
    setup (hd0)
    After doing this, I did get my original grub menu back. When I choose the Windows option, the system boots correctly. However when I select the Ubuntu option, grub returns an error :

    Code:
    Error 15: Could not find file
    Can anyone point me how to get over this? I booted off the 7.10 Linux CD and mounted the Linux partition from the terminal, and I can verify that the files are still there. Here is my disk setup as reported by installer:

    /dev/hda1 ntfs C:\windows partition
    /dev/hda5 win32 D: partition for data
    /dev/hda6 swap partition
    /dev/hda3 ext3 /home partition
    /dev/hda4 ext3 / with ubuntu files

    The menu.lst file from /boot/grub shows

    title 7.10 Ubuntu Linux
    root(hd0, 2)
    kernel /boot/vmlinuz-2.6.22-14-generic

    title MS Windows
    root(hd0, 0)

    I can verify that the relevant /boot/vmlinuz file does exist on /dev/hda4

    Any tips greatly appreciated. I dont want to reinstall Kubuntu unless absolutely necessary


    #2
    Re: Grub related issues

    HOW TO: GRUB Methods - Toolkit
    Windows no longer obstructs my view.
    Using Kubuntu Linux since March 23, 2007.
    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

    Comment


      #3
      Re: Grub related issues

      Well, this is easy, except for one detail: Where in the world are your GRUB files!
      I'm assuming you did not set up a separate, dedicated GRUB partition or /boot partition. That is, you just have Windows on the first partition sda1 = (hd0,0) and Kubuntu on some other partition.

      Your "find" statement, suggests Kubuntu is on (hd0,1):
      find /boot/grub/stage1
      root (hd0,1)

      Note (hd0,1) = hda2 (or sda2)

      But that doesn't show up in what you posted here:
      /dev/hda1 ntfs C:\windows partition
      /dev/hda5 win32 D: partition for data
      /dev/hda6 swap partition
      /dev/hda3 ext3 /home partition
      /dev/hda4 ext3 / with ubuntu files

      And then you said this:

      title 7.10 Ubuntu Linux
      root(hd0, 2)
      kernel /boot/vmlinuz-2.6.22-14-generic
      (>>> BTW, you do also have an initrd statement here, right?)
      (>>> BTW, root (hd0,2) should have a space after the word "root.")

      which suggests Kubuntu is on hda3 = (hd0,2).

      And then you said
      "I can verify that the relevant /boot/vmlinuz file does exist on /dev/hda4"
      which suggests (hd0,3).

      If Kubuntu and the GRUB files are on (hd0,y),
      and if you use the Live CD,
      open K > System > Konsole. type
      sudo grub,
      then
      grub> root (hd0,y)
      grub> setup (hd0)
      grub> quit

      That should do it.
      An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

      Comment


        #4
        Re: Grub related issues

        Thanks for the replies... I think I cleared this up. The grub men.lst file had the device incorrectly, I have the files on /dev/hda4 so it should be (hd0, 3), instead it was (hd0, 2). No idea why. Once I changed it , it started up.

        Thanks again.

        Comment

        Working...
        X