Black screen after login

As my yast bootloader is not opening, I changed boot device from sda2(SWAP) to sda1(EFI) in boot options after pressing e. Now I’m able to login, but after that only black screen. What went wrong? How to rectify the issue?

Le 17/11/2017 à 20:16, linlen a écrit :
>
> As my yast bootloader is not opening, I changed boot device from
> sda2(SWAP) to sda1(EFI) in boot options after pressing e. Now I’m able
> to login, but after that only black screen. What went wrong? How to
> rectify the issue?
>
>
IMHO boot device should be mbr or /, but this shouldn’t have meaning if
you boot with UEFI as the efi partition seems to say

jdd

I guess I might have changed other parameters in GRUB accidentally . Please suggest some solution.

I’m planning to reinstall GRUB2. Do you think below code will work without any issues?

 
mount /dev/sda1 /tmp/mydir
mount --bind /dev /tmp/mydir/dev
mount --bind /proc /tmp/mydir/proc
mount --bind /sys /tmp/mydir/sys
chroot /tmp/mydir
grub2-install /dev/sda 
exit

Apologies. I didn’t know that changing PATH in /home/user/.bashrc will lead to screen loss. Fixed the issue. Many Thanks!

Le 18/11/2017 à 04:56, linlen a écrit :
>
> I’m planning to reinstall GRUB2. Do you think below code will work
> without any issues?
> 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

jdd

Without using Yast? I did a complete mess of grub2. Hence, please give me steps to reinstall grub2 from grub command line .

Use Yast. What are the options to choose over there?

I brought my system back to normal from grub. Thanks!