Stuck on Boot But PC is Running

Ubuntu Version:
24.04.3 LTS, 24.04

Problem Description:
I am new to Linux and have been using Ubuntu for several months. The day before yesterday, the PC froze and I shut it down as I had a couple times before. I suspect now that this may have been a dirty shutdown and may have caused this problem, if it’s not whatever caused the freeze in the first place (still unknown, though possibly a drive starting to fail).

At first it was booting into emergency mode and after some detective work, I removed a duplicate drive entry from the fstab. From there, it no longer booted into emergency mode.

Now, I am at a place where it boots up, the loading icon spins, the screen flashes black and then it freezes on the motherboard (MSI) and Ubuntu logo screen. After a lot more troubleshooting and getting no where, I discovered the PC is actually running. I have a web server and some docker apps and I can access those without issue. However, I cannot RDC or ssh into the PC as I get “connection refused”.

I checked the journalctl -b log but I just don’t see anything that stands out as an error (though I am a newbie). It even says “startup finished in 23 seconds” and appears like it doesn’t see anything wrong with startup. At this point, I do not even know what else to look into to try to figure out what is wrong. Any help is greatly appreciated!

Relevant System Information:
Integrated graphics only. Boot drive is an SDD NVME and I have 4 HDD data drives attached through SATA.

Screenshots or Error Messages:
I can’t do a screenshot because I can’t figure out how to transfer pictures without actual access to the PC, but this screenshot isn’t really that informative anyways.

What I’ve Tried:

  • nomodeset and apci=off
  • sudo apt-get install --reinstall ubuntu-desktop
  • sudo apt update, upgrade, full-upgrade, autoremove
  • boot repair recommended fix
  • fcsk from live ubuntu usb
  • recovery mode fix broken packages, update grub

If you can run Boot-Repair, re-run it and post the link it gives to a pastebin site, so we can see details on your configuration.

Please copy & paste the pastebin link to the BootInfo summary report ( do not post report), do not run the auto fix till reviewed. Use ppa (2nd) with live installer or update Boot-Repair ISO when booted.
Boot-Repair - Community Help Wiki &
https://sourceforge.net/p/boot-repair/home/Home/

Hard shutdown may cause file corruption that then needs fsck or e2fsck to repair.

Thank you, here is the pastebin URL: Ubuntu Pastebin

In the boot-repair report, lines 245 - 249 refer to your HDDs

Via a “Try Ubuntu” live session, put a comment # at the beginning of each line so that the disks are temporarily ignored during start up.
Only ESP, system and swap should be active

Any improvement in the boot process?

Yesterday I tried commenting out the drives by editing the fstab. It did not make any improvements in the boot process. Could you give a little more explanation on how I would attempt this with a try ubuntu live session? I couldn’t figure out how to access anything to edit.

You have to mount your / partition from the live installer.
Then drill down to /etc/fstab and open that for editing.sudoedit: /media/fred/noble-ssk/etc/fstab: editing files in a writable directory is not permitted

This worked for me to see my full install of noble on my ssk external drive. But sudoedit in terminal gave an error. I use Kubuntu & Dophin browser lets me open it and edit it. Usually file browser will not edit files owned by root.

Do not use device like /dev/sda1 to mount drives. Drive order sda, sdb etc is determined by UEFI/BIOS and how fast each drive is seen by system. Use UUID or label.

sudoedit: /media/fred/noble-ssk/etc/fstab: editing files in a writable directory is not permitted

fred@dell5310:~$ cat /media/fred/noble-ssk/etc/fstab

Good examples:
https://wiki.archlinux.org/index.php/fstab

Have never used mergefs, so do not know if that is correct or not.

I appreciate your help. How would I go about mounting the / partition in the live installer? I figured this part out

After that, I should basically rewrite the fstab to use the UUIDs instead? Would that be causing the current problem? To my knowledge, it must have always been this way so I wonder why it would suddenly be an issue. I did not write it out like that, I just used the Ubuntu GUI to mount the drives. This has pretty much been my first experience with the fstab and anything other very basic terminal usage so it’s been a steep learning curve unfortunately.

If you mean the Disks app as the gui to mount your partitions, it is not a good way. It uses one set of defaults and expects you to know to change those.

Better to find an example and change to use your UUIDs or labels and mount point.

Also if an external drive you need extra parameters.

Do not know mergerfs, so not sure what to suggest.
Did google search just to know a bit about it, but AI may not have good info.

But backup existing fstab before making changes.

Thank you, good to know for going forward.

I think the mergerfs portion should be correct, it’s been functional for several months. My docker apps are not currently displaying any issues with using it either.

I was able to update the fstab files with the UUIDs. Unfortunately, it did not make any changes to my situation. It still freezes on the boot screen, but my webapps are functional.

I have uploaded another bootinfo summary following the changes to the fstab. Ubuntu Pastebin

Did you run fsck on all the partitions on all disks?

I just ran it again to be absolutely sure on all disks and partitions. No difference, still freezes :frowning:

Let’s see if the OS boots without the HDDs

  • Remove the four HDDs
  • Add a comment # to the respective lines of /etc/fstab so that the HDDs are temporarily ignored
  • Boot the PC

If still unsuccessful

  • Try an earlier kernel
  • Reset UEFI settings to default (with Secure Boot disabled)

Thank you for your assistance so far! I tried all of those things and it did not change. Any other thoughts?

I am not seeing anything in Boot-Repair’s report. Perhaps someone else may.

What odel MSI system? What video card?
Do you have latest firmware updates for both MSI and SSD?
The Ubuntu firmware updater does not work for most motherboards as they do not upload firmware. I just turn off the updater, since it will never work & spends time looking.

Devices using LVFS for firmware updates
https://fwupd.org/lvfs/devicelist

MSI PRO B760M-P DDR4 LGA 1700
No video card, just the onboard graphics.

I think the firmware is up to date. I think I recall seeing it in the updater, but I’m not sure how to double check.

You can see versions.
Compare firmware versions to vendors support site
sudo dmidecode -s bios-version
udisksctl status

For those with NVMe drives, install nvme-cli and you can see version & other NVMe info:
nvme - the NVMe storage command line interface utility (nvme-cli)
sudo nvme list
man nvme

Yes, plenty - many not suitable for publication here :upside_down_face:

With your HDD disks removed and /etc/fstab only mounting ESP, system and swap
Select the first menu item in Grub, quickly tap Esc
This should produce text output on your monitor
Hopefully, it may pause or stop completely and reveal a pertinent message?

If I did this correctly, it just brought me to a screen that says grub> and not really anything else.

Last night, I was able to get all my HDD’s reconnected and working. I can access all the files through my webapp filebrowser and the SMART checks say the disk health is 100% for them. Just in case that’s useful info.

I’m just so confused I can use all my web applications totally fine even the ones that interact with the file system, I just can’t get it to load the actual desktop.

No, it doesn’t seem correct at all
There should be text output

Do the same action again until you see grub>
Then hit Esc
What do you see?

You’re accessing the files from another PC?