GRUB2 - Reinstall

I need help in reinstalling GRUB2 in my system as I’ve messed up completely. I’m able to boot from grub and run the system normally. But when I restart, system couldn’t find grub file. I’m also as confused as system. In one of the thread, jdd mentioned the below steps, but I need some help.

simpler way

run rescue


mount /dev/sda1 /mnt
cd /mnt
mount --bind /dev dev
use the arrow and back key to do the same for sys and proc
chroot . (dot)
use yast

How to run rescue? Should I reboot my system to go to grub-rescue? If so, how. I’m able to reach grub command line, but not grub-rescue.After chroot ., I need to use yast. How should I set yast? More details would help me in resolving the current issue. I need step-by-step command as I’m novice.Looking forward for a quick reply as grub has become unstable with so many changes.Many Thanks!

Boot the openSUSE-Installation-Media (DVD, USB stick). The start screen should offer you several options (wordings may be slightly different !) like “Boot from Hard drive”, “Installation”, …

One of them should be “Rescue system”. Selecting this will boot an openSUSE system (command line).

Run the following commands:

> su
# mount /dev/sdxy /mnt

You have to replace “dev/sdxy” with the proper identifier of your openSUSE root partition (on your hard drive).

If you boot in UEFI mode you must do as well (if you boot in MBR mode you can skip this step)

# mount /dev/sdxz /mnt/boot/efi

You have to replace “dev/sdxz” with the proper identifier of your EFI system partition (on your hard drive).

# mount -o bind /dev /mnt/dev
# mount -o bind /sys /mnt/sys
# mount -o bind /proc /mnt/proc
# mount -o bind /run /mnt/run
# chroot /mnt
# yast2

This will give you a semi-graphical version of yast.

After you finished your GRUB setup and are back on the command line do

# exit

Then restart your system.

Regards

susejunky

Thank you very much.

I don’t have USB Stick/ CD.I upgraded from 42.2 to 42.3 using

zypper dup

What shall I do? Should I create a USB Image?

Yes, download http://download.opensuse.org/distribution/leap/42.3/iso/openSUSE-Leap-42.3-DVD-x86_64.iso and put it on DVD or USB-Stick (here: SDB:Live USB stick - openSUSE Wiki you will find some help on how to do this).

Regards

susejunky