Slow boot times in Linux Lite? - Printable Version +- Linux Lite Forums (https://www.freecinema2022.gq/forums) +-- Forum: Hardware - Support (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=6) +--- Forum: Start up and Shutdown (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=27) +--- Thread: Slow boot times in Linux Lite? (/showthread.php?tid=8703) |
Slow boot times in Linux Lite? - Valtam - 02-18-2023 Bottom line, you can't blame an OS for slow boot times. It's so easy to generalize rather than confront the actual issue. Think about this logically - if we are using exactly the same operating system and version, and my pc boots fast, and yours does not, then what is the variable here...it can't be my computer or operating system that is the issue. Slow boot times in Linux generally are due to some common factors. Here you will find a summary of these: What conditions promote a slower boot time? - Older Hardware - Low spec hardware - you can have the latest computer, but that doesn't necessarily translate to a 'fast modern machine'. You can still have slow boot times on a brand new pc. - Using DHCP on your Network adapter - A failing hard disk, SSD, NVME etc - Devices with poor driver support, or an out-of-date or unmaintained/unsupported driver Reports you can run that will help you pin point the issue: Show which services are taking the longest to start up. Overall boot time: Open a Terminal. Code: VirtualBox:~$ systemd-analyze time Loading time of each service: Code: VirtualBox:~$ systemd-analyze blame Code: VirtualBox:~$ systemd-analyze critical-chain List enabled boot services: Code: VirtualBox:~$ systemctl list-unit-files --type=service | grep enabled Stop a service that you are NOT using (needs both the stop and disable flag) eg. If you don't have or need Bluetooth: Code: sudo systemctl stop bluetooth.service NOTE: DO NOT DISABLE A SERVICE BEFORE UNDERSTANDING EXACTLY WHAT IT DOES. You may end up with an unbootable computer. But how do I know what is safe to disable and what is not? Ask us first Confirm the service has been stopped: Code: VirtualBox:~$ systemctl status bluetooth.service A disabled service can be started by another service. If you really want it dead, without uninstalling it, then you can mask it to prevent it from starting under any circumstances: Code: VirtualBox:~$ sudo systemctl mask bluetooth.service Generate a list of all services: Code: VirtualBox:~$ systemctl list-unit-files --type=service Network The Networking Service is a common issue for many people and the following change will remedy most situations. If after running the above commands you find that your Network device takes a long time to come up, then try setting a Static IP address as demonstrated here - https://www.freecinema2022.gq/manual/network.html under the heading 'Connecting to the Internet - Wired' (solution works for Wireless devices too). Is my internal or external storage device (HDD, SSD, NVME) responsible? Example, you run the following command and get the following output: Code: VirtualBox:~$ systemd-analyze blame You're looking for a reference to sda or sdb, or just sd something. Here, it's dev-sda1.device and look, after the NetworkManager-wait-online.service is started, it takes another 58 seconds (approx) to run the sd or disk service. Bingo, our issue is either a slow or failing storage device. Sleep or Hibernate Instead of shutting your computer down, consider putting it into Sleep or Hibernate mode. A simple and fast resolution. Old computer Example: You're running a machine that was built from 2000-2015 with a mechanical hard drive, you could experience slow boot times. Slow computer You could have a slow computer. Even if it was built and released this year, if the internal components are cheap and or low spec, this could be the reason your boot times are slow. Unsupported computer Example, you're running Linux Lite on a Chromebook. Linux Lite is not designed specifically for this hardware. You cannot make your expectations match hardware that an operating system did not have in mind when it was created. Upgrade some of your computer components Running 4gb of memory? Yes, linux will run on low end machines, but that doesn't mean it's going to run like a powerhouse. Get the fastest memory your computer supports and increase the amount for example from 4gb to 8gb of memory. Upgrade to a fast SSD. Mechanical hard drives are slow and more prone to failure. I can't count on my fingers how many older computers I've transformed in an instant by simply throwing out the old hard drive and installing an SSD. "But when I run Windows it boots so much faster" Windows and Linux have completely different software in terms of kernels and init (types of initializing systems). This is not a valid argument. Consider also that you can get drivers for almost any computer Windows was designed for, and that PC makers on the whole do not build computers for linux, they're manufactured and supported largely for the Windows operating system. I'm running Linux Lite via a DVD or USB Live Running Linux Lite from a DVD, USB or external device will give you poor performance. The purpose of a Live system is for you to 'test drive' the features and hardware support before committing to an installation. |