Faster boot tips for linux?
What are your tips for faster boots? My system seems to hang a bit at POST until it boots into Mint. Right after post I'll get a blinking cursor for about a full minute until it boots in. All ssd, so I know it's something I must have done wrong. It's also a 14 year old processor (amd fx be 8 core, rx580), but win### booted faster on it.
Xanza
in reply to applemao • • •Mint uses systemd, so just use it;
systemd-analyze
/systemd-analyze blame
.You can also visualize it;
Nanook
in reply to applemao • •applemao
in reply to applemao • • •Thank you all so much for your help, here is my output of systemd:
It must be something weird with my initial boot. I am dual booting, but on separate hard drives. My PC does have 6 hard drives in it however. Or, maybe something is messed up in my install?
DaGeek247
in reply to applemao • • •fstrim.service is disk tool (that's supposed to only be run once a week, not every time you boot) that automatically cleans up old deleted SSD data. opensource.com/article/20/2/tr…
It looks like it's running too often, or on the wrong devices, every time you boot your computer. You can actually safely disable it; askubuntu.com/questions/116512… but it's worth looking into why it's taking so long and being run so often.
Running this should show you the log results of fstrim doing it's thing without actually doing anything;
sudo fstrim --fstab --verbose --dry-run
These two will show the status of fstrim and it's autorun service;
systemctl status fstrim systemctl status fstrim.timer
I got most of this from a quick google search; duckduckgo.com/?q=fstrim.servi… You can do the same for the other major time-takers on your boot list. For comparison, here's the top results of my semi-fresh install of linux mint;
Fstrim is causing high boot time
Ask Ubuntupalordrolap
in reply to applemao • • •On my last computer I found that the boot process was looking for things that weren't there but that the motherboard had rudimentary functionality for like a floppy drive. It didn't even have a connector for one.
For whatever reason, that caused a 10-30 second delay while the kernel tried to determine if there was a floppy drive connected. Pretty sure I had everything disabled via the BIOS but apparently it wasn't disabled enough and the kernel could still see it.
That required throwing something into the system config, probably somewhere in /etc/modprobe.d, to blacklist that particular kernel module.
There was another problematic module as well; I can't remember what that was, but I'm pretty sure it was the same fix. Got the boot time to login screen down to less than 10 seconds.
But all that said, even on this computer where the boot time is pretty quick, I usually put the computer into suspend mode to keep times down.