Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I upgraded my ubuntu and that resulted in its grub loader being used. I have a triboot of windows, ubuntu and suse. I prefer the suse bootloader which I was using before the ubuntu updates. I would like to restore the suse boot loader from yast. How do i do it?

share|improve this question
add comment

2 Answers 2

You'll want to boot into SuSE, and run (as root) grub-install /dev/sda (replace /dev/sda with the boot device on your computer. You'll want to update your /boot/grub/menu.lst in SuSE to include an entry for Ubuntu.

share|improve this answer
    
that command fails. –  Vaolter Feb 4 '11 at 10:33
    
How does it fail? Are you running /usr/sbin/grub-install? Are you installing it to the right drive? –  jsbillings Feb 4 '11 at 14:01
add comment

The generic procedure to restore Grub is

  1. Boot into something Linux (either live CD or on disk, but must have Grub commands available) -- I don't know about other *nix
  2. Mount the partition that holds the OS with Grub to be fixed, be sure to mount the separated boot partition if you have it
  3. Issue the following command, remember to replace /mnt/suse and /dev/sda with your mount point and device
    grub-setup -d /mnt/suse /dev/sda

Alternatively, after step 2, you can chroot to /mnt/suse and from there execute

grub-install /dev/sda

I find the Ubuntu help page very informative at this.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.