Announcement

Collapse
No announcement yet.

Install bootloader (GRUB) to a partition

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

    Install bootloader (GRUB) to a partition

    I've installed Kubuntu 8.04 from scratch having GRUB installed to MBR. Now I want to reinstall it to the root partition (/dev/sda3) to use ntldr as a primary bootloader (I've got WinXP o /dev/sda1). In other distributions (like Mandriva 2008) it used to be as simple as grub-install /dev/sda3, but with Kubuntu I get the following output:
    Code:
    Searching for GRUB installation directory ... found: /boot/grub
    
    [ Minimal BASH-like line editing is supported. For
    the first word, TAB lists possible command
    completions. Anywhere else TAB lists the possible
    completions of a device/filename. ]
    grub> root (hd0,2)
    grub> setup --stage2=/boot/grub/stage2 --prefix=/boot/grub (hd0,2)
    Checking if "/boot/grub/stage1" exists... yes
    Checking if "/boot/grub/stage2" exists... yes
    Checking if "/boot/grub/reiserfs_stage1_5" exists... yes
    Running "embed /boot/grub/reiserfs_stage1_5 (hd0,2)"... 19 sectors are embedded.
    succeeded
    Running "install --stage2=/boot/grub/stage2 /boot/grub/stage1 (hd0,2) (hd0,2)1+19 p (hd0,2)/boot/grub/stage2 /boot/grub/menu.lst"... failed
    
    Error 6: Mismatched or corrupt version of stage1/stage2
    grub> quit
    What do I do wrong?

    #2
    Re: Install bootloader (GRUB) to a partition

    A Google search on your error message revealed many other examples, but not "the solution". For example:

    http://ubuntuforums.org/showthread.php?t=333708

    It appears that this error only occurs when attempting to install grub to a non-MBR partition, and usually after the original Linux installation, similar to your situation.

    Depending on your needs and preferences, you could opt for a dual-boot setup, leaving grub on the MBR and using chainloading to boot Windows. Or else you could reinstall (Windows first, Kubuntu second) and during the Kubuntu installation, point the installer to the Kubuntu partition for placement of Grub.

    Here's good guidance on all things Grub, including dual booting:

    http://kubuntuforums.net/forums/inde...opic=3081671.0

    Comment


      #3
      Re: Install bootloader (GRUB) to a partition

      What do you know - I tried it one more time and it worked! Still can't get, what was wrong at previous attempts...

      Comment

      Working...
      X