I installed Ubuntu on a Cisco UCS C250 M2 system with a USB flash drive. The installer attempted installing Grub on the installer drive instead of the system drive. In attempts to have a bootable system, I dropped to a shell and ran:
chroot /target /bin/bash
grub-install /dev/sdb (where sdb is drive you installed on)
The above installed Grub, but didn’t configure it to boot the system. After booting I landed at a grub prompt instead of the system prompt. I was able to boot the system with the steps below.
First, I ran the command below to get the drive’s UUID. Below
<tab> is tapping the tab key on the keyboard:
This prints out details of the drive; the UUID is needed in the command below.
linux /boot/vmlinuz<tab> root=UUID=<insert UUID here>
This properly booted the system. From here, the first thing to do is install Grub properly. Login to the system and run:
After a reboot the system booted properly.