Slow Boot Times & Shutdown Hangs

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
Mike365
Level 2
Level 2
Posts: 72
Joined: Wed Jul 02, 2014 7:02 pm

Slow Boot Times & Shutdown Hangs

Post by Mike365 »

I have a Dell AIO running Mint 21.1 with boot and / running on an SSD and Home on another drive. I am using an Nvidia graphics driver.
I have two issues and I'm not sure if they are related. The first is a very slow boot time in the order of 2.5 to 3 minutes.
Below are the results of systemd-analyze, systemd-analyze blame and systemd-analyze critical chain. It appears that the userspace is taking a long time to load.
Startup finished in 15.848s (kernel) + 2min 10.800s (userspace) = 2min 26.648s
graphical.target reached after 2min 10.795s in userspace

Code: Select all

 2min 18ms systemd-udev-settle.service
  10.122s gpu-manager.service
  10.117s plymouth-quit-wait.service
   3.144s NetworkManager-wait-online.service
    691ms udisks2.service
    379ms dev-sdb2.device
    227ms lvm2-monitor.service
    153ms systemd-resolved.service
    147ms networkd-dispatcher.service
    133ms accounts-daemon.service
    125ms blueman-mechanism.service
    111ms systemd-timesyncd.service
    104ms apparmor.service
     96ms user@1000.service
     89ms systemd-udev-trigger.service
     89ms lightdm.service
     85ms ubuntu-system-adjustments.service
     77ms polkit.service
     74ms avahi-daemon.service
     74ms systemd-logind.service
     73ms systemd-udevd.service
     73ms bluetooth.service
     69ms NetworkManager.service
     66ms ModemManager.service
     58ms systemd-fsck@dev-disk-by\x2duuid-dd7c22ca\x2d041b\x2d4bce\x2d8ee8\x2d>
     53ms systemd-modules-load.service
     53ms systemd-journald.service
     52ms modprobe@chromeos_pstore.service
     51ms systemd-rfkill.service
     50ms systemd-journal-flush.service

Code: Select all

[/quote]graphical.target @2min 10.795s
└─multi-user.target @2min 10.795s
  └─getty.target @2min 10.795s
    └─getty@tty1.service @2min 10.760s
      └─system-getty.slice @2min 10.759s
        └─setvtrgb.service @2min 10.746s +11ms
          └─plymouth-quit-wait.service @2min 628ms +10.117s
            └─systemd-user-sessions.service @2min 619ms +6ms
              └─network.target @2min 601ms
                └─NetworkManager.service @2min 531ms +69ms
                  └─dbus.service @2min 528ms
                    └─basic.target @2min 521ms
                      └─sockets.target @2min 521ms
                        └─uuidd.socket @2min 521ms
                          └─sysinit.target @2min 516ms
                            └─systemd-timesyncd.service @2min 404ms +111ms
                              └─systemd-tmpfiles-setup.service @2min 377ms +18ms
                                └─local-fs.target @2min 371ms
                                  └─home.mount @751ms +40ms
                                    └─systemd-fsck@dev-disk-by\x2duuid-dd7c22ca>
                                      └─dev-disk-by\x2duuid-dd7c22ca\x2
The other issue is that when I shut down or reboot, the Mint splash logo appears and then disappears leaving a flashing cursor and it hangs. I have to force a shutdown by pressing the power button.

Any help would be most appreciated.

Mod Note:
Quote marks removed & code tags added..
Last edited by LockBot on Fri Sep 15, 2023 10:00 pm, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
all41
Level 19
Level 19
Posts: 9520
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: Slow Boot Times & Shutdown Hangs

Post by all41 »

Make sure you don't have a dvd in the drive, no usb drives, unplug everything
and retry the reboot.
then system-d analyze again
If still slow then post the results of:
blkid
and
cat /etc/fstab
Everything in life was difficult before it became easy.
Mike365
Level 2
Level 2
Posts: 72
Joined: Wed Jul 02, 2014 7:02 pm

Re: Slow Boot Times & Shutdown Hangs

Post by Mike365 »

Hi, thank you for your time.

Results as follows:
/dev/sdb2: UUID="a6e4cf64-620a-44e3-8ab6-01c5e6840cf6" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="0f3d1cf2-7b0d-4f51-9673-7d99c62adf34"
/dev/sdb1: UUID="87d5f526-2040-42bd-8beb-b634dd5fa876" BLOCK_SIZE="4096" TYPE="ext2" PARTUUID="27e1c91f-df66-4648-9c87-3c7d7292bc5c"
/dev/sdc5: UUID="7ce06efc-4655-41ac-b8e1-861e6de51a4f" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="1dbdb6bf-05"
/dev/sdc1: LABEL="G:" BLOCK_SIZE="512" UUID="A40A2F2C0A2EFAC6" TYPE="ntfs" PARTUUID="1dbdb6bf-01"
/dev/sdc6: UUID="6d123932-0a0b-4a1b-906d-208525bf84f1" TYPE="swap" PARTUUID="1dbdb6bf-06"
/dev/sda1: UUID="dd7c22ca-041b-4bce-8ee8-b88df1a1b8aa" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="f57f4395-01"
# /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/sdc2 during installation
UUID=a6e4cf64-620a-44e3-8ab6-01c5e6840cf6 / ext4 errors=remount-ro 0 1
# /boot was on /dev/sdc1 during installation
UUID=87d5f526-2040-42bd-8beb-b634dd5fa876 /boot ext2 defaults 0 2
# /home was on /dev/sda1 during installation
UUID=dd7c22ca-041b-4bce-8ee8-b88df1a1b8aa /home ext4 defaults 0 2
/swapfile none swap sw 0 0
User avatar
all41
Level 19
Level 19
Posts: 9520
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: Slow Boot Times & Shutdown Hangs

Post by all41 »

I see a discrepancy---not sure it's a solution.
See this reference from blkid:
/dev/sdb2: UUID="a6e4cf64-620a-44e3-8ab6-01c5e6840cf6" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="0f3d1cf2-7b0d-4f51-9673-7d99c62adf34"
and the fstab statement:
# / was on /dev/sdc2 during installation
UUID=a6e4cf64-620a-44e3-8ab6-01c5e6840cf6 / ext4 errors=remount-ro 0 1

notice sdb drive is referenced as sdc in fstab.
Everything in life was difficult before it became easy.
Mike365
Level 2
Level 2
Posts: 72
Joined: Wed Jul 02, 2014 7:02 pm

Re: Slow Boot Times & Shutdown Hangs

Post by Mike365 »

How do I rectify that?
User avatar
all41
Level 19
Level 19
Posts: 9520
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: Slow Boot Times & Shutdown Hangs

Post by all41 »

Is there a clone involved?
Same UUID on separate drives
Everything in life was difficult before it became easy.
Mike365
Level 2
Level 2
Posts: 72
Joined: Wed Jul 02, 2014 7:02 pm

Re: Slow Boot Times & Shutdown Hangs

Post by Mike365 »

No clone involved.
User avatar
Jo-con-Ël
Level 11
Level 11
Posts: 3578
Joined: Sun Jun 20, 2021 12:41 pm
Location: donde habita el olvido

Re: Slow Boot Times & Shutdown Hangs

Post by Jo-con-Ël »

Plaese post back following code result

Code: Select all

inxi -Fxxxzr
all41 wrote: Tue Mar 14, 2023 11:01 pm I see a discrepancy---not sure it's a solution.
See this reference from blkid:
/dev/sdb2: UUID="a6e4cf64-620a-44e3-8ab6-01c5e6840cf6" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="0f3d1cf2-7b0d-4f51-9673-7d99c62adf34"
and the fstab statement:
# / was on /dev/sdc2 during installation
UUID=a6e4cf64-620a-44e3-8ab6-01c5e6840cf6 / ext4 errors=remount-ro 0 1

notice sdb drive is referenced as sdc in fstab.
It doesn´t matter, it is on commented line and UUIDs are right as per blkid result. It happens, by example, if you remove/unplug a drive or change SATA port after installing. Nothing to do.
Last edited by Jo-con-Ël on Sat Mar 25, 2023 5:27 am, edited 2 times in total.
Arrieritos semos y en el camino nos encontraremos.
Mike365
Level 2
Level 2
Posts: 72
Joined: Wed Jul 02, 2014 7:02 pm

Re: Slow Boot Times & Shutdown Hangs

Post by Mike365 »

System:
Kernel: 5.15.0-67-generic x86_64 bits: 64 compiler: gcc v: 11.3.0
Desktop: Cinnamon 5.6.7 tk: GTK 3.24.33 info: plank wm: muffin vt: 7
dm: LightDM 1.30.0 Distro: Linux Mint 21.1 Vera base: Ubuntu 22.04 jammy
Machine:
Type: Desktop System: Dell product: XPS 7760 AIO v: N/A
serial: <superuser required> Chassis: type: 13 serial: <superuser required>
Mobo: Dell model: 0Y8F5T v: A01 serial: <superuser required>
UEFI-[Legacy]: Dell v: 2.6.0 date: 03/04/2020
Battery:
Device-1: hidpp_battery_0 model: Logitech K800 serial: <filter>
charge: 55% (should be ignored) rechargeable: yes status: Discharging
Device-2: hidpp_battery_1
model: Logitech Marathon Mouse/Performance Plus M705 serial: <filter>
charge: 10% (should be ignored) rechargeable: yes status: Discharging
CPU:
Info: quad core model: Intel Core i7-6700 bits: 64 type: MT MCP
smt: enabled arch: Skylake-S rev: 3 cache: L1: 256 KiB L2: 1024 KiB
L3: 8 MiB
Speed (MHz): avg: 2557 high: 3748 min/max: 800/4000 cores: 1: 3744
2: 3748 3: 3701 4: 3142 5: 1939 6: 1539 7: 1250 8: 1398 bogomips: 54398
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
Device-1: Intel HD Graphics 530 vendor: Dell driver: i915 v: kernel ports:
active: eDP-1 empty: DP-1, DP-2, DP-3, HDMI-A-1, HDMI-A-2, HDMI-A-3
bus-ID: 00:02.0 chip-ID: 8086:1912 class-ID: 0300
Device-2: AMD Bonaire XT [Radeon R9 M280X] vendor: Dell driver: radeon
v: kernel pcie: speed: 8 GT/s lanes: 16 bus-ID: 01:00.0 chip-ID: 1002:6646
class-ID: 0380
Display: x11 server: X.Org v: 1.21.1.3 driver: X:
loaded: ati,modesetting,radeon unloaded: fbdev,vesa gpu: i915
display-ID: :0 screens: 1
Screen-1: 0 s-res: 2880x1620 s-dpi: 96 s-size: 762x429mm (30.0x16.9")
s-diag: 874mm (34.4")
Monitor-1: eDP-1 model: LG res: 2880x1620 hz: 60 dpi: 123
size: 597x336mm (23.5x13.2") diag: 685mm (27") modes: 3840x2160
OpenGL: renderer: Mesa Intel HD Graphics 530 (SKL GT2) v: 4.6 Mesa 22.2.5
direct render: Yes
Audio:
Device-1: Intel 100 Series/C230 Series Family HD Audio vendor: Dell
driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 chip-ID: 8086:a170
class-ID: 0403
Device-2: XMOS iFi (by AMR) HD USB Audio type: USB
driver: hid-generic,snd-usb-audio,usbhid bus-ID: 1-1:2 chip-ID: 20b1:3008
class-ID: 0300 serial: <filter>
Sound Server-1: ALSA v: k5.15.0-67-generic running: yes
Sound Server-2: PulseAudio v: 15.99.1 running: yes
Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
Device-1: Intel Ethernet I219-LM vendor: Dell driver: e1000e v: kernel
port: N/A bus-ID: 00:1f.6 chip-ID: 8086:15b7 class-ID: 0200
IF: enp0s31f6 state: up speed: 1000 Mbps duplex: full mac: <filter>
Device-2: Intel Wireless 3165 driver: iwlwifi v: kernel pcie:
speed: 2.5 GT/s lanes: 1 bus-ID: 03:00.0 chip-ID: 8086:3165 class-ID: 0280
IF: wlp3s0 state: down mac: <filter>
IF-ID-1: tun0 state: unknown speed: 10 Mbps duplex: full mac: N/A
Bluetooth:
Device-1: Intel Bluetooth wireless interface type: USB driver: btusb v: 0.8
bus-ID: 1-11:5 chip-ID: 8087:0a2a class-ID: e001
Report: hciconfig ID: hci0 rfk-id: 0 state: up address: <filter>
bt-v: 2.1 lmp-v: 4.2 sub-v: 1000 hci-v: 4.2 rev: 1000
Drives:
Local Storage: total: 6.37 TiB used: 3.05 TiB (47.9%)
ID-1: /dev/sda vendor: Samsung model: SSD 870 QVO 2TB size: 1.82 TiB
speed: 6.0 Gb/s type: SSD serial: <filter> rev: 1B6Q scheme: MBR
ID-2: /dev/sdb vendor: Samsung model: SSD 860 EVO M.2 1TB
size: 931.51 GiB speed: 6.0 Gb/s type: SSD serial: <filter> rev: 2B6Q
scheme: GPT
ID-3: /dev/sdc type: USB vendor: Western Digital
model: WD4005FZBX-00K5WB0 size: 3.64 TiB type: HDD rpm: 7200
serial: <filter> rev: 01.0 scheme: GPT
Partition:
ID-1: / size: 182.28 GiB used: 17.29 GiB (9.5%) fs: ext4 dev: /dev/sdb2
ID-2: /boot size: 1.83 GiB used: 552.9 MiB (29.5%) fs: ext2
dev: /dev/sdb1
ID-3: /home size: 1.79 TiB used: 988.88 GiB (54.0%) fs: ext4
dev: /dev/sda1
Swap:
ID-1: swap-1 type: file size: 2 GiB used: 928.5 MiB (45.3%) priority: -2
file: /swapfile
Sensors:
System Temperatures: cpu: 31.0 C mobo: 27.8 C gpu: radeon temp: 26.0 C
Fan Speeds (RPM): cpu: 0
Repos:
Packages: 2262 apt: 2248 flatpak: 14
No active apt repos in: /etc/apt/sources.list
Active apt repos in: /etc/apt/sources.list.d/brave-browser-release.list
1: deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg] https://brave-browser-apt-release.s3.brave.com/ stable main
Active apt repos in: /etc/apt/sources.list.d/heyarje-makemkv-beta-jammy.list
1: deb [arch=amd64 signed-by=/etc/apt/keyrings/heyarje-makemkv-beta-jammy.gpg] https://ppa.launchpadcontent.net/heyarj ... eta/ubuntu jammy main
Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
1: deb http://ucmirror.canterbury.ac.nz/linux/mint/packages vera main upstream import backport
2: deb http://archive.ubuntu.com/ubuntu jammy main restricted universe multiverse
3: deb http://archive.ubuntu.com/ubuntu jammy-updates main restricted universe multiverse
4: deb http://archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
5: deb http://security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
No active apt repos in: /etc/apt/sources.list.d/plexmediaserver.list
Info:
Processes: 343 Uptime: 12d 22h 21m wakeups: 830 Memory: 15.37 GiB
used: 4.69 GiB (30.5%) Init: systemd v: 249 runlevel: 5 Compilers:
gcc: 11.3.0 alt: 11/12 Shell: Bash v: 5.1.16 running-in: gnome-terminal
Reddog1
Level 7
Level 7
Posts: 1937
Joined: Wed Jun 01, 2011 2:12 pm

Re: Slow Boot Times & Shutdown Hangs

Post by Reddog1 »

Unhide your startup and shutdown messages and see if they give a clue. Look for a countdown timeout running for a process.

Edit /etc/default/grub and remove "quiet splash". Save and run sudo update-grub and reboot
Mike365
Level 2
Level 2
Posts: 72
Joined: Wed Jul 02, 2014 7:02 pm

Re: Slow Boot Times & Shutdown Hangs

Post by Mike365 »

Hi, Thank you for your reply and my apologies for not acknowledging it as I have been fire fighting other issues. When you say to edit /etc/default/grub do you mean to remove the entire line containing "quiet splash" or just those two words.
Thanks again for your help.
User avatar
senjoz
Level 5
Level 5
Posts: 900
Joined: Tue Jun 09, 2020 3:55 am
Location: Kamnik

Re: Slow Boot Times & Shutdown Hangs

Post by senjoz »

Mike365 wrote: Tue Mar 14, 2023 10:06 pm └─local-fs.target @2min 371ms
└─home.mount @751ms +40ms
It looks to me that local-fs.target is problematic. This target is responsible for mounts listed in /etc/fstab.

Terminal command lsblk would be more informative than blkid. Please post output of terminal command lsblk -o NAME,FSTYPE,LABEL,SIZE,FSUSED,UUID,MOUNTPOINT,PARTFLAGS.

When posting outputs of terminal commands, please use code display tags and maximize terminal window before executing commands. If you do not know how to do that, please read this tutorial.
Mike365
Level 2
Level 2
Posts: 72
Joined: Wed Jul 02, 2014 7:02 pm

Re: Slow Boot Times & Shutdown Hangs

Post by Mike365 »

Output as requested.
sda 1.8T
└─sda1 ext4 1.8T 1.1T dd7c22ca-041b-4bce-8ee8-b88df1a1b8aa /home 0x80
sdb 232.9G
├─sdb1 ext2 4.7G 282.6M 5addbff6-86c0-4e41-a10b-9d2f51e030a3 /boot
└─sdb2 ext4 204.9G 111.6G b031e46a-e6e3-4578-b71e-57da67fee2ee /
sr0 1024M
User avatar
senjoz
Level 5
Level 5
Posts: 900
Joined: Tue Jun 09, 2020 3:55 am
Location: Kamnik

Re: Slow Boot Times & Shutdown Hangs

Post by senjoz »

Mike365, please use code tags when posting outputs of terminal commands and post complete output including command! Read this tutorial.

Mike365 wrote: Tue Mar 14, 2023 10:40 pm # / was on /dev/sdc2 during installation
UUID=a6e4cf64-620a-44e3-8ab6-01c5e6840cf6 / ext4 errors=remount-ro 0 1
# /boot was on /dev/sdc1 during installation
UUID=87d5f526-2040-42bd-8beb-b634dd5fa876 /boot ext2 defaults 0 2

Mike365 wrote: Fri Mar 24, 2023 9:58 pm sdb 232.9G
├─sdb1 ext2 4.7G 282.6M 5addbff6-86c0-4e41-a10b-9d2f51e030a3 /boot
└─sdb2 ext4 204.9G 111.6G b031e46a-e6e3-4578-b71e-57da67fee2ee /

It looks that UUIDs for / and /boot partitions in fstab are not correct. Try to change those UUIDs in fstab according to the output of lsblk command.
User avatar
Jo-con-Ël
Level 11
Level 11
Posts: 3578
Joined: Sun Jun 20, 2021 12:41 pm
Location: donde habita el olvido

Re: Slow Boot Times & Shutdown Hangs

Post by Jo-con-Ël »

OP is doing something he does not comment....As per previous blkid fstab was correct but that was a different sdb disk (ID-2: /dev/sdb Samsung model: SSD 860 EVO M.2 1TB, the same on inxi report) than current one (sdb 232.9G). :roll:

On previous inxi report the only thing I could mention is half swapfile was in use even RAM was only 30% used.

Code: Select all

ID-1: /dev/sda vendor: Samsung model: SSD 870 QVO 2TB size: 1.82 TiB speed: 6.0 Gb/s type: SSD serial: <filter> rev: 1B6Q scheme: MBR
ID-2: /dev/sdb vendor: Samsung model: SSD 860 EVO M.2 1TB size: 931.51 GiB speed: 6.0 Gb/s type: SSD serial: <filter> rev: 2B6Q scheme: GPT
ID-3: /dev/sdc type: USB vendor: Western Digital model: WD4005FZBX-00K5WB0 size: 3.64 TiB type: HDD rpm: 7200 serial: <filter> rev: 01.0 scheme: GPT
Partition:
ID-1: / size: 182.28 GiB used: 17.29 GiB (9.5%) fs: ext4 dev: /dev/sdb2
ID-2: /boot size: 1.83 GiB used: 552.9 MiB (29.5%) fs: ext2 dev: /dev/sdb1
ID-3: /home size: 1.79 TiB used: 988.88 GiB (54.0%) fs: ext4 dev: /dev/sda1
Swap:
ID-1: swap-1 type: file size: 2 GiB used: 928.5 MiB (45.3%) priority: -2 file: /swapfile
(...)
Memory: 15.37 GiB used: 4.69 GiB (30.5%)
Last edited by Jo-con-Ël on Sat Mar 25, 2023 9:40 am, edited 1 time in total.
Arrieritos semos y en el camino nos encontraremos.
User avatar
senjoz
Level 5
Level 5
Posts: 900
Joined: Tue Jun 09, 2020 3:55 am
Location: Kamnik

Re: Slow Boot Times & Shutdown Hangs

Post by senjoz »

Jo-con-Ël wrote: Sat Mar 25, 2023 4:36 am OP is doing something he does not comment
I did not notice that before. Now I see, the disk sdb in lsblk output is not the same as the disk sdb in inxi output. OP should explain that.
Locked

Return to “Installation & Boot”