another 1 from thicko' me about GRUB

Discussion in 'Linux, BSD and Other OS's' started by donkey42, Dec 3, 2006.

  1. donkey42

    donkey42 plank

    Likes Received:
    9
    Trophy Points:
    38
    right guys, GRUB is misbehaving (cos i don't know what i'm doing)

    is there a way to give boot control to a previous installation ?

    i know by default the last *nux install has boot control (if you install the bootloader too)

    but say i did have Kubuntu with Kubuntu's GRUB as the bootloader, then i installed mandy (i think mandy install LILO by default) so then i would be using LILO, but i want to use Kubuntu's GRUB, how do i do that ?
     
  2. zeus

    zeus out of date

    Likes Received:
    0
    Trophy Points:
    36
    You need to put grub on a floppy disk. Boot from the floppy disk then set your settings.....
    Ive seen on the ubuntu forums step by step instructions for making the floppy.
    The LFS book shows how simple it is to configure grub. There is a lot of other stuff in the menu.lst file with a ubuntu install. I dont think any of it is necessary.
    8.4. Making the LFS System Bootable

    Once you have booted up tell grub where the Linux installation is which contains your menu.lst

    Code:
    root (hd0,1)
    for hda2

    Then tell grub which harddrive you want to install grub...

    Code:
    setup (hd0)
    for hda

    then you must type quit, or even reboot. Ive killed a partition because ive not done this last bit.


    You could always make a backup of the MBR, I know WD do a MBR backup tool.
     
  3. donkey42

    donkey42 plank

    Likes Received:
    9
    Trophy Points:
    38
    yeah, i remember having an MBR backup, when i was using XP
    found this, looks easy[ot]well it was written for Win users[/ot]
     
  4. Addis

    Addis The King

    Likes Received:
    91
    Trophy Points:
    48
    If you can boot up your Kubuntu installation, then do
    Code:
    sudo grub-install /dev/hxx
    where hxx is the hard drive you want to install to. If you want to install to the MBR, just specify hxx, if you want to install it to a partition root rather than MBR specify partition like hxx2.

    To do a MBR backup, its very simple. However, you should take great care when doing the following:
    Code:
    sudo dd if=/dev/hda of=/root/myMBRbackup.bin bs=512 count=1
    You need to replace /dev/hda with your device and /root/myMBRbackup.bin with the path/filename of the backup file. You can put this onto a pen drive, and then using a LiveCD do this to restore the backup:
    Code:
    sudo dd if=/media/pen_drive/myMBRbackup.bin of=/dev/hda bs=512 count=1
     

Share This Page