George R. Kasica
asked on
Ubuntu System will not boot with external USB Drives attached
Running an Ubuntu 16.04.x LTS system that boots in Legacy HDD mode on SATA0 a 500GB DIsk according to the following test:
Last login: Fri Mar 2 09:02:23 2018
root@saturn:~# [ -d /sys/firmware/efi ] && echo "EFI boot on HDD" || echo "Legacy boot on HDD"
Legacy boot on HDD
I have 2 external USB Hard disks(1TB and 5TB) as well and recently I'm running into a problem that if the USB Drives are powered on/connected the system will not boot. It gives an error that the UUID of the Internal HDD cannot be located. I seem to recall something to fix this in the boot setup but I can't recall or locate details. If I unplug the external drives it works and boots normally.
Last login: Fri Mar 2 09:02:23 2018
root@saturn:~# [ -d /sys/firmware/efi ] && echo "EFI boot on HDD" || echo "Legacy boot on HDD"
Legacy boot on HDD
I have 2 external USB Hard disks(1TB and 5TB) as well and recently I'm running into a problem that if the USB Drives are powered on/connected the system will not boot. It gives an error that the UUID of the Internal HDD cannot be located. I seem to recall something to fix this in the boot setup but I can't recall or locate details. If I unplug the external drives it works and boots normally.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
The system works normally and boots fine with the drives unattached/powered off. It HAD been working with them ON and booting from the internal HDD SATA0 as well until I ran the updates a few days ago on 2/28/18.
apt-get update
apt-get -y dist-upgrade
apt-get -y autoremove
I've done this same update sequence dozens of times followed by a reboot and it has worked just fine. Suddenly I'm facing this issue. I havent touched the BIOS or made any GRUB changes or fstab changes. Boot order in BIOS is CDROM then HDD I've disabled all USB Booting items. I DO see the opening Linux menu though for Ubuntu or Ubuntu Recovery and its failing after it tries either option of any of the 3 kernels I have on the system.
here are blkids of all drives/partitions:
/dev/sda1: UUID="8756-B21D" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="4846c644-e6ad-48 66-ae39-45 993ab597d7 "
/dev/sda2: UUID="52f25ea5-f5c0-4c7e-8 54e-d6170e 371177" TYPE="ext2" PARTUUID="4bec30bc-702b-43 01-b871-ad 99cebd25e0 "
/dev/sda3: UUID="WltXXx-qcoc-7Qwz-Cii L-n03r-yEI p-BldkBE" TYPE="LVM2_member" PARTUUID="0350f2bb-084c-4b c5-862f-3b 3b95eb6599 "
/dev/mapper/saturn--vg-roo t: UUID="31e92ee2-56cf-4a10-a df4-22527f 214b52" TYPE="ext4"
/dev/mapper/saturn--vg-swa p_1: UUID="f67b4149-4aef-41c1-9 71f-e650df 499c80" TYPE="swap"
/dev/sdc1: LABEL="backup" UUID="418c4659-a7f1-4912-8 8f5-ce3d1e d8a5eb" TYPE="ext4" PARTUUID="000accdb-01"
/dev/sdb1: LABEL="backup1" UUID="84a2d1cf-92e4-44c5-a 106-34f668 12f329" TYPE="ext4" PARTLABEL="backup1" PARTUUID="d2889858-28a5-4b d2-8385-af 54851f5174 "
Grub.cfg is attached. It looks normal to me.
Here is fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/mapper/saturn--vg-roo t / ext4 errors=remount-ro 0 1
# /boot was on /dev/sda2 during installation
UUID=52f25ea5-f5c0-4c7e-85 4e-d6170e3 71177 /boot ext2 defaults 0 2
# /boot/efi was on /dev/sda1 during installation
UUID=8756-B21D /boot/efi vfat umask=0077 0 1
/dev/mapper/saturn--vg-swa p_1 none swap sw 0 0
apt-get update
apt-get -y dist-upgrade
apt-get -y autoremove
I've done this same update sequence dozens of times followed by a reboot and it has worked just fine. Suddenly I'm facing this issue. I havent touched the BIOS or made any GRUB changes or fstab changes. Boot order in BIOS is CDROM then HDD I've disabled all USB Booting items. I DO see the opening Linux menu though for Ubuntu or Ubuntu Recovery and its failing after it tries either option of any of the 3 kernels I have on the system.
here are blkids of all drives/partitions:
/dev/sda1: UUID="8756-B21D" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="4846c644-e6ad-48
/dev/sda2: UUID="52f25ea5-f5c0-4c7e-8
/dev/sda3: UUID="WltXXx-qcoc-7Qwz-Cii
/dev/mapper/saturn--vg-roo
/dev/mapper/saturn--vg-swa
/dev/sdc1: LABEL="backup" UUID="418c4659-a7f1-4912-8
/dev/sdb1: LABEL="backup1" UUID="84a2d1cf-92e4-44c5-a
Grub.cfg is attached. It looks normal to me.
Here is fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/mapper/saturn--vg-roo
# /boot was on /dev/sda2 during installation
UUID=52f25ea5-f5c0-4c7e-85
# /boot/efi was on /dev/sda1 during installation
UUID=8756-B21D /boot/efi vfat umask=0077 0 1
/dev/mapper/saturn--vg-swa
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
may be a day or 2 to try this out as I need to run a full backup first that takes a bit. Will report results by the end of the weekend. No BIOS updates have been done in the 5 months the machine has been here. Interesting about some systems just not booting. UGH.
The BIOS / UEFI boot is successful. The linux boot loader (LILO, grub or grub2 as may be) starts up.
The system finds and decompresses the kernel (this can be confirmed by watching the VGA console at startup).
Some things to look at:
a) GRUB is slightly misconfigured. Check /boot/grub/grub.cfg to confirm that the UUID being passed is the UUID of the boot device.
b) GRUB is slightly misconfigured. Check /boot/grub/grub.cfg to confirm that grub is passing a UUID, not the LABEL.
c) /etc/fstab is misconfigured. Check /etc/fstab to confirm that the UUID specified matches the UUID of the boot device.
d) One or more of the USB devices has a boot block on it, and the system is booting from the wrong device. Disable USB boot in the BIOS.
If you change grub.cfg, don't forget to run update-grub afterward.