Feb 10, 2013

openSUSE Forums: openSUSE 12.2 grub2 problem

openSUSE Forums
openSUSE Forums
openSUSE 12.2 grub2 problem
Feb 10th 2013, 20:57

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

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

No comments: