19.1 slow to start [SOLVED]
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
19.1 slow to start [SOLVED]
Hi All, just moved over from Ubuntu after many years. Loving 19.1.
But and yeah, there is always a "but," it is slow to start. On every boot/reboot I have to sit through 7 or 8 full cycles of the green and white dots rolling through. I have it set up with dual boot and Ubutnu-16.04 but 19.01 is the first item on the Grub menu. If I select the Ubuntu option it boots through to the login in about 2-seconds.
Is there something I can do to speed Mint up? I am a programmer and rebooting is something that can need to happen many times a day. {gasp!}
But and yeah, there is always a "but," it is slow to start. On every boot/reboot I have to sit through 7 or 8 full cycles of the green and white dots rolling through. I have it set up with dual boot and Ubutnu-16.04 but 19.01 is the first item on the Grub menu. If I select the Ubuntu option it boots through to the login in about 2-seconds.
Is there something I can do to speed Mint up? I am a programmer and rebooting is something that can need to happen many times a day. {gasp!}
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 3 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: 19.1 slow to start
Probably.
Then you should know that you need to supply information about your problem; could you fix your software if someone said "it's too slow", with no other information?I am a programmer and rebooting is something that can need to happen many times a day. {gasp!}
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Your data and OS are backed up....right?
Re: 19.1 slow to start
information that would be useful can be done by copy and paste to the terminal, the commands i will list below...DAMIEN
System Specs.
System Start Up Time
System Start Up Programs etc.
System Specs.
Code: Select all
inxi -Fxz
Code: Select all
systemd-analyze
Code: Select all
systemd-analyze blame
Re: 19.1 slow to start
Thank you for the reply. And, should I know what information I needed to supply when asking in a Help forum and I get "we need to know more information?"
Perhaps a quick read of Damien1307's excellent reply might prove beneficial to you. Just because I am a programmer I am not also a mind-reader nor anywhere near an expert on Ubuntu/Linux/Mint. et al. If I knew where to look I would not need to ask. No?
Re: 19.1 slow to start
Thanks Damien, gathering it as I type. Is the last command supposed to be running forever? I get a message about closing an active process after I start it and then try to close the terminal.DAMIEN1307 wrote: ⤴Fri Dec 14, 2018 1:20 pm information that would be useful can be done by copy and paste to the terminal, the commands i will list below...DAMIEN
Re: 19.1 slow to start
Yes, you should.LostAndDazed wrote: ⤴Fri Dec 14, 2018 2:24 pm Thank you for the reply. And, should I know what information I needed to supply when asking in a Help forum and I get "we need to know more information?"
Because right above your post it says, with a link:
and you didn't do what it says.Forum rules
Before you post please read how to get help
Not at all.Perhaps a quick read of Damien1307's excellent reply might prove beneficial to you.
No. Are you actually claiming you haven't heard of that "google" thing? And also that you can't see the search box on the forum?Just because I am a programmer I am not also a mind-reader nor anywhere near an expert on Ubuntu/Linux/Mint. et al. If I knew where to look I would not need to ask. No?
Code: Select all
linux mint show startup time
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Your data and OS are backed up....right?
Re: 19.1 slow to start
OK, I suspect the problem is the apt-daily is causing it as there is no Internet at that time.
How do I disable apt from looking?
I had already disabled the Linux Mint Update manager in Startup programs to prevent such shenanigans.
Thanks again.
How do I disable apt from looking?
I had already disabled the Linux Mint Update manager in Startup programs to prevent such shenanigans.
Thanks again.
userx@userx-ACERx2:~$ systemd-analyze
Startup finished in 37.001s (kernel) + 32.993s (userspace) = 1min 9.995s
graphical.target reached after 2.096s in userspace
userx@userx-ACERx2:~$ systemd-analyze blame
30.920s apt-daily.service
627ms apt-daily-upgrade.service
596ms dev-sda5.device
520ms setvtrgb.service
Re: 19.1 slow to start
And, you know that how? Oh wait, sarcasm is what I was missing in my search terms I guess. Let's not turn this into a pi55ing competition.
I did in fact search here before asking and found a few things related to Mint-18. I tried those and nothing has made a difference. In fact I also did found that "apt-daily" in Ubuntu was causing similar issues. I then tried several things suggested there to delay the DailyTimer but they made no difference either. So, I feel comfortable that I did do some research.
Having thought about it some more, I remembered a similar problem I had when installing Ubuntu 16.04 some years back. I am using an SSD and had installed it without a Swap Partition. I went back through my notes and found the quote below.
I also found some references to Mint-19 and the same Swap issue. At first I discounted that idea for Mint-19 as Ubuntu 18.04 is no longer dependent on the Swap file, so I assumed since Mint-19 is based on that, then it too would not be a Swap file issue. I will now go back and play with that option and see if that fixes it.
Fingers crossed.Ubuntu 16.04 Slow Start
OR Message at boot about a CRYPTFILE ...
sudo nano /etc/crypttab
cryptswap1 /swapfile /dev/urandom swap,offset=1024,cipher=aes-xts-plain64
Check also that your /etc/fstab file ends with:
/swapfile none swap sw 0 0
/dev/mapper/cryptswap1 none swap sw 0 0
Re: 19.1 slow to start
OK, none of that worked either. But at least the apt-daily is no longer there. But something is eating that 36-second start up. Only a few seconds seem to deserve any "blame,"
Startup finished in 36.340s (kernel) + 2.170s (userspace) = 38.511s
graphical.target reached after 2.159s in userspace
systemd-analyze blame
548ms dev-sda5.device
545ms setvtrgb.service
457ms upower.service
343ms udisks2.service
337ms NetworkManager.service
292ms networkd-dispatcher.service
291ms systemd-journal-flush.service
277ms accounts-daemon.service
240ms systemd-udev-trigger.service
230ms ModemManager.service
206ms ubuntu-system-adjustments.service
203ms avahi-daemon.service
202ms apport.service
200ms hddtemp.service
199ms systemd-cryptsetup@cryptswap1.service
198ms systemd-logind.service
193ms grub-common.service
182ms networking.service
159ms alsa-restore.service
155ms thermald.service
154ms wpa_supplicant.service
154ms lvm2-monitor.service
152ms lm-sensors.service
lines 1-23...skipping...
Re: 19.1 slow to start
Woo hoo -- fixed, it is so fast now I don't even get to see the Splash screen.
Re: 19.1 slow to start [FIXED]
Now all you need to do is contribute the "FIX" to the forum as to just how you did fix it so others can be helped as well...DAMIEN
Re: 19.1 slow to start
Great! yes, how did you fix it? please! thank you.LostAndDazed wrote: ⤴Sat Dec 15, 2018 5:14 pm Woo hoo -- fixed, it is so fast now I don't even get to see the Splash screen.
Re: 19.1 slow to start [FIXED er, um -- SOLVED]
OK, just playing with you, I will also fix the "FIXED"
I thought I had been abandoned after providing the data requested and daring to talk-back to the old hand requesting information but not stating which or what information.
OK, enough of that: It was a Swap file issue as I had surmised. So I dug farther back through my notes as I recalled I had this issue after installing a Ubuntu-17.01 early Beta, way back when.
I tried adding a 1.6GB Swap Partition and it suddenly came good, but that is not a good solution for an SSD. So, dug a little farther back in my notes. The fix is to stop it searching for a non existent Swap Partition. After the fix, I was then able to remove the Swap Partition and save the SSD wear life a little.
I thought I had been abandoned after providing the data requested and daring to talk-back to the old hand requesting information but not stating which or what information.
OK, enough of that: It was a Swap file issue as I had surmised. So I dug farther back through my notes as I recalled I had this issue after installing a Ubuntu-17.01 early Beta, way back when.
I tried adding a 1.6GB Swap Partition and it suddenly came good, but that is not a good solution for an SSD. So, dug a little farther back in my notes. The fix is to stop it searching for a non existent Swap Partition. After the fix, I was then able to remove the Swap Partition and save the SSD wear life a little.
Do this
sudo xed /etc/default/grub
Change this line
GRUB_CMDLINE_LINUX_DEFAULT ... // whatever else may be here
To include noresume
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash noresume"
Then do
sudo update-grub
Re: 19.1 slow to start [FIXED er, um -- SOLVED]
Great!LostAndDazed wrote: ⤴Sun Dec 16, 2018 1:51 pm The fix is to stop it searching for a non existent Swap Partition.
Just to add a better point for most cases:
-not like that.Do this
sudo xed /etc/default/grub
Do any of the the following instead:
Code: Select all
gksudo xed /etc/default/grub (this is for systems that are pre-polkit[pkexec] integration that use gksudo/kdesudo such as any Ubuntu before 18.04 and anything before Mint 19)
sudoedit /etc/default/grub (set default editor, for example: https://forums.linuxmint.com/viewtopic.php?p=1460757#p1460757)
xed admin:///etc/default/grub (using elevated permission via gvfs methodology)
pkexec xed /etc/default/grub (if you already set polkit file for policy on xed)
Re: 19.1 slow to start [FIXED er, um -- SOLVED]
Can I ever get anything correct? {sigh}
I had tried using gksudo but it was not installed and I hate adding stuff for one-time or very limited use use, besides gksudo is for sissies. Perhaps I should have shown the code below but for what is needed that bare sudo works fine.
Code: Select all
sudo -i xed /etc/grub/default
Re: 19.1 slow to start [FIXED er, um -- SOLVED]
LostAndDazed wrote: ⤴Tue Dec 18, 2018 12:09 pm I had tried using gksudo but it was not installed ...
gksudo
is no longer available in LM 19.x/Ubuntu 18.04 onwards.FWIW,... besides gksudo is for sissies
Graphical sudo
You should never use normal sudo to start graphical applications as root. You should use gksudo (kdesudo on Kubuntu) to run such programs. gksudo sets HOME=~root, and copies .Xauthority to a tmp directory. This prevents files in your home directory becoming owned by root. (AFAICT, this is all that's special about the environment of the started process with gksudo vs. sudo).
https://help.ubuntu.com/community/RootS ... hical_sudo