Page 1 of 5 123 ... LastLast
Results 1 to 10 of 41

Thread: Failure installing OS 12.2 when grub2 is installed

  1. #1

    Default Failure installing OS 12.2 when grub2 is installed

    I have OS 11.4 running successfully. It has been a very solid distribution.

    I recently downloaded and burned OS 12.2 and then attempted to install it in its own partitions. I customized the installation into /boot, /, and /home partitions, as well as a swap partition. I also choose the boot loader to be grub2, which is the default, to be placed in the /boot partition since I already have a multi-boot product in my MBR.

    The installation started successfully, installing various packages while I watched the Details screen. But as soon as it attempted to install the grub2 package it just froze. It never continued and eventually I pressed the reset button on my computer. Thankfully nothing was lost in my hard disk partition setup, but this is really a disappointment that the installation of a major OS fails. It is not something I expected from the usually high quality programmers contributing to OpenSuse.

    Is it some known bug that the installation fails when installing grub2 ? I realize grub2 is new with OS, so I must think that something has been overlooked in it setup in 12.x.

    I could of course try again and specify that I want to use grub rather than grub2 as my boot loader, and perhaps then no attempt to install grub2 will be made and the installation will go on to completion. But I wanted to check here to see if anyone else has encountered this bug.

  2. #2
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,738
    Blog Entries
    20

    Default Re: Failure installing OS 12.2 when grub2 is installed

    You need to write grub to the MBR of the first HD (usually sda)
    You can do that with the DVD if SUSE is already installed
    http://forums.opensuse.org/content/1...vd-rescue.html

    There is also an option to use legacy grub in the install if you prefer
    Leap 15.1_KDE
    My Articles Was I any help? If yes: Click the star below

  3. #3

    Default Re: Failure installing OS 12.2 when grub2 is installed

    Quote Originally Posted by caf4926 View Post
    You need to write grub to the MBR of the first HD (usually sda)
    You can do that with the DVD if SUSE is already installed
    http://forums.opensuse.org/content/1...vd-rescue.html

    There is also an option to use legacy grub in the install if you prefer
    I do not need to write grub to the MBR. I already have a multi-boot program using the MBR. I wanted to install grub2 to the /boot partition. But that frze the install.

  4. #4
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,738
    Blog Entries
    20

    Default Re: Failure installing OS 12.2 when grub2 is installed

    You don't need a /boot
    Just write it to /
    then run the distro controlling the MBR and update the grub there
    Leap 15.1_KDE
    My Articles Was I any help? If yes: Click the star below

  5. #5
    Join Date
    Sep 2012
    Posts
    5,281

    Default Re: Failure installing OS 12.2 when grub2 is installed

    Quote Originally Posted by eldiener View Post
    But as soon as it attempted to install the grub2 package it just froze.
    Check if you have floppy controller enabled in BIOS. It seems to cause all sorts of trouble when probing for existing devices. If enabled, disable it and try once more.

    Also you could skip bootloader installation entirely and later directly load GRUB2 core.img from existing multi-boot product. This is deinitely possible with grub1.

  6. #6

    Default Re: Failure installing OS 12.2 when grub2 is installed

    Quote Originally Posted by eldiener View Post
    I do not need to write grub to the MBR. I already have a multi-boot program using the MBR. I wanted to install grub2 to the /boot partition. But that frze the install.
    Then follow the method in post #2 but use the --force option with grub2-install and the partition of your choice.

    Code:
    #  grub2-install --force /dev/sdaX
    You mention you have a multi-boot program. I assume you're multi-booting with other OSes. Any other Unix like (not Linux)? I'm asking because grub2 might fail to install if there are BSD (0xA5, 0xA6, 0xA9) primary partitions. If your multi-boot program (that you didn't name us) does something arbitrary to the partition table (such as hiding partitions, changing partition IDs) or you have BSD disklabels which lead grub2-probe nowhere, grub2 will indeed fail to install. And this is one out of several different reasons that could cause grub2 to fail to install - not just with openSUSE, but with any Linux distro.

  7. #7

    Default Re: Failure installing OS 12.2 when grub2 is installed

    Quote Originally Posted by arvidjaar View Post
    Check if you have floppy controller enabled in BIOS. It seems to cause all sorts of trouble when probing for existing devices. If enabled, disable it and try once more.

    Also you could skip bootloader installation entirely and later directly load GRUB2 core.img from existing multi-boot product. This is deinitely possible with grub1.
    I will try your suggestion with my floppy disk controller. But it was not during the probing for devices phase of the installation that it completely froze. It froze when it was installing packages, and most specifically when it was installing the grub2 package. It had not, AFAICS, yet attempted to initialize the /boot partition with grub2, unless of course it tries to do that as soon as the grub2 package is installed.

    I do not see any reason to skip the bootloader installation entirely unless it was really failing because of it. The multi-boot product, which is Acronis OSS, cannot install grub2 from a Linux installation but it can find Linux bootup code in a partition and boot into that partition's code.

    If nothing works I will try using grub instead of grub2 and see if that gets me past the freeze.

    I cannot help feeling that the Suse installation team has some sort of bug when the end-user chooses grub2 in the bootloader and also chooses to install grub2 to the installation's /boot partition as opposed to the MBR.

  8. #8

    Default Re: Failure installing OS 12.2 when grub2 is installed

    Quote Originally Posted by please_try_again View Post
    Then follow the method in post #2 but use the --force option with grub2-install and the partition of your choice.

    Code:
    #  grub2-install --force /dev/sdaX
    You mention you have a multi-boot program. I assume you're multi-booting with other OSes. Any other Unix like (not Linux)? I'm asking because grub2 might fail to install if there are BSD (0xA5, 0xA6, 0xA9) primary partitions. If your multi-boot program (that you didn't name us) does something arbitrary to the partition table (such as hiding partitions, changing partition IDs) or you have BSD disklabels which lead grub2-probe nowhere, grub2 will indeed fail to install. And this is one out of several different reasons that could cause grub2 to fail to install - not just with openSUSE, but with any Linux distro.
    The multi-boot program is Acronis OSS and it does hide partitons, which simply means that it changes the partition types on-the-fly. In that case what you say makes sense if it is true that grub2 will fail to install to a /boot partition in that case.

    But that really seems to me to be a major failing with grub2. Why would it fail to install to a /boot partition because some other partition totally unrelated to the current install has its partition type changed ? The actual partitions I am using in the install have totally valid MBR partition types ( 0x83 for the Linux partitions and 0x82 for the swap partition ).

  9. #9
    Join Date
    Sep 2012
    Posts
    5,281

    Default Re: Failure installing OS 12.2 when grub2 is installed

    Do you still have installation logs? They are located under /var/log/YaST2. Could you make them available? It is not the first report that GRUB2 installation does something wrong and I try to find a pattern.

  10. #10

    Default Re: Failure installing OS 12.2 when grub2 is installed

    Quote Originally Posted by eldiener View Post
    The multi-boot program is Acronis OSS and it does hide partitons, which simply means that it changes the partition types on-the-fly. In that case what you say makes sense if it is true that grub2 will fail to install to a /boot partition in that case.
    May I ask why you are hiding partitions? I actually happen to do the same thing "on the fly" with Legacy Grub. Actually I do worse, I rewrite partitions entries, so that the primary partitions have different offset and size depending on the operating system to boot. It allows me to "overlapp" BSD partitions in order to use different BSD disklabels. The purpose is to have the same BSD slices in all four BSD disklabels for data or other partitions to share between FreeBSD, NetBSD, openBSD and DragonFly BSD. I don't know how many people in the world do this. We might probably be 6 or 7. It has worked for years. Actually it still does, except that Linux (Grub2) doesn't install anymore on these machines. I think it is trying to be too clever, follow the BSD disklabels and gets confused because mine are 'unconventional' or simply gets confused with BSD disklabels in general. If I delete the partitions entries in the partition table (write 00 in each BSD primary partition 16 bytes entry), I can install any Linux which uses Grub2 without problems. Thus that's what I have to do to install Linux nowadays. Next I install my os-prober version, which supports UFS2 (unlike any other os-prober version which tries to mount these partitions read-only as UFS1 and fails) and I don't have problems. I wouldn't have "problems" with another os-prober version, just lots of errors. But I don't think the installation issue is related to os-prober. I think it is a grub2-probe issue. Your problem is probably totally different. However grub2 is very picky while scanning partitions, and you said that you're hiding partitions. If I would hide partitions by just changing their partition IDs, it wouldn't work. That's of course the first thing I tried - because changing a partition ID is easier than deleting and rewriting the entire partition entry.

    Quote Originally Posted by eldiener View Post
    But that really seems to me to be a major failing with grub2.
    I agree. I would like not to have to apply such tricks some day. I would suggest the Linux installation kernel doesn't have support for BSD disklabels (although I'm not 100% it does). That's nothing interesting it can do with that ... except completely confusing grub2-probe.

    Quote Originally Posted by eldiener View Post
    Why would it fail to install to a /boot partition because some other partition totally unrelated to the current install has its partition type changed ?
    It tries to be clever. I didn't have problems at the beginning (under Ubuntu, which has been using Grub2 for a couple years). It started with Grub2 version 1.99. I wrote a post here a long time ago, as I still couldn't explain what exactly happened.

    ----------------------------------------------

    * The disklabel (= the equivalent of the partition table) in each BSD is different and BSD disklabels are (more or less) incompatible with each other. The Linux kernel has support for the different BSD disklabels, which means that it is able to read these partition tables and create the device special files, which will allow you to mount BSD partitions (or slices) under Linux.

Page 1 of 5 123 ... 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
  •