Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 25

Thread: openSUSE 12.2 grub2 problem

  1. #11

    Default Re: openSUSE 12.2 grub2 problem

    Quote Originally Posted by chiefpete View Post
    Code:
     baird-suse:~ # grub2-probe --version
    grub2-probe (GRUB2) 2.00
    Code:
    baird-suse:~ # lsb_release -a
    LSB Version:    n/a
    Distributor ID: SUSE LINUX
    Description:    openSUSE 12.2 (x86_64)
    Release:        12.2
    Codename:       Mantis
    Is that possible that noone (or nothing) updated the boot loader. You seem to have Grub2 (1.99) boot loader signature in your bootsectors(s) but Grub2 (2.00) installed on your hard disk. Either findgrub is wrong by reading the signature - which would mean that the latest Grub2 (2.00) has changed, because on a 12.2 system with Grub2 (2.00), this is what I get (in blue):

    Code:
     # findgrub -c
    Find Grub Version 4.4.1 - Written for openSUSE Forums
    
     - reading MBR on disk /dev/sda                       ... --> Grub2 (1.99) found in sda MBR     => sda6   0x83 using core (Ubuntu)
     - searching partition /dev/sda1      (FAT16)         ... --> Windows NT/2K/XP Loader found in /dev/sda1
    
     - skipping partition  /dev/sda2      (FreeBSD)      
     - skipping partition  /dev/sda3      (FreeBSD)      
     - reading bootsector  /dev/sda4   *  (Extended)      ... --> Legacy GRUB  found in /dev/sda4   => sda9   0x83 at offset 280911943 (INVALID)
                                                                                                    => inode: 1312923  Path: (hd0)/usr/share/YaST2/modules/DNS.ybc
     - skipping partition  /dev/sda5      (swap)         
     - reading bootsector  /dev/sda6      (LINUX)         ...
     - reading bootsector  /dev/sda7      (LINUX)         ...
     - reading bootsector  /dev/sda8      (LINUX)         ...
     - reading bootsector  /dev/sda9      (LINUX)         ... --> Grub2 (2.00) found in /dev/sda9   => sda9   0x83 at offset 243364159 (openSUSE)
                                                                                                    => inode: 131350   Path: (hd0)/boot/grub2/i386-pc/core.img
     - reading bootsector  /dev/sda10     (LINUX)         ...
     - reading bootsector  /dev/sda11     (LINUX)         ...
     - reading bootsector  /dev/sda12     (LINUX)         ... --> Grub2 (1.99) found in /dev/sda12  => sda12  0x83 at offset 332203738 (Fedora)
                                                                                                    => inode: 1442458  Path: (hd0)/boot/grub2/core.img
     - reading bootsector  /dev/sda13     (LINUX)         ...
     - reading bootsector  /dev/sda14     (LINUX)         ...
     - reading bootsector  /dev/sda15     (LINUX)         ...
    
     - reading MBR on disk /dev/sdb                       ... --> Legacy GRUB  found in sdb MBR     => sda11  0x83 using stage1.5 (openSUSE)
     - searching partition /dev/sdb1      (FAT16)         ... --> Windows NT/2K/XP Loader found in /dev/sdb1
    
     - skipping partition  /dev/sdb2      (FreeBSD)      
     - skipping partition  /dev/sdb3      (FreeBSD)      
     - reading bootsector  /dev/sdb4   *  (Extended)      ... --> Legacy GRUB  found in /dev/sdb4   => sda12  0x83 at offset 320934114 (INVALID)
                                                                                                    => inode: <block not found> Path: invalid
     - skipping partition  /dev/sdb5      (swap)         
     - reading bootsector  /dev/sdb6      (LINUX)         ... --> Legacy GRUB  found in /dev/sdb6   => sdb6   0x83 at offset 644842047 (Mandriva/ArchLinux/Debian)
                                                                                                    => inode: 184752   Path: (hd1)/boot/grub/stage2
     - reading bootsector  /dev/sdb7      (LINUX)         ...
     - reading bootsector  /dev/sdb8      (LINUX)         ...
     - reading bootsector  /dev/sdb9      (LINUX)         ...
     - reading bootsector  /dev/sdb10     (LINUX)         ...
     - reading bootsector  /dev/sdb11     (LINUX)         ...
     - reading bootsector  /dev/sdb12     (LINUX)         ...
    
    
    Press <enter> to Exit findgrub...
    I know, a couple boot loaders are invalid on this old machine (I highlighted the one in red as an example: the file in this inode in NOT what the boot loader expects This will produce a "file not found" error of some kind at boot).

    I'm updating another system right now to check if there are problems. I haven't updated for a while ... maybe I will end up in the same situation.

  2. #12
    Join Date
    Sep 2012
    Posts
    5,141

    Default Re: openSUSE 12.2 grub2 problem

    Quote Originally Posted by chiefpete View Post
    I did try to use yast when I was in the chroot but when I went into >system >>bootloader I received this:
    Code:
    Error:   because of the partitioning the bootloader cannot be installed properly
    What is in /etc/default/grub_installdevice?

    Which disk is your BIOS boot disk?

  3. #13
    Join Date
    Dec 2009
    Location
    Menominee, Michigan
    Posts
    55

    Default Re: openSUSE 12.2 grub2 problem

    Code:
    baird-suse:~ # cat /etc/default/grub_installdevice
    /dev/sdb1
    /dev/disk/by-id/ata-WDC_WD1600AAJS-00L7A0_WD-WCAV26464221-part1
    /dev/sda
    activate
    I see that there is also a file called grub_installdevice.old with just /dev/sda in it.

    Mark

  4. #14
    Join Date
    Sep 2012
    Posts
    5,141

    Default Re: openSUSE 12.2 grub2 problem

    And my second question?

  5. #15
    Join Date
    Dec 2009
    Location
    Menominee, Michigan
    Posts
    55

    Default Re: openSUSE 12.2 grub2 problem

    1st boot device is DVDRAM

    2nd boot device is HDD
    Hard Disk Boot Priority
    WD1600AAJS-00L7A0 which I believe to be /dev/sda
    WD2500AAJS-55M0A0 which I believe to be /dev/sdb
    Boot Add-in Cards

    3rd boot device USB

    Mark

  6. #16

    Default Re: openSUSE 12.2 grub2 problem

    Quote Originally Posted by arvidjaar View Post
    And my second question?
    The info was provided in post #1 by findgrub -M.

  7. #17
    Join Date
    Sep 2012
    Posts
    5,141

    Default Re: openSUSE 12.2 grub2 problem

    Quote Originally Posted by chiefpete View Post
    Hard Disk Boot Priority
    WD1600AAJS-00L7A0 which I believe to be /dev/sda
    OK, so in your configuration it is indeed not possible to install grub2 on /dev/sdb1. Assuming YaST2 takes first device in the list, error is more or less correct.

    To manually install grub2 into MBR of the /dev/sda - boot into rescue mode using installation DVD and then execute:
    Code:
    mkdir /tmp/sysroot
    mount /dev/sda1 /tmp/sysroot
    mount --bind /sys /tmp/sysroot/sys
    mount --bind /dev /tmp/sysroot/dev
    mount --bind /run /tmp/sysroot/run
    mount --bind /proc /tmp/sysroot/proc
    chroot /tmp/sysroot
    grub2-install /dev/sda
    grub2-mkconfig -o /boot/grub2/grub.cfg
    You can double check installation using bootinfoscript (I maintain local GIT repo with some cleanups and fixes suggested but not integrated upstream - https://github.com/arvidjaar/bootinf...bootinfoscript). Actually I would be interested in results showing both current state and state after grub2 installation, could you upload them to SUSE Paste)?

    After booting, go into YaST2 bootloader, uncheck everything except "Boot from MBR" (including "install generic MBR") and then make sure /etc/default/grub_install does not contain any device besides /dev/sda ot (hd0) - I am not sure what YaST2 puts there. I have seen it not changing this file even after changes in GUI, so you may need to simply edit it. This file is where perl-Bootloader gets information about bootloader location and per-Bootloader runs when you update kernel ...

    I'm still rather surprised how did you manage to install 12.2 witout actually updating bootloader to 12.2 ...

  8. #18
    Join Date
    Dec 2009
    Location
    Menominee, Michigan
    Posts
    55

    Default Re: openSUSE 12.2 grub2 problem

    OK, finally have some more time to work on this.

    Here is the results of the bootinfoscript before re-installing grub2 to the mbr of /dev/sda SUSE Paste

    I used the DVD Rescue System mounted & then chroot into /dev/sda1

    # grub2-install /dev/sda

    Returned: Installation finished no error reported

    # grub2-mkconfig -o /boot/grub2/grub.cfg

    Returned:
    Code:
     generating grub.cfg
    found them /boot/grub2/themes/openSUSE/theme.txt
    found linuximage /boot/vmlinuz-3.4.28-2.20-desktop
    generating image /boot/initrd-3.4.28-2.20-desktop
    error opening path /mounts/instsys/sys/block
    error failed to discover devices
    error opening path /mounts/instsys/sys/block
    error failed to discover devices
    error opening path /mounts/instsys/sys/block
    error failed to discover devices
    error opening path /mounts/instsys/sys/block
    error failed to discover devices
    No volume groups found
    I rebooted and ran bootinfoscript again: SUSE Paste

    In Yast2 >System >>Bootloader I unchecked all except Boot from Master Boot Record.

    I checked /etc/default/grub_installdevice and found:
    Code:
    baird-suse:~ # cat /etc/default/grub_installdevice
    /dev/sdb
    I checked /boot/grub2/device.map and found:
    Code:
    baird-suse:/boot/grub2 # cat device.map
    (hd0)   /dev/disk/by-id/ata-WDC_WD2500AAJS-55M0A0_WD-WCAV2W720129
    (hd1)   /dev/disk/by-id/ata-WDC_WD1600AAJS-00L7A0_WD-WCAV26464221
    I changed it to reflect what I think it should be.
    Code:
    baird-suse:/boot/grub2 # cat device.map
    (hd1)   /dev/disk/by-id/ata-WDC_WD2500AAJS-55M0A0_WD-WCAV2W720129
    (hd0)   /dev/disk/by-id/ata-WDC_WD1600AAJS-00L7A0_WD-WCAV26464221
    and ran Yast2 >System >>Bootloader and made sure that Boot from Master Boot Record was the only item checked.

    When I check /etc/default/grub_installdevice
    Code:
    baird-suse:~ # cat /etc/default/grub_installdevice
    /dev/sda
    I rebooted and the system did come up. I again rebooted into the Rescue System and re-ran grub2-mkconfig with the same errors showing. I don't know if those errors mean anything.

    Thanks

    Mark

  9. #19
    Join Date
    Sep 2012
    Posts
    5,141

    Default Re: openSUSE 12.2 grub2 problem

    Quote Originally Posted by chiefpete View Post
    Here is the results of the bootinfoscript before re-installing grub2 to the mbr of /dev/sda SUSE Paste
    Hmm ... according to this you already have grub 2.00 installed on both MBRs. Wonder why you could not boot.
    I rebooted and the system did come up.
    All is well that ends well

    I again rebooted into the Rescue System and re-ran grub2-mkconfig with the same errors showing. I don't know if those errors mean anything.
    You can ignore them. Those are mount points in rescue system, and we do not "replicate" them into chroot so they are not found. They can be ignored.

    Could you do me a favor. It seems bootinfoscript incorrectly detects second grub installation. Could you make available first 1MB from sdb (or from both sdb and sda foro that matter)? I believe, SUSE paste allows binary upload.
    Code:
    dd if=/dev/sdb of=sdb.mbr count=2048
    bzip2 -9 sdb.mbr
    And upload sdb.mbr.bz2. It should be compressed well (I expect it to be mostly zeroes anyway). Thank you in advance!

  10. #20
    Join Date
    Dec 2009
    Location
    Menominee, Michigan
    Posts
    55

    Default Re: openSUSE 12.2 grub2 problem

    I can't figure out how to upload these files to susepaste. Another hosting site?

    Mark

Page 2 of 3 FirstFirst 123 LastLast

Posting Permissions

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