I have installed ubuntu (MATE, minimal installation) on my laptop (SSD, HP brand), and it is a single boot system (no Windows).
Everything was OK for a few days, and I shut down and restarted several times with no issues. Today I fully charged the laptop before shutting down (via the login menu rather than by holding the power key, if that is relevant).
On restarting, the display was stuck on a blue hp logo and the words "press esc to access startup menu". No key combination was able to access the startup menu or anything else, so it was not possible to change BIOS settings.
Eventually, after about half an hour of freezing, I was able to access the BIOS and boot to a recovery USB. I am about to reinstall ubuntu but want to avoid having to wait for a long time/find or create a recovery USB/reinstall my operating system and reinstall software in future.
My questions:
is this common, or a known problem with HP laptops?
is this due to broken hardware or something to do with the os?
if the latter, how do I stop this happening in the future?
Information
legacy storage is disabled and secure boot is disabled
BIOS surestart has "dynamic runtime scanning of boot block" checked -- EDIT-- I have now unchecked this
there is TPM embedded security, "clear TPM" is set to "no"
system management command, under "utilities" is checked
USB storage boot is checked in the advanced boot settings tab
A disk check from a live USB reveals no problems, but the BIOS system diagnosis said "no hard drive installed". My partitions are:
/dev/sda1 512MiB fat32, flags: boot, esp. EFI system partition
/dev/sda2. 238GiB ext4
I am new to linux, but this does not look right. Is it possible that the surestart technology could have messed up my partitions? If not, are these problems likely due to failing hardware or something else?
UPDATE
I was able to fix the problem temporarily by using the advanced options in boot-repair and reinstalling grub. Then on waking my laptop from sleep the screen froze and when I rebooted it said "no harddrive found". This time the startup menu is not freezing for ages, but strangely the harddrive seems to have completely vanished. Nothing appears in the boot menu unless I insert a recovery USB, and when I try to install to harddrive the only available disk is the USB itself on /dev/sda. Doing a disk check from BIOS says no harddrive found, and from the recovery USB flashes up the message below for about half a second before then running checks and saying disk OK (maybe OK refers to the USB disk though?)
[ 0.000000] [Firmware bug]: TSC_DEADLINE disabled due to Errata: please update microcode to version: 0xb2 (or later)
[ 9.318668] tpm tpm0: a TPM error (7) occurred trying to read a pcr value
[ 9.371830] Couldn't get size: 0x800000000000000e
[ 9.371847] MODSIGN: couldn't get UEFI db list
[ 9.373971] Couldn't get size: 0x800000000000000e
Sorry if this isn't actually an ubuntu issue; not knowing much about computers I can't tell if this is due to hardware or some problem with the linux installation.