Recently upgraded on my servers from Ubuntu 14.04 to 18.04. After the usual amount of UEFI caused grub installation errors I eventually got the OS installed. However the UEFI doesn't see the drive with the OS installed as a boot option. If I manually select the dive though, it boots up just fine. Given it worked before I assume something is configured incorrectly on the drive it self.
Seems the OS doesn't see UEFI, though it is an option on this system:
# efibootmgr EFI variables are not supported on this system.
OS installed on /dev/sdg
$ df -h Filesystem Size Used Avail Use% Mounted on udev 7.8G 0 7.8G 0% /dev tmpfs 1.6G 1.5M 1.6G 1% /run /dev/sdg4 45G 9.3G 34G 22% / tmpfs 7.8G 8.0K 7.8G 1% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup /dev/sdg2 33G 58M 31G 1% /home /dev/sdg3 33G 2.4G 29G 8% /srv /dev/loop0 91M 91M 0 100% /snap/core/6350 /dev/loop1 98M 98M 0 100% /snap/docker/384 /dev/loop2 90M 90M 0 100% /snap/core/7917 /dev/md127 26T 15T 11T 59% /mnt/storage tmpfs 1.6G 0 1.6G 0% /run/user/1000
I switched over to MBR thinking it might be having trouble with GPT.
# fdisk /dev/sdg Welcome to fdisk (util-linux 2.31.1). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Command (m for help): p Disk /dev/sdg: 111.8 GiB, 120034123776 bytes, 234441648 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: 0x00000000 Device Boot Start End Sectors Size Id Type /dev/sdg1 2048 4095 2048 1M ef EFI (FAT-12/16/32) /dev/sdg2 4096 69210111 69206016 33G 83 Linux /dev/sdg3 69210112 138416127 69206016 33G 83 Linux /dev/sdg4 * 138416128 234438655 96022528 45.8G 83 Linux
I am not 100% sure that first partition is of the correct type, but again, everything boots just fine when I manually select the drive. Thoughts?
More debugging thanks to grawity. lsblk and blkid seem to have no idea what that first partition is. However, gparted shows it as:
Thinking that was supposed to be /boot?