Page 1 of 3 123 LastLast
Results 1 to 10 of 25

Thread: openSUSE 12.2 grub2 problem

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

    Default openSUSE 12.2 grub2 problem

    Yesterdays kernel update from 3.4.11 to 3.4.28 left me unable to boot. - The PC was stuck at the boot screen. It was unable to find the 3.4.11 kernel. I did get it to boot by booting the install DVD, used the Rescue System, chroot, and then:
    Code:
    # grub2-mkconfig -o /boot/grub2/grub.cfg
    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
    The PC has only 1 operating system openSUSE 12.2 64 bit. - I did a new installation from the install DVD. - The PC had openSUSE 12.1 on it but I did not perform an upgrade.

    I do remember having issues right after I installed the system with getting the PC to boot, but I can't find my notes with how I "fixed it" then.

    The disk layout is:
    Code:
     baird-suse:~ # fdisk -l
    
    Disk /dev/sda: 160.0 GB, 160041885696 bytes
    255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x000c7d83
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *        2048    37752831    18875392   83  Linux
    /dev/sda2        37752832    46139391     4193280   82  Linux swap / Solaris
    /dev/sda3        46139392   312580095   133220352   83  Linux
    
    Disk /dev/sdb: 250.1 GB, 250059350016 bytes
    255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x000bef49
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdb1   *        2048   488396799   244197376   83  Linux

    Code:
    baird-suse:~ # cat /etc/fstab
    /dev/disk/by-id/ata-WDC_WD1600AAJS-00L7A0_WD-WCAV26464221-part2 swap                 swap       defaults              0 0
    /dev/disk/by-id/ata-WDC_WD1600AAJS-00L7A0_WD-WCAV26464221-part1 /                    ext4       acl,user_xattr        1 1
    /dev/disk/by-id/ata-WDC_WD1600AAJS-00L7A0_WD-WCAV26464221-part3 /home                ext4       acl,user_xattr        1 2
    proc                 /proc                proc       defaults              0 0
    sysfs                /sys                 sysfs      noauto                0 0
    debugfs              /sys/kernel/debug    debugfs    noauto                0 0
    usbfs                /proc/bus/usb        usbfs      noauto                0 0
    devpts               /dev/pts             devpts     mode=0620,gid=5       0 0
    /dev/disk/by-id/ata-WDC_WD2500AAJS-55M0A0_WD-WCAV2W720129-part1 /mnt/share           ext4       acl,user_xattr        1 2
    I did look through this forum thread https://forums.opensuse.org/english/...grub2-efi.html . This is similar to my problem but this is a desktop PC without efi.

    Code:
     baird-suse:~ # findgrub
    Find Grub Version 4.1 - Written for openSUSE Forums
    
     - reading MBR on disk /dev/sda                       ... --> Grub2 (1.99) found in sda MBR     => sda?   0x?? (openSUSE)
     - reading bootsector  /dev/sda1   *  (LINUX)         ... --> Grub2 (1.99) found in /dev/sda1   => sda?   0x?? (openSUSE)
     - skipping partition  /dev/sda2      (swap)         
     - reading bootsector  /dev/sda3      (LINUX)         ...
    
     - reading MBR on disk /dev/sdb                       ... --> Grub2 (1.99) found in sdb MBR     => sda?   0x?? (openSUSE)
     - reading bootsector  /dev/sdb1   *  (LINUX)         ...
    
    
    Press <enter> to Exit findgrub...
    Code:
     baird-suse:~ # findgrub -M
    Find Grub Version 4.1 - Written for openSUSE Forums
    
    --- DEVICE.MAP: sda is ata drive hd0
    --- DEVICE.MAP: looking for /dev/sda in /boot/grub/device.map:
    --- DEVICE.MAP: - /dev/sda -> hd0
    --- DEVICE.MAP: - /dev/disk/by-id/ata-WDC_WD1600AAJS-00L7A0_WD-WCAV26464221
    --- DEVICE.MAP: - /dev/disk/by-id/scsi-SATA_WDC_WD1600AAJS-_WD-WCAV26464221
    --- DEVICE.MAP: - /dev/disk/by-id/wwn-0x50014ee1aca9145c
    --- DEVICE.MAP: - /dev/disk/by-path/pci-0000:00:11.0-scsi-0:0:0:0
    --- DEVICE.MAP: - /devices/pci0000:00/0000:00:11.0/ata1/host0/target0:0:0/0:0:0:0/block/sda
    --- DEVICE.MAP: => sda - found in device.map - is now hd0
    --- DEVICE.MAP:
    --- DEVICE.MAP: sdb is ata drive hd1
    --- DEVICE.MAP: looking for /dev/sdb in /boot/grub/device.map:
    --- DEVICE.MAP: - /dev/sdb -> hd1
    --- DEVICE.MAP: - /dev/disk/by-id/ata-WDC_WD2500AAJS-55M0A0_WD-WCAV2W720129
    --- DEVICE.MAP: - /dev/disk/by-id/scsi-SATA_WDC_WD2500AAJS-_WD-WCAV2W720129
    --- DEVICE.MAP: - /dev/disk/by-id/wwn-0x50014ee158c0589d
    --- DEVICE.MAP: - /dev/disk/by-path/pci-0000:00:11.0-scsi-1:0:0:0
    --- DEVICE.MAP: - /devices/pci0000:00/0000:00:11.0/ata2/host1/target1:0:0/1:0:0:0/block/sdb
    --- DEVICE.MAP: => sdb - found in device.map - is now hd1
    --- DEVICE.MAP:
    --- DEVICE.MAP: !invalid drive in device.map: /dev/fd0
    How do I correct the problem so the next kernel update doesn't leave me unable to boot again?

    Thanks

    Mark

  2. #2
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: openSUSE 12.2 grub2 problem

    On 2013-02-10 22:06, chiefpete wrote:
    > How do I correct the problem so the next kernel update doesn't leave me
    > unable to boot again?


    Configure for having multiple versions of a kernel installed, so that
    the previous version is not immediately deleted.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 12.1 x86_64 "Asparagus" at Telcontar)

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

    Default Re: openSUSE 12.2 grub2 problem

    Quote Originally Posted by robin_listas View Post
    On 2013-02-10 22:06, chiefpete wrote:
    > How do I correct the problem so the next kernel update doesn't leave me
    > unable to boot again?


    Configure for having multiple versions of a kernel installed, so that
    the previous version is not immediately deleted.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 12.1 x86_64 "Asparagus" at Telcontar)
    I had forgot about the ability to keep older kernel versions.

    Thanks
    Mark

  4. #4
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,140
    Blog Entries
    48

    Smile Re: openSUSE 12.2 grub2 problem

    Quote Originally Posted by chiefpete View Post
    I had forgot about the ability to keep older kernel versions.

    Thanks
    Mark
    I am not seeing anything wrong in your listing. I am thinking that the partition took a data hit for some reason. If this was me I would just reinstall. But, select custom partitioning, for experts only. Select all existing partitions and mount them exactly the same as before. Allow the root / partition and swap to be formatted, but mount only /home and /mnt/share but I would not use any preexisting partition names like mnt. I use primary folder names like /Software, /DataSafe, /MultiMedia & /Windows but nothing created by openSUSE in its default installation. I normally make sure the Partition I create has the chmod of 777 and usable by all even though the fstab sets the rest. Unmount the mount long enough to check change its chmod number and restart when done. Carlos makes a good point on saving multiple kernels.

    For permissions, have a look at this bash script:

    S.A.F.P. - SUSE Automated File Permissions - Version 1.0.4: https://forums.opensuse.org/blogs/jd...ion-1-0-4-113/

    Thank You,
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

  5. #5

    Default Re: openSUSE 12.2 grub2 problem

    Quote Originally Posted by jdmcdaniel3 View Post
    I am not seeing anything wrong in your listing.
    I do: all the boot loaders are invalid.

    Quote Originally Posted by chiefpete View Post
    Code:
     baird-suse:~ # findgrub
    Find Grub Version 4.1 - Written for openSUSE Forums
    
     - reading MBR on disk /dev/sda                       ... --> Grub2 (1.99) found in sda MBR     => sda?   0x?? (openSUSE)
     - reading bootsector  /dev/sda1   *  (LINUX)         ... --> Grub2 (1.99) found in /dev/sda1   => sda?   0x?? (openSUSE)
     - skipping partition  /dev/sda2      (swap)         
     - reading bootsector  /dev/sda3      (LINUX)         ...
    
     - reading MBR on disk /dev/sdb                       ... --> Grub2 (1.99) found in sdb MBR     => sda?   0x?? (openSUSE)
     - reading bootsector  /dev/sdb1   *  (LINUX)         ...
    findgrub should not have problem to find the core of Grub2 (1.99). It might still fail with some boot loaders of Grub2 (2.00), under some distros, but not openSUSE (at least, we got that one).

    Try findgrub -c. It should find the core and look like the example below (which includes openSUSE 12.1 Grub2 core):

    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 582502656 (openSUSE)
                                                                                                    => inode: 393986   Path: (hd0)/boot/grub/stage2
     - 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)         ... --> Legacy GRUB  found in /dev/sda9   => sda9   0x83 at offset 582502656 (openSUSE)
                                                                                                    => inode: 393986   Path: (hd0)/boot/grub/stage2
     - reading bootsector  /dev/sda10     (LINUX)         ... --> Grub2 (1.99) found in /dev/sda10  => sda9   0x83 at offset 616960472 (openSUSE)
                                                                                                    => inode: 394914   Path: (hd0)/boot/grub2/core.img
     - reading bootsector  /dev/sda11     (LINUX)         ... --> Grub2 (1.99) found in /dev/sda11  => sda11  0x83 at offset 655821248 (Ubuntu/Mint)
                                                                                                    => inode: 1052453  Path: (hd0)/boot/grub/core.img
     - reading bootsector  /dev/sda12     (LINUX)         ...
     - reading bootsector  /dev/sda13     (LINUX)         ... --> Legacy GRUB  found in /dev/sda13  => sda13  0x83 at offset 705130602 (Mandriva/ArchLinux/Debian)
                                                                                                    => inode: 23920    Path: (hd0)/boot/grub/stage2
     - reading bootsector  /dev/sda14     (LINUX)         ...
     - reading bootsector  /dev/sda15     (LINUX)         ...
     - reading bootsector  /dev/sda16     (LINUX)         ... --> Legacy GRUB  found in /dev/sda16  => sda16  0x83 at offset 784242820 (Mandriva/ArchLinux/Debian)
                                                                                                    => inode: 15950    Path: (hd0)/boot/grub/stage2
     - reading bootsector  /dev/sda17     (LINUX)         ...
    
     - reading MBR on disk /dev/sdb                       ... --> Grub2 (1.99) found in sdb MBR     => sda6   0x83 using core (Ubuntu)
     - 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   => sda9   0x83 at offset 582155312 (openSUSE)
                                                                                                    => inode: 394000   Path: (hd0)/boot/grub/stage2.old
     - skipping partition  /dev/sdb5      (swap)         
     - reading bootsector  /dev/sdb6      (LINUX)         ... --> Legacy GRUB  found in /dev/sdb6   => sdb6   0x83 at offset 640035343 (Mandriva/ArchLinux/Debian)
                                                                                                    => inode: 40185    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)         ...
     - reading bootsector  /dev/sdb13     (LINUX)         ...
    
    
    Press <enter> to Exit findgrub...
    Anyway, we already know that this system doesn't boot.

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

    Default Re: openSUSE 12.2 grub2 problem

    Since I recreated grub.cfg the PC does boot, but I think that something is messed up with the boot loader.

    Code:
     baird-suse:~ # findgrub -c
    Find Grub Version 4.1 - Written for openSUSE Forums
    
     - reading MBR on disk /dev/sda                       ... --> Grub2 (1.99) found in sda MBR     => sda?   0x?? using core (openSUSE)
     - reading bootsector  /dev/sda1   *  (LINUX)         ... --> Grub2 (1.99) found in /dev/sda1   => sda?   0x?? at offset 14031904 (openSUSE)/usr/bin/findgrub: line 276: [: too many arguments
    
     - skipping partition  /dev/sda2      (swap)         
     - reading bootsector  /dev/sda3      (LINUX)         ...
    
     - reading MBR on disk /dev/sdb                       ... --> Grub2 (1.99) found in sdb MBR     => sda?   0x?? using core (openSUSE)
     - reading bootsector  /dev/sdb1   *  (LINUX)         ...
    
    
    Press <enter> to Exit findgrub..
    I'd rather fix it than reload the system

    Thanks
    Mark

  7. #7
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: openSUSE 12.2 grub2 problem

    On 2013-02-11 01:26, please try again wrote:
    > jdmcdaniel3;2526160 Wrote:
    >> > I am not seeing anything wrong in your listing.

    > I do: all the boot loaders are invalid.


    I'm a bit thick and tired now, but I think I have seen several people
    today with an unbootable systems after an update. :-?

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 12.1 x86_64 "Asparagus" at Telcontar)

  8. #8

    Default Re: openSUSE 12.2 grub2 problem

    Quote Originally Posted by chiefpete View Post
    Since I recreated grub.cfg the PC does boot, but I think that something is messed up with the boot loader.
    I'm trying to think back. Grub2 was not installed with 12.1 but was available from repo. You could have installed it yourself (or with updategrub), and it was indeed version 1.99.

    Now Grub2 is installed by default with version 12.2, and it is version 2.00.
    Since you can boot, could you post the output of these commands (as root):

    Code:
    # grub2-probe --version
    # lsb_release -a
    # uname -a
    # rpm -qa | grep grub



    Code:
     baird-suse:~ # findgrub -c
    Find Grub Version 4.1 - Written for openSUSE Forums
    
     - reading MBR on disk /dev/sda                       ... --> Grub2 (1.99) found in sda MBR     => sda?   0x?? using core (openSUSE)
     - reading bootsector  /dev/sda1   *  (LINUX)         ... --> Grub2 (1.99) found in /dev/sda1   => sda?   0x?? at offset 14031904 (openSUSE)/usr/bin/findgrub: line 276: [: too many arguments
    Not fun!

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

    Default Re: openSUSE 12.2 grub2 problem

    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
    Code:
    baird-suse:~ # uname -a
    Linux baird-suse 3.4.28-2.20-desktop #1 SMP PREEMPT Tue Jan 29 16:51:37 UTC 2013 (143156b) x86_64 x86_64 x86_64 GNU/Linux
    Code:
    baird-suse:~ # rpm -qa | grep grub
    grub2-2.00-1.23.1.x86_64
    grub2-branding-openSUSE-12.2-11.18.5.noarch
    grub-0.97-185.1.2.x86_64
    I appreciate the help.
    Mark

  10. #10
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,140
    Blog Entries
    48

    Smile 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
    Code:
    baird-suse:~ # uname -a
    Linux baird-suse 3.4.28-2.20-desktop #1 SMP PREEMPT Tue Jan 29 16:51:37 UTC 2013 (143156b) x86_64 x86_64 x86_64 GNU/Linux
    Code:
    baird-suse:~ # rpm -qa | grep grub
    grub2-2.00-1.23.1.x86_64
    grub2-branding-openSUSE-12.2-11.18.5.noarch
    grub-0.97-185.1.2.x86_64
    I appreciate the help.
    Mark
    Let me say that while you don't want to reload, you have invalid data and by the time you fix it, you could have already reinstalled your system. My suggested install does not wipe out your /home area and if after that it still does not work, there was nothing there to save in the first place. Of course you make the final choice, but if time means anything to you, I would take the shortest path to a working system. And I do wish you much luck in getting it all back online.

    Thank You,
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

Page 1 of 3 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
  •