Problem Description:
Hi, recently, not always but frequently, when I start the laptop this writing appears (see photo). I tried to use the various options proposed with the only result of always returning to the same error screen. Or the laptop freezes completely. The only thing I can do is restart until I no longer see the error. I’ve looked for solutions on the net but I couldn’t find anything that was easily understandable. I hope there is someone among you who can help me. Thanks.
Relevant System Information:
Include any details that might help (e.g., hardware, drivers, or special configurations).
, type “journalctl -xb” to view log system logs. “systemcyl -reboot” to reboot, or “exit” to continue bootup. Press enter for maintenance. (or press control-D to continue):"
What I’ve Tried:
I’ve tried to:
I’ve type “systemctl -reboot” to reboot and “exit” to continue bootup.
I pressed enter for maintenance and control -D to continue. But without getting results. Either the laptop restarted always crashing to the same error or it crashed completely.
This is just a small point that I am sure will not correct the problem. I make it for the sake of accuracy. You say:
There should not be a hyphen between systemctl & reboot.
Have you tried Advance Options for Ubuntu at the Grub boot menu? You can select an earlier Linux kernel and a Linux kernel with Recovery Mode.
At the recovery menu we can run fsck - check all file systems. That would be the easiest thing to do.
It seems that Linux enters Emergency mode when it cannot find and mount all the partitions that the fstab file says are there or there is something wrong with the instructions in fstab file on how the partitions should be mounted.
I am now going to ask a stupid question. Are you able to somehow and some way load into Ubuntu? Perhaps the desktop? or at least up to the recovery menu?
Once at the recovery menu we can do things to get an Internet connection. (useful if updating/upgrading might help things along). We can also get access to a commandline terminal where we can enter commands that might correct things. There is also an option to repair broken packages. I do not think that is the problem here.
Hi, sorry if I’m only replying now but I’ve been ill and haven’t had the chance. I’ll answer you without following the order of your questions but simply in the order of the options I tried.
I tried typing “journalctl -xb” I got a list of more than 5000 lines!! I don’t know if I should post it.
Even if I have to try several times I still manage to enter the operating system.
I tried running fsck from the terminal and got the following message:
fsck from util-linux 2.39.3
e2fsck 1.47.0 (5-Feb-2023)
/dev/sda3 is mounted.
Warning the file system is mounted. Continuing the operation will cause serious damage to the file system. Continue?
Clearly I didn’t continue.
I’ll try to update the operating system later.
Thanks anyway for your advice.
Probably not a good idea to post the entire journalctl output but you could copy/paste the last 20-30 lines to a text file and upload that.
You can’t run fsck on a mounted partition and if you are booting into your installed system, it will obviously be mounted. Use the USB which you have that you installed Ubuntu with and run fsck on /dev/sda3. If you boot form a usb device, your internal drive might show as other
than sda so check to make sure you have the correct device by their size.
If you are able to boot your system, check the /etc/fstab file or possibly post it here if you don’t know what it should show.
Hi, the output of “fsck /dev/sda3” is as follows:
fsck from util-linux 2.39.3
e2fsck 1.47.0 (Feb 5, 2023)
dev/sda3: clean, 1667341/15237120 files, 19015037/60917760 blocks
I tried updating the operating system, but there were no updates. I’d like to point out something I’d forgotten. I enabled Ubuntu Pro support and a livepatch kernel. This means it’s possible it will receive updates from livepatch.
I don’t see anything in your post above that would indicate a problem with starting the OS but maybe others will. One significant thing is that you are using a Macbook which is something you should always indicate in your initial post as methods will vary with Apple devices.
The fstab you posted is incorrect as it is from the ‘live’ USB so you need to mount /dev/sda3 first then navigate to the /etc/fstab file on sda3 and copy/paste it here. Since there are already countless of sites explaining this I won’t repeat it. The link below is one such site.
I had a doubt. I use a yubikey as a smartcard to authenticate when logging in to my laptop and for every time I use “sudo”. Could this error be generated by an external attempt to force this block?
The messages you posted from the logs all seem to refer to internet connectivity and your VPN and the last line indicates "Activated:true so that doesn’t seem to be a problem.
Did you make any changes to the system just prior to encountering this problem and if so, what were they?
I don’t think the yubikey is the problem as I don’t see any messages relating to an authentication problem. I’m not sure what you are asking about an ‘external attempt’, someone trying to hack your machine? Unlikely.
You forgot to post the content of the fstab file though I’m not sure it will help, it might eliminate potential problems.