[SOLVED] Slow Boot - was OK until recently

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Relative
Level 3
Level 3
Posts: 131
Joined: Fri Jul 30, 2010 9:43 pm
Location: Garden Grove, CA

[SOLVED] Slow Boot - was OK until recently

Post by Relative »

Had not restarted this laptop for some time. When I finally did a restart, it took 2:16 minutes to come up to the log in prompt. This laptop had normally booted in just a few seconds. I tried some of the recommended checks and cannot interpret the systemd outputs. Can someone please deciper and explain for me?

inxi -Fxxxxz
  • System: Kernel: 5.4.0-81-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 Desktop: MATE 1.24.0 info: mate-panel
    wm: marco 1.24.0 dm: LightDM 1.30.0 Distro: Linux Mint 20.2 Uma base: Ubuntu 20.04 focal
    Machine: Type: Portable System: Dell product: Dell System Inspiron N7110 v: N/A serial: <filter> Chassis: type: 8 v: 0.1
    serial: <filter>
    Mobo: Dell model: 0YH79Y v: A00 serial: <filter> UEFI [Legacy]: Dell v: A13 date: 09/05/2012
    Battery: ID-1: BAT0 charge: 73.3 Wh condition: 73.3/73.3 Wh (100%) volts: 12.4/11.1 model: SIMPLO Dell type: Li-ion
    serial: <filter> status: Full
    Device-1: hidpp_battery_0 model: Logitech Marathon Mouse/Performance Plus M705 serial: <filter>
    charge: 100% (should be ignored) rechargeable: yes status: Discharging
    CPU: Topology: Quad Core model: Intel Core i7-2670QM bits: 64 type: MT MCP arch: Sandy Bridge rev: 7 L2 cache: 6144 KiB
    flags: avx lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 35087
    Speed: 797 MHz min/max: 800/3100 MHz Core speeds (MHz): 1: 797 2: 797 3: 797 4: 798 5: 797 6: 798 7: 797 8: 797
    Graphics: Device-1: Intel 2nd Generation Core Processor Family Integrated Graphics vendor: Dell driver: i915 v: kernel
    bus ID: 00:02.0 chip ID: 8086:0116
    Display: x11 server: X.Org 1.20.11 driver: modesetting unloaded: fbdev,vesa compositor: marco v: 1.24.0
    resolution: 1600x900~60Hz
    OpenGL: renderer: Mesa DRI Intel HD Graphics 3000 (SNB GT2) v: 3.3 Mesa 21.0.3 compat-v: 3.0 direct render: Yes
    Audio: Device-1: Intel 6 Series/C200 Series Family High Definition Audio vendor: Dell driver: snd_hda_intel v: kernel
    bus ID: 00:1b.0 chip ID: 8086:1c20
    Sound Server: ALSA v: k5.4.0-81-generic
    Network: Device-1: Intel Centrino Wireless-N 1030 [Rainbow Peak] driver: iwlwifi v: kernel port: efa0 bus ID: 01:00.0
    chip ID: 8086:008a
    IF: wlp1s0 state: up mac: <filter>
    Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Dell driver: r8169 v: kernel port: 2000
    bus ID: 03:00.0 chip ID: 10ec:8168
    IF: enp3s0 state: down mac: <filter>
    Drives: Local Storage: total: 989.78 GiB used: 662.55 GiB (66.9%)
    ID-1: /dev/sda vendor: Samsung model: SSD 870 QVO 1TB size: 931.51 GiB speed: 6.0 Gb/s serial: <filter> rev: 1B6Q
    scheme: MBR
    ID-2: /dev/sdb type: USB vendor: Generic model: Multi-Card size: 58.27 GiB serial: <filter> rev: 1.00 scheme: MBR
    Partition: ID-1: / size: 76.40 GiB used: 10.73 GiB (14.0%) fs: ext4 dev: /dev/sda1
    ID-2: /home size: 838.99 GiB used: 625.33 GiB (74.5%) fs: ext4 dev: /dev/sda2
    Sensors: System Temperatures: cpu: 67.0 C mobo: 45.0 C sodimm: 43.0 C
    Fan Speeds (RPM): cpu: 3098
    Info: Processes: 244 Uptime: 28m Memory: 7.67 GiB used: 1.28 GiB (16.7%) Init: systemd v: 245 runlevel: 5 Compilers:
    gcc: 9.3.0 alt: 9 Shell: bash v: 5.0.17 running in: mate-terminal inxi: 3.0.38
  • systemd-analyze
    Startup finished in 34.401s (kernel) + 1min 31.617s (userspace) = 2min 6.018s
    graphical.target reached after 1min 31.600s in userspace
  • systemd-analyze blame
    1.188s accounts-daemon.service
    1.076s udisks2.service
    931ms bluetooth.service
    928ms avahi-daemon.service
    924ms NetworkManager.service
    898ms networkd-dispatcher.service
    896ms polkit.service
    871ms thermald.service
    868ms systemd-logind.service
    868ms wpa_supplicant.service
    835ms kerneloops.service
    829ms gpu-manager.service
    825ms hddtemp.service
    795ms smartmontools.service
    794ms ubuntu-system-adjustments.service

  • systemd-analyze critical-chain
    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 @1min 31.600s
    └─multi-user.target @1min 31.599s
    └─getty.target @1min 31.599s
    └─getty@tty1.service @1min 31.599s
    └─system-getty.slice @1min 31.597s
    └─setvtrgb.service @1min 31.591s +4ms
    └─systemd-user-sessions.service @1min 31.385s +13ms
    └─network.target @1min 31.377s
    └─NetworkManager.service @1min 30.615s +761ms
    └─dbus.service @1min 30.610s
    └─basic.target @1min 30.484s
    └─sockets.target @1min 30.484s
    └─uuidd.socket @1min 30.484s
    └─sysinit.target @1min 30.476s
    └─systemd-backlight@leds:dell::kbd_backlight.service @1.243s +14ms
    └─system-systemd\x2dbacklight.slice @829ms
    └─system.slice @289ms
    └─-.slice @289ms
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Mate 21.3 - MacBookPro2,1, MacBook2,1
Mate 21.3 - ThinkPad L430, ThinkPad T430, Dell N7110, iMac8.1, Toshiba A215
Mate 19.3 - (32-bit version) Old home-built P4 desktop.
Raspbian - Pi3 & Pi4.
All except P4 machine run cancer research 24/7.
SimonPeter
Level 5
Level 5
Posts: 582
Joined: Tue Jul 13, 2021 5:13 am

