Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Install only Grub, again

  1. #1

    Default Install only Grub, again

    Hi there!
    I have installed openSuse 12.1 (64 bits) alongside Windows 7 succesfully, and the system was using Grub as bootloader.
    I needed to restore the MBR in order to install Service Pack 1 of Windows 7. So, now the system boots only Windows (without Grub).

    How can I install Grub again? (Only Grub.)
    I've tried to install it from openSuse installation DVD, but it seems to install all openSuse again. I want to install only Grub.

    Thank you,
    [Adrián E. Córdoba]

  2. #2
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    37,075
    Blog Entries
    16

    Default Re: Install only Grub, again

    Re-Install Grub Quickly with Parted Magic - Blogs - openSUSE Forums

    As suse live cd can be used instead of PMagic if you like
    My openSUSE 13.1 KDE Box
    My Articles
    Was I any help? If yes: Click the star below

  3. #3

    Default Re: Install only Grub, again

    Thank you, caf4926!
    The procedure work fine!
    [Adrián E. Córdoba]

  4. #4

    Default Re: Install only Grub, again

    If you were able to install the service pack on WIndows, Grub wasn't obviously installed in MBR before (otherwise the update would have failed). Installing Grub in MBR certainly solved your boot problem for now but also introduces a new one: you won't be able to install the next service pack on Windows without restoring Windows MBR first (How to use the Bootrec.exe tool in the Windows Recovery Environment to troubleshoot and repair startup issues in Windows).... unless Windows becomes tolerant and grubfriendly in the meantime, but it's unlikely. The solution here would have been to just reset the bootflag on the Grub partition and leave the MBR untouched.

  5. #5

    Default Re: Install only Grub, again

    Quote Originally Posted by please_try_again View Post
    The solution here would have been to just reset the bootflag on the Grub partition and leave the MBR untouched.
    What did you mean "reset the bootflag on the Grub partition"?
    Please, can you explain me how do you that?

    Thank you, in advance.
    [Adrián E. Córdoba]

  6. #6

    Default Re: Install only Grub, again

    Quote Originally Posted by aecordoba View Post
    What did you mean "reset the bootflag on the Grub partition"?
    Please, can you explain me how do you that?

    Thank you, in advance.
    Windows uses a generic MBR by default, not a boot manager such as Grub. openSUSE actually also uses a generic MBR, like Windows - and unlike all other Linux distros - and installs Grub in a partition boot sector rather than in MBR - always by default. This is generally speaking a bad idea - because Grub works better when installed in MBR (explaining why would be beyond the scope here) but this is a good thing from the Windows point of view. If you run fdisk on Linux

    Code:
    sudo /sbin/fdisk -l
    you will see one of the maximum 4 primary partitions (sda1-4) marked with a star. This is the active partition, the one which will be selected and booted by a generic MBR in the absence of a boot manager. Before you installed the service pack, the bootflag was set on a Linux primary or the extended partition, wherever the Grub bootloader was installed. Windows set it back on its partition. This is why you couldn't boot Linux anymore. Since you installed Grub in MBR, the bootflag doesn't matter now and so it solves the boot problem. However Windows might refuse to install further service packs.

    There are several ways to change the active partition: from Windows with diskpart (provided it's not the extended partition), from a Linux live CD with fdisk, sfdisk, gparted or from an openSUSE live CD if you install updategrub on the live system or download findgrub (http://forums.opensuse.org/english/o...ml#post2443550). Then you'll just have to type

    Code:
    sudo findgrub -a
    this command will find on which primary or extended partition on the first HDD the Grub boot loader is installed and activate this partition, which would reverse to the situation you had before installing Windows service pack.

    You don't need to worry now. Don't fix it if it works! If you can not install the next Windows service pack, you will know why. But maybe there won't be another service pack and Windows 7 is just perfect now. I wouldn't count on it though.

  7. #7
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    37,075
    Blog Entries
    16

    Default Re: Install only Grub, again

    Quote Originally Posted by aecordoba View Post
    Thank you, caf4926!
    The procedure work fine!
    excellent news
    My openSUSE 13.1 KDE Box
    My Articles
    Was I any help? If yes: Click the star below

  8. #8

    Default Re: Install only Grub, again

    Quote Originally Posted by caf4926 View Post
    excellent news
    Got an email from the daughter of a Nigerian diplomat? Won a free cruise?

  9. #9

    Default Re: Install only Grub, again

    @aecordoba

    More seriously, you might find this post interesting too: http://forums.opensuse.org/english/g...ml#post2455466

  10. #10

    Default Re: Install only Grub, again

    Thank you, please_try_again, for the detailed explanation!
    [Adrián E. Córdoba]

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •