Results 1 to 7 of 7

Thread: Grub not showing up

  1. #1
    Join Date
    Jun 2020
    Beans
    3

    Grub not showing up

    I just installed Elementary OS to an SSD on my laptop. The laptop also has a hdd with MX Linux. After install I'm unable to dual boot and grub doesn't show up even when I manually choose the hdd with MX Linux on it in the bios. Edit: I should add both drivers are encrypted don’t know if that matters or not. I did update grub in the elementary terminal but that had no effect. How can I fix the dual booting issue?

  2. #2
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!

    Re: Grub not showing up

    Is your machine using UEFI or MBR/BIOS?

    For a start let's see the output of
    Code:
    sudo fdisk -l
    from whichever OS you can boot to; the output should be the same whichever you are running.

    I suspect you may have one OS installed as UEFI and the other using BIOS so go to Boot-Repair in my signature below and follow the instructions there to run the Boot-Info-Script.
    Do not run the default repair just yet but simply copy back here the pastebin link you get which will show us a lot more about your system and should help us figure out what's going on.
    DISTRO: Xubuntu 20.04-64bit --- Code-tags --- Boot-Repair --- Grub2 wiki & Grub2 Basics --- RootSudo --- Wireless-Info --- SolvedThreads

  3. #3
    Join Date
    Jun 2020
    Beans
    3

    Re: Grub not showing up

    Quote Originally Posted by ajgreeny View Post
    Is your machine using UEFI or MBR/BIOS?

    For a start let's see the output of
    Code:
    sudo fdisk -l
    from whichever OS you can boot to; the output should be the same whichever you are running.

    I suspect you may have one OS installed as UEFI and the other using BIOS so go to Boot-Repair in my signature below and follow the instructions there to run the Boot-Info-Script.
    Do not run the default repair just yet but simply copy back here the pastebin link you get which will show us a lot more about your system and should help us figure out what's going on.

    Thanks. Below is the output of fdisk. At the very bottom is the boot info link.


    Disk /dev/sda: 298.1 GiB, 320072933376 bytes, 625142448 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disklabel type: dos
    Disk identifier: 0x47580c9d

    Device Boot Start End Sectors Size Id Type
    /dev/sda1 * 2048 1050623 1048576 512M 83 Linux
    /dev/sda2 1050624 620883967 619833344 295.6G 83 Linux
    /dev/sda3 620883968 625078271 4194304 2G 83 Linux


    Disk /dev/sdb: 447.1 GiB, 480103981056 bytes, 937703088 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
    Disklabel type: dos
    Disk identifier: 0x0314bee6

    Device Boot Start End Sectors Size Id Type
    /dev/sdb1 2048 1499135 1497088 731M 83 Linux
    /dev/sdb2 1501182 937701375 936200194 446.4G 5 Extended
    /dev/sdb5 1501184 937701375 936200192 446.4G 83 Linux


    Disk /dev/mapper/sdb5_crypt: 446.4 GiB, 479332401152 bytes, 936196096 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 /dev/mapper/elementary--vg-root: 445.4 GiB, 478272290816 bytes, 934125568 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 /dev/mapper/elementary--vg-swap_1: 976 MiB, 1023410176 bytes, 1998848 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







    http://paste.ubuntu.com/p/Vx3KDknbCN/

  4. #4
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!

    Re: Grub not showing up

    The Boot-Repair output suggests that RAID was detected; do you have a raid system as well as encryption?

    If so, I shall have to pull out of further comment as I do not and never have used either RAID or encryption. Hang around further and hopefully someone else will come along who understands such systems better than I do.
    DISTRO: Xubuntu 20.04-64bit --- Code-tags --- Boot-Repair --- Grub2 wiki & Grub2 Basics --- RootSudo --- Wireless-Info --- SolvedThreads

  5. #5
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Grub not showing up

    Does not look like RAID, but just LVM.
    RAID would have matching partitions on two drives.

    For Boot-Repair to correctly reinstall grub you have to mount LVM and decrypt the encrypted volumes.

    Grub does not normally show if it only sees one install. Unless you mount & decrypt second install, grub2's os-prober has to see the second install.
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  6. #6
    Join Date
    Jun 2020
    Beans
    3

    Re: Grub not showing up

    Quote Originally Posted by oldfred View Post
    Does not look like RAID, but just LVM.
    RAID would have matching partitions on two drives.

    For Boot-Repair to correctly reinstall grub you have to mount LVM and decrypt the encrypted volumes.

    Grub does not normally show if it only sees one install. Unless you mount & decrypt second install, grub2's os-prober has to see the second install.
    Okay. Thanks. I should've thought of that. I'm still a relative linux newbie. How would I go about correcting grub? I mean what commands, etc would i need to run.

  7. #7
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Grub not showing up

    Mount the encrypted partitions in the LVM and run Boot-Repair.

    I do not know LVM, but have these links which I believe are still good.
    Mount LVM - duckhook
    https://ubuntuforums.org/showthread....2#post13733372
    https://unix.stackexchange.com/quest.../339621#339621
    For mounting encrypted see first few lines, you do not need the resize which is rest of post:
    https://askubuntu.com/questions/2622...copy-of-ubuntu
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

Bookmarks

Posting Permissions

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