Re: Slow Boot - was OK until recently

Post by SimonPeter »

Try disabling automount for all partitions except / and /home (by commenting out those entries in /etc/fstab) and removing all unneeded drives/external devices.

If you wish, posting the output of cat /etc/fstab may be helpful.

AFAIK, such problems are frequently caused by incorrect entries in /etc/fstab
Relative
Level 3
Level 3
Posts: 131
Joined: Fri Jul 30, 2010 9:43 pm
Location: Garden Grove, CA

Re: Slow Boot - was OK until recently

Post by Relative »

Seems pretty basic to me. Don't remember why the "errors=remount-ro" entry was made
Mike

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda1 during installation
UUID=a119ef51-07c5-4577-a263-302fdc14a9b9 / ext4 errors=remount-ro 0 1
# /home was on /dev/sda2 during installation
UUID=9e5d1f61-11f0-4e98-ad91-59a1e081cbbf /home ext4 defaults 0 2
# swap was on /dev/sda3 during installation
UUID=996d43dc-adc1-403b-a395-f327930320f9 none swap sw 0 0
Mate 21.3 - MacBookPro2,1, MacBook2,1
Mate 21.3 - ThinkPad L430, ThinkPad T430, Dell N7110, iMac8.1, Toshiba A215
Mate 19.3 - (32-bit version) Old home-built P4 desktop.
Raspbian - Pi3 & Pi4.
All except P4 machine run cancer research 24/7.
Relative
Level 3
Level 3
Posts: 131
Joined: Fri Jul 30, 2010 9:43 pm
Location: Garden Grove, CA

Re: Slow Boot - was OK until recently

Post by Relative »

Going through the logs I found the following entry - this took 1min 30sec of wait time:

[ TIME ] Timed out waiting for device /dev/disk/by-uuid/996d43dc-adc1-403b-a395-f327930320f9.
[DEPEND] Dependency failed for /dev/disk/by-uuid/996d43dc-adc1-403b-a395-f327930320f9.
[DEPEND] Dependency failed for Swap.

I don't know what device has that uuid. Swap's uuid is different.
The only external drive I have is a 64G SD card for Timeshift. Pulled it and it doesn't make any difference.
The other external item is a wireless mouse on a dongle. Also no difference. (Using it because the touchpad on the laptop has failed.)

Mike
Mate 21.3 - MacBookPro2,1, MacBook2,1
Mate 21.3 - ThinkPad L430, ThinkPad T430, Dell N7110, iMac8.1, Toshiba A215
Mate 19.3 - (32-bit version) Old home-built P4 desktop.
Raspbian - Pi3 & Pi4.
All except P4 machine run cancer research 24/7.
BeyondLies_MintForum
Level 3
Level 3
Posts: 187
Joined: Wed Aug 14, 2019 1:23 pm

