Strange Bios Messages, ubuntu taking several minutes to load.
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
When I run cat /var/log/Xorg.0.log | pastebinit in the terminal I get:
No such file or directory
Command 'pastebinit' not found, but can be installed with:
sudo apt install pastebinit
Just do it. Astute distros include it or an equivalent pastebinning tool by default. Check apropos pastebin to see if you already have an alternative.
Quote:
There is no Xorg.0.log or any other Xorg file in my /var/log directory.
/var/log/ is the traditional location for Xorg.0.log. Random distros have gotten the bright idea to move it into a hidden directory. Look for it in ~/.local/share/xorg/ if you don't find it in its traditional location.
Just do it. Astute distros include it or an equivalent pastebinning tool by default. Check apropos pastebin to see if you already have an alternative.
/var/log/ is the traditional location for Xorg.0.log. Random distros have gotten the bright idea to move it into a hidden directory. Look for it in ~/.local/share/xorg/ if you don't find it in its traditional location.
I installed pastebinit and ran: cat Xorg.0.log | pastebinit
The very last line in the log confirms something is wrong. It could be an issue in the kernel that would very likely be fixed by now if you were using a supported distro. Numbers such as [ 6405.572] at the beginning of the log's lines represent seconds since booting. If the pastebinned log was generated upon a fresh boot, its numbers are confirming slowness, more than 20 minutes between boot start and X startup finishing. Do you have any Linux DVDs or USB sticks with bootable Linux you could test to see how long they take to boot to a GUI desktop? Consider an upgrade to 22.04 LTS or 22.10 if yes and times are reasonable when not using 20.10.
What do sudo systemd-analyze critical-chain and sudo systemd-analyze blame report? Please post input/output here enclosed in code tags. Example:
The very last line in the log confirms something is wrong. It could be an issue in the kernel that would very likely be fixed by now if you were using a supported distro. Numbers such as [ 6405.572] at the beginning of the log's lines represent seconds since booting. If the pastebinned log was generated upon a fresh boot, its numbers are confirming slowness, more than 20 minutes between boot start and X startup finishing. Do you have any Linux DVDs or USB sticks with bootable Linux you could test to see how long they take to boot to a GUI desktop? Consider an upgrade to 22.04 LTS or 22.10 if yes and times are reasonable when not using 20.10.
What do sudo systemd-analyze critical-chain and sudo systemd-analyze blame report? Please post input/output here
Yes I have some usb sticks i can download a bootable version to and check load times, I will give that a try.
I have version 22.10 I do all the updates as they show up.
Code:
The time when unit became active or started is printed after the "@" character.
The time the unit took to start is printed after the "+" character.
graphical.target @2min 44.405s
└─multi-user.target @2min 44.405s
└─plymouth-quit-wait.service @2min 4.441s +39.962s
└─systemd-user-sessions.service @2min 4.353s +86ms
└─network.target @2min 4.349s
└─NetworkManager.service @1min 58.807s +5.541s
└─dbus.service @1min 52.721s +6.079s
└─basic.target @1min 52.577s
└─sockets.target @1min 52.577s
└─snapd.socket @1min 52.576s +541us
└─sysinit.target @1min 52.532s
└─systemd-resolved.service @1min 51.967s +564ms
└─systemd-tmpfiles-setup.service @1min 50.241s +1.718s
└─systemd-journal-flush.service @55.517s +54.722s
└─systemd-remount-fs.service @54.423s +1.092s
└─systemd-journald.socket @53.379s
└─system.slice @52.722s
└─-.slice @52.722s
Prepend sudo and rerun if either of those commands produce permission or command not found errors. You may need to install inxi first. If using SATA for Ubuntu's /, also run hdparm -t /dev/sda. If NVME, then do hdparm -t /dev/nvme0n1 instead.
Prepend sudo and rerun if either of those commands produce permission or command not found errors. You may need to install inxi first. If using SATA for Ubuntu's /, also run hdparm -t /dev/sda. If NVME, then do hdparm -t /dev/nvme0n1 instead.
Yes it was a typo. I installed 22.04 (fresh install on a brand new Westen Digital 2TB internal HD) upgraded to 22.10 just after installing 22.04.
Its not an old system, only a few years. 8 gigs of memory, Intel I3, although it does have on chip video.
Code:
inxi -dMC
Machine:
Type: Desktop System: HP product: HP 280 G1 ST Business PC v: 1.00
serial: <superuser required>
Mobo: HP model: 2B5B v: 1.01 serial: <superuser required> UEFI: AMI
v: A0.07 date: 11/03/2015
CPU:
Info: dual core model: Intel Core i3-4170 bits: 64 type: MT MCP cache:
L2: 512 KiB
Speed (MHz): avg: 2969 min/max: 800/3700 cores: 1: 3692 2: 3692 3: 800
4: 3695
Drives:
Local Storage: total: 1.82 TiB used: 465.64 GiB (25.0%)
ID-1: /dev/sda vendor: Western Digital model: WD20EZAZ-00L9GB0
size: 1.82 TiB
Optical-1: /dev/sr0 vendor: hp model: DVDRW DU8A6SH dev-links: cdrom
Features: speed: 24 multisession: yes audio: yes dvd: yes
rw: cd-r,cd-rw,dvd-r,dvd-ram
Code:
sudo du -sx / /var/log/journal /var/cache/apt/archives
488248788 /
The OS is clearly different, but the kernels are similar and the CPU is a close sibling, 35W TDP and 3.0GHz instead of your 65W TDP and 3.7GHz. The Seagates comprise RAID1. Booting is faster only in part because the OS runs from an SSD:
Most of the rest of the difference in startup time is surely from absence of 40s delay from plymouth-quit-wait.service and 54s delay from systemd-journal-flush.service. I would have thought sjfs in yours would be from an overabundant volume of data being written to /var/log/journal/*/*, but according to your du output, you don't have a persistent journal. I suggest you enable it by creating directory /var/log/journal, then reboot twice, and then run systemd-analyze critical-chain again to see if it impacts time consumed by systemd-journal-flush.service. Right after a boot completes, run sudo dmesg | wc -l and sudo journalctl -b | wc -l to see how much data is getting logged. Mine are 1070 and 4882, though my current uptime is 9 days, accounting for a much bigger number from the journal. Try running sudo dmesg | grep aile | less and sudo journalctl -b | grep aile | less to scan for outright failure messages. If you get a few, copy & paste here. If you get a lot, pastebin each of journal and dmesg in whole.
I don't have Plymouth installed on any OS, so can't relate how much time it should be expected to devour, but I sense 40s must be terribly excessive. It should be negligible.
A PC like yours ought to boot much faster, a little slower than the following due to HDD instead of SSD:
This only has two total threads, but boots with about the same speed as my i3-4150T, also without lengthy plymouth or systemd-journal-flush.service.
Try running smartctl -t long /dev/sda, wait the announced time for it to finish, then do smartctl -x | pastebinit so we can check if your WD operating is up to spec. A quick HD speed-only test: hdparm -t /dev/sda.
Yours is rather much alike what I'm typing from, which I run 24/7:Most of the rest of the difference in startup time is surely from absence of 40s delay from plymouth-quit-wait.service and 54s delay from systemd-journal-flush.service. I would have thought sjfs in yours would be from an overabundant volume of data being written to /var/log/journal/*/*, but according to your du output, you don't have a persistent journal. I suggest you enable it by creating directory /var/log/journal, then reboot twice, and then run systemd-analyze critical-chain again to see if it impacts time consumed by systemd-journal-flush.service. Right after a boot completes, run sudo dmesg | wc -l and sudo journalctl -b | wc -l to see how much data is getting logged. Mine are 1070 and 4882, though my current uptime is 9 days, accounting for a much bigger number from the journal. Try running sudo dmesg | grep aile | less and sudo journalctl -b | grep aile | less to scan for outright failure messages. If you get a few, copy & paste here. If you get a lot, pastebin each of journal and dmesg in whole.
I don't have Plymouth installed on any OS, so can't relate how much time it should be expected to devour, but I sense 40s must be terribly excessive. It should be negligible.
A PC like yours ought to boot much faster, a little slower than the following due to HDD instead of SSD:This only has two total threads, but boots with about the same speed as my i3-4150T, also without lengthy plymouth or systemd-journal-flush.service.
Try running smartctl -t long /dev/sda, wait the announced time for it to finish, then do smartctl -x | pastebinit so we can check if your WD operating is up to spec. A quick HD speed-only test: hdparm -t /dev/sda.
The /var/log/journal already exists There are several long alpha-numeric files in it.
Code:
The time when unit became active or started is printed after the "@" character.
The time the unit took to start is printed after the "+" character.
graphical.target @2min 19.773s
└─multi-user.target @2min 19.773s
└─plymouth-quit-wait.service @1min 40.062s +39.710s
└─systemd-user-sessions.service @1min 39.813s +246ms
└─network.target @1min 39.808s
└─NetworkManager.service @1min 34.699s +5.108s
└─dbus.service @1min 29.731s +4.963s
└─basic.target @1min 29.710s
└─sockets.target @1min 29.710s
└─snapd.socket @1min 29.709s +949us
└─sysinit.target @1min 29.614s
└─systemd-resolved.service @1min 28.271s +1.343s
└─systemd-tmpfiles-setup.service @1min 26.015s +2.210s
└─systemd-journal-flush.service @1min 6.908s +19.105s
└─systemd-journald.service @1min 5.306s +1.601s
└─systemd-journald.socket @1min 5.233s
└─-.mount @1min 4.568s
└─-.slice @1min 4.568s
This plymouth thing, I did see it was taking alot of boot time. I looked it up and I guess it comes with Ubuntu because I did not install it and I dont really think I need it. It seems to be some kind of graphical thing while booting.
Code:
sudo dmesg | wc -l
1021
Code:
sudo journalctl -b | wc -l
4873
Code:
sudo dmesg | grep aile | less
[ 88.481671] systemd[1]: File System Check on Root Device was skipped because of a failed condition check (ConditionPathExists=!/run/initramfs/fsck-root).
[ 88.570678] systemd[1]: Repartition Root Disk was skipped because all trigger condition checks failed.
[ 89.694808] systemd[1]: Platform Persistent Storage Archival was skipped because of a failed condition check (ConditionDirectoryNotEmpty=/sys/fs/pstore).
[ 102.175949] spi-nor: probe of spi0.0 failed with error -22
I tried to install smartmontools and cannot.
I got this after running hdparm -t /dev/sda
/dev/sda:
Timing buffered disk reads: 630 MB in 3.00 seconds = 209.85 MB/sec
Thanks
Plymouth is a howitzer used to quiet a chirping bird; bloatware installed by default unnecessarily on too many distros. It provides a GUI curtain to hide boot process messages. The OS doesn't need it do do its normal work. How much time it ought to consume I can't say, but you ought to be able to reduce your own boot time by up to about 40s by uninstalling it.
On a 3-4 year newer system I get this immediately on boot completion:
sudo dmesg | grep aile | less and sudo journalctl -b | grep aile | less were for local examination of selected lines out of those logs. man less. To pastebin you replace less with pastebinit.
Quote:
/var/log/journal already exists There are several long alpha-numeric files in it.
/var/log/journal on all of my installations has but one file in it, a subdirectory. That subdirectory contains large files on systems with persistent journal enabled. If the journal subdirectory contains more than one subdirectory, something is wrongly configured. Long alpha-numerically named files are expected in that subdirectory. They comprise the persistent journal. If there are lots and lots of files or lots of files with old dates you can gain some disk space by reconfiguring /etc/systemd/journald.conf to limit the age and/or file count and/or size, etc. Excerpts from mine:
Code:
SystemMaxFiles=10
RuntimeMaxFiles=12
Your hdparm 209.85 MB/sec looks in range for your HDD.
Plymouth is a howitzer used to quiet a chirping bird; bloatware installed by default unnecessarily on too many distros. It provides a GUI curtain to hide boot process messages. The OS doesn't need it do do its normal work. How much time it ought to consume I can't say, but you ought to be able to reduce your own boot time by up to about 40s by uninstalling it.
On a 3-4 year newer system I get this immediately on boot completion:
sudo dmesg | grep aile | less and sudo journalctl -b | grep aile | less were for local examination of selected lines out of those logs. man less. To pastebin you replace less with pastebinit.
/var/log/journal on all of my installations has but one file in it, a subdirectory. That subdirectory contains large files on systems with persistent journal enabled. If the journal subdirectory contains more than one subdirectory, something is wrongly configured. Long alpha-numerically named files are expected in that subdirectory. They comprise the persistent journal. If there are lots and lots of files or lots of files with old dates you can gain some disk space by reconfiguring /etc/systemd/journald.conf to limit the age and/or file count and/or size, etc. Excerpts from mine:
Code:
SystemMaxFiles=10
RuntimeMaxFiles=12
Your hdparm 209.85 MB/sec looks in range for your HDD.
apt install smartmontools worked for me on Jammy.
I stopped Plymouth then unistalled it and there is no change in boot time at all, not only that, now Ive got a two more irq error messages at boot.
I am pretty sure SNAP is a Ubunto only thing and I have read that it is integrated into ubuntu and cannot be removed. I did end u disabling snap for firefox because firefox that came with Ubuntu would not run properly, after doing that I downloaded FF right from the Mozilla website and FF works like it should.
I have come to the conclusion that this is a hardware issue. I am going to open the box and check for jumper settings on the HD and MB and disconnect all USB devices, double check the HD is plugged in correctly and using the correct ribbon cable and reset the BIOS to see if anything changes.
I checked the HD and motherboard and jumpers are correct, I unistalled plymouth and disabled bluman (but it came back )
I unplugged the keyboard and mouse and rebooted and nothing changed.
These look to be the culprits as to why its taking so long to boot:
My memory fails me on this. It's been a long time since this happened to me. If /etc/hostname or /etc/resolv.conf are symlinks, try renaming them and create real files with those names, with real content. Also, ensure your IP is properly placed in your /etc/hosts file.
My memory fails me on this. It's been a long time since this happened to me. If /etc/hostname or /etc/resolv.conf are symlinks, try renaming them and create real files with those names, with real content. Also, ensure your IP is properly placed in your /etc/hosts file.
What does hostnamectl have to report?
I ended up formatting the drive and installing a different version of ubuntu, it was not just the hostname that was taking forever it was the bios error messages and other things during boot that were slowing things down to over three minutes just to get to the gui. I installed ubuntu (minimal) on another system and it ran really fast with no problems I decided to do the same, so I installed Xubuntu and it still has the bios erros but down to one and a half minutes to boot. but of course there are other issues now......
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.