Results 1 to 4 of 4

Thread: GRUB2 - Reinstall

  1. #1
    Join Date
    May 2016
    Location
    Chennai, TN, India
    Posts
    76

    Default 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.
    Code:
    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!

  2. #2
    Join Date
    Sep 2014
    Location
    Germany
    Posts
    915

    Default AW: GRUB2 - Reinstall

    Quote Originally Posted by linlen View Post
    ... How to run rescue?
    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:
    Code:
    > su
    Code:
    # 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)
    Code:
    # 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).

    Code:
    # mount -o bind /dev /mnt/dev
    Code:
    # mount -o bind /sys /mnt/sys
    Code:
    # mount -o bind /proc /mnt/proc
    Code:
    # mount -o bind /run /mnt/run
    Code:
    # chroot /mnt
    Code:
    # 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
    Code:
    # exit
    Then restart your system.

    Regards

    susejunky

  3. #3
    Join Date
    May 2016
    Location
    Chennai, TN, India
    Posts
    76

    Default Re: GRUB2 - Reinstall

    Thank you very much.

    I don't have USB Stick/ CD.I upgraded from 42.2 to 42.3 using
    Code:
    zypper dup
    What shall I do? Should I create a USB Image?

  4. #4
    Join Date
    Sep 2014
    Location
    Germany
    Posts
    915

    Default AW: Re: GRUB2 - Reinstall

    Quote Originally Posted by linlen View Post
    Thank you very much.

    I don't have USB Stick/ CD.I upgraded from 42.2 to 42.3 using
    Code:
    zypper dup
    What shall I do? Should I create a USB Image?
    Yes, download http://download.opensuse.org/distrib...DVD-x86_64.iso and put it on DVD or USB-Stick (here: https://en.opensuse.org/SDB:Live_USB_stick you will find some help on how to do this).

    Regards

    susejunky

Posting Permissions

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