Re: Slow Boot - was OK until recently

Post by BeyondLies_MintForum »

Have you tried blkid (with sudo) as recommended by the fstab file?
Relative
Level 3
Level 3
Posts: 131
Joined: Fri Jul 30, 2010 9:43 pm
Location: Garden Grove, CA

Re: Slow Boot - was OK until recently

Post by Relative »

sudo blkid

/dev/sda1: LABEL="/" UUID="a119ef51-07c5-4577-a263-302fdc14a9b9" TYPE="ext4" PARTUUID="0de19403-01"
/dev/sda2: LABEL="/home" UUID="9e5d1f61-11f0-4e98-ad91-59a1e081cbbf" TYPE="ext4" PARTUUID="0de19403-02"
/dev/sda3: LABEL="Swap" UUID="47254cd6-679e-4c99-8edc-ee9b9db2b882" TYPE="swap" PARTUUID="0de19403-03"
/dev/sdb1: UUID="14203cd2-7a86-4f76-9fa5-bb04eb1bc5a3" TYPE="ext4" PARTUUID="dd165a00-01"

All valid. Still have no idea who that UUID in previous timeout belongs to.

Mike
Mate 21.3 - MacBookPro2,1, MacBook2,1
Mate 21.3 - ThinkPad L430, ThinkPad T430, Dell N7110, iMac8.1, Toshiba A215
Mate 19.3 - (32-bit version) Old home-built P4 desktop.
Raspbian - Pi3 & Pi4.
All except P4 machine run cancer research 24/7.
Relative
Level 3
Level 3
Posts: 131
Joined: Fri Jul 30, 2010 9:43 pm
Location: Garden Grove, CA

Re: Slow Boot - was OK until recently

Post by Relative »

Is there a UUID assigned to the touchpad? I can't find any reference to it.

Mike
Mate 21.3 - MacBookPro2,1, MacBook2,1
Mate 21.3 - ThinkPad L430, ThinkPad T430, Dell N7110, iMac8.1, Toshiba A215
Mate 19.3 - (32-bit version) Old home-built P4 desktop.
Raspbian - Pi3 & Pi4.
All except P4 machine run cancer research 24/7.
Relative
Level 3
Level 3
Posts: 131
Joined: Fri Jul 30, 2010 9:43 pm
Location: Garden Grove, CA

Re: Slow Boot - was OK until recently

Post by Relative »

Is there a UUID assigned to the touchpad? I can't find any reference to it.

Am going to step away and boot Mate 20.2 from live USB to note any difference.

Mike

Took 19 seconds to boot from USB3. Of course, the touchpad still doesn't work for whatever reason.

Dinner guests arriving. Will continue later tonight.
Thanks for your efforts.
Mike
Mate 21.3 - MacBookPro2,1, MacBook2,1
Mate 21.3 - ThinkPad L430, ThinkPad T430, Dell N7110, iMac8.1, Toshiba A215
Mate 19.3 - (32-bit version) Old home-built P4 desktop.
Raspbian - Pi3 & Pi4.
All except P4 machine run cancer research 24/7.
SimonPeter
Level 5
Level 5
Posts: 582
Joined: Tue Jul 13, 2021 5:13 am

Re: Slow Boot - was OK until recently

Post by SimonPeter »

sudo sed -i 's/996d43dc-adc1-403b-a395-f327930320f9/47254cd6-679e-4c99-8edc-ee9b9db2b882/g' /etc/fstab (followed by a reboot) may be the solution.
Relative wrote: Fri Sep 10, 2021 10:09 pm sudo blkid
/dev/sda3: LABEL="Swap" UUID="47254cd6-679e-4c99-8edc-ee9b9db2b882" TYPE="swap" PARTUUID="0de19403-03"
Current UUID of /dev/sda3 (Swap) = 47254cd6-679e-4c99-8edc-ee9b9db2b882
Relative wrote: Fri Sep 10, 2021 8:00 pm # /etc/fstab: static file system information.
# swap was on /dev/sda3 during installation
UUID=996d43dc-adc1-403b-a395-f327930320f9 none swap sw 0 0
UUID of /dev/sda3 (Swap) during installation (the UUID in /etc/fstab) = 996d43dc-adc1-403b-a395-f327930320f9

The swap UUID has changed from the one assigned at installation (Have you formatted / regenerated UUID for the swap ?).

Please chage the swap UUID in /etc/fstab to the current one. ie.
sudo sed -i 's/996d43dc-adc1-403b-a395-f327930320f9/47254cd6-679e-4c99-8edc-ee9b9db2b882/g' /etc/fstab

