Results 1 to 3 of 3

Thread: Need Help restoring grub in encrypted root

  1. #1

    Default Need Help restoring grub in encrypted root

    I had to send in my laptop for repairs, as a result my grub got removed due to recovering windows.
    Currently I am trying to reinstall grub using the tumbleweed install dvd (rescue option)

    The system graph is like this:
    There are 2 hdds, the

    Code:
    / is encrypted and is /dev/sdb1
    /boot/ is not encrypted and is /dev/sda7
    /boot/efi is not encrypted and is /dev/sda1
    swap is encrypted and is /dev/sdb2
    /mnt/Data is a encrypted data partition that is /dev/sda8
    due to this configuration, I have my root encrypted but have to enter encryption password only once at plymouth prompt.
    system is set to uefi boot and secure boot is on.

    I follow the following to reinstall grub:
    Code:
    unlock sdb1(/),sdb2(swap),sda8(data) using cryptsetup luksOpen
    then I mount sdb1 to /mnt/
    mount sda7 to /mnt/boot 
    mount sda1 to /mnt/boot/efi
    for i in /sys /proc /run /dev; do mount --bind "$i" "/mnt/$i"; done
    chroot /mnt
    grub2-install /dev/sda
    grub2-mkconfig -o /boot/grub2/grub.cfg
    after rebooting, grub does not show and goes into dell diagnostics instead.
    I am confused whether I have to install grub to /dev/sda or /dev/sdb (grub-install command)
    Last edited by K380; 29-Dec-2018 at 03:16. Reason: adding info about password entry

  2. #2

    Default Re: Need Help restoring grub in encrypted root

    Never mind, the only step wrong was I was using grub2-install instead of shim-install
    and I installed on /dev/sda
    It works fine now.

  3. #3
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,161
    Blog Entries
    3

    Default Re: Need Help restoring grub in encrypted root

    Quote Originally Posted by K380 View Post
    Never mind, the only step wrong was I was using grub2-install instead of shim-install
    and I installed on /dev/sda
    It works fine now.
    Great. Just as I was getting ready to help.

    I'm glad you have it working again.
    openSUSE Leap 15.1; KDE Plasma 5;

Posting Permissions

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