I’m planning to use Ubuntu Server. As you can see LibreELEC has best boot time of 18 sec.
I wonder is it possible to decrease Ubuntu Server boot time up to 20 sec at least and how to do that?
It would be better for me if there is some possibility to cut off some parts of existing distribution. May be disable some services, etc. I’m newbie in that and have lack of deep knowledge of linux.
Better stick to some clean and supported Linux, best would be Rockpi 4 - Armbian where experienced people already did this job for you. Standard (Debian like) Linux needs some time to put up necessary services. There is nothing you don’t need or something that would slow you down for no reason.
Only (usually) single task custom Linux OS can boot faster … which is also seen from your experiment (OpenElec = “just enough OS to run KODI”).
@pbies I am using Ubuntu Server, and using M.2 NVME SSD, but boot time is 30 seconds. Do I have to do anything related to SPI flash or something else? 30 seconds is really a lot for SSD boot. I don’t understand how you are achieving few secs.
My kernel is 5, not 4. I power the system, it takes 30 seconds until Linux starts showing boot messages, and then enters the main desktop screen. Until that moment, screen is dark.
Try first running once unminimize script to make written image working properly. Maybe at boot time (before login) the script is run and fails. Without syslog there can’t be much said about what happens in boot time.
Also run:
apt update
apt upgrade
for all packages after that reboot and search for syslog file.