Please note that this command won't work for anyone except the OP with his/her current partition layout (UUIDs of partitions used).

A general solution is to sudo xed /etc/fstab and comment out the unnecessary lines (by adding a # in front of the unnecessary lines).
Last edited by SimonPeter on Mon Sep 20, 2021 12:56 pm, edited 1 time in total.
Relative
Level 3
Level 3
Posts: 131
Joined: Fri Jul 30, 2010 9:43 pm
Location: Garden Grove, CA

Re: Slow Boot - was OK until recently

Post by Relative »

You are correct. I created the Swap partition after the installation. Never noticed the difference in the UUID. I suspect you are correct in that it is the problem; however, I cannot test for that at the moment.

I mentioned earlier that my touchpad wasn't working. Last evening I took the laptop apart (for the umpteenth time) to attempt to figure out if the touchpad was bad or something else was the problem. In the process I messed up a cable connector that now keeps me from booting the laptop. I ordered a replacement along with a replacement touchpad. Until they get here, I won't be able to pursue this problem.

I will definitely provide feedback/information to continue this problem to its resolution.

Until then....
Mike
Mate 21.3 - MacBookPro2,1, MacBook2,1
Mate 21.3 - ThinkPad L430, ThinkPad T430, Dell N7110, iMac8.1, Toshiba A215
Mate 19.3 - (32-bit version) Old home-built P4 desktop.
Raspbian - Pi3 & Pi4.
All except P4 machine run cancer research 24/7.
SimonPeter
Level 5
Level 5
Posts: 582
Joined: Tue Jul 13, 2021 5:13 am

Re: Slow Boot - was OK until recently

Post by SimonPeter »

Relative wrote: Sat Sep 11, 2021 8:55 pm I mentioned earlier that my touchpad wasn't working. Last evening I took the laptop apart (for the umpteenth time) to attempt to figure out if the touchpad was bad or something else was the problem. In the process I messed up a cable connector that now keeps me from booting the laptop. I ordered a replacement along with a replacement touchpad. Until they get here, I won't be able to pursue this problem.
Could have booted up live and checked the touchpad.
Relative wrote: Sat Sep 11, 2021 8:55 pm You are correct. I created the Swap partition after the installation. Never noticed the difference in the UUID.
UUID stands for "Universally Unique IDentifier".
(50% probability for two them to be equal is in the order of quintillions)
Ref: https://en.wikipedia.org/wiki/Universal ... 4_(random)

It is a random number made at the time you assign the UUID.
It is used to avoid confusion.
(/dev/sda1 may become /dev/sdb1 on a different OS / live system , but, their UUIDs remain constant irrespective of the environment)
Relative
Level 3
Level 3
Posts: 131
Joined: Fri Jul 30, 2010 9:43 pm
Location: Garden Grove, CA

Re: Slow Boot - was OK until recently

Post by Relative »

The part I need to fix the Dell laptop that had the failure will be a month coming from China. I moved the drive into a ThinkPad (same problem showed up). Then I entered sudo sed -i 's/996d43dc-adc1-403b-a395-f327930320f9/47254cd6-679e-4c99-8edc-ee9b9db2b882/g' /etc/fstab as you suggested and the huge delay in boot time is gone! The fix is much appreciated.

In moving the drive I discovered that the touchpad still didn't work - even in the different laptop. Somewhere the touchpad got disabled and I need to pursue that problem in my Mint Mate setup.

Once again, thank you for your help.

Mike
Update: Touchpad fix was nothing more than enabling it in Control Panel.
Mate 21.3 - MacBookPro2,1, MacBook2,1
Mate 21.3 - ThinkPad L430, ThinkPad T430, Dell N7110, iMac8.1, Toshiba A215
Mate 19.3 - (32-bit version) Old home-built P4 desktop.
Raspbian - Pi3 & Pi4.
All except P4 machine run cancer research 24/7.
SimonPeter
Level 5
Level 5
Posts: 582
Joined: Tue Jul 13, 2021 5:13 am

Re: Slow Boot - was OK until recently

Post by SimonPeter »

Relative wrote: Sun Sep 19, 2021 7:56 pm The part I need to fix the Dell laptop that had the failure will be a month coming from China. I moved the drive into a ThinkPad (same problem showed up). Then I entered sudo sed -i 's/996d43dc-adc1-403b-a395-f327930320f9/47254cd6-679e-4c99-8edc-ee9b9db2b882/g' /etc/fstab as you suggested and the huge delay in boot time is gone! The fix is much appreciated.
Thank you.
Locked

Return to “Installation & Boot”