Very slow boot time

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
fw190

Very slow boot time

Post by fw190 »

Hello!

I had two partitions on my drive and deleted one which had the boot partition and was encrypted. This led to a grub only but I have finally managed to fix it and now I can boot to the main partition and system and everything works ok. The only problem is that it takes very long to start the system. I think that it is somehow connected with me messing it up in the first place...

Code: Select all

System:    Host: lenovo Kernel: 4.4.0-96-generic x86_64 (64 bit gcc: 5.4.0) Desktop: Xfce 4.12.3 (Gtk 2.24.28)
           Distro: Linux Mint 18.1 Serena
Machine:   System: LENOVO (portable) product: 80L0 v: Lenovo G50-80
           Mobo: LENOVO model: Lenovo G50-80 v: NO DPK Bios: LENOVO v: B0CN97WW date: 01/08/2016
CPU:       Dual core Intel Core i3-4005U (-HT-MCP-) cache: 3072 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 6784
           clock speeds: max: 1700 MHz 1: 1062 MHz 2: 1600 MHz 3: 809 MHz 4: 1115 MHz
Graphics:  Card: Intel Haswell-ULT Integrated Graphics Controller bus-ID: 00:02.0
           Display Server: X.Org 1.18.4 drivers: intel (unloaded: fbdev,vesa) Resolution: 1366x768@59.97hz
           GLX Renderer: Mesa DRI Intel Haswell Mobile GLX Version: 3.0 Mesa 11.2.0 Direct Rendering: Yes
Audio:     Card-1 Intel 8 Series HD Audio Controller driver: snd_hda_intel bus-ID: 00:1b.0
           Card-2 Intel Haswell-ULT HD Audio Controller driver: snd_hda_intel bus-ID: 00:03.0
           Sound: Advanced Linux Sound Architecture v: k4.4.0-96-generic
Network:   Card-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
           driver: r8169 v: 2.3LK-NAPI port: 3000 bus-ID: 02:00.0
           IF: enp2s0 state: down mac: <filter>
           Card-2: Qualcomm Atheros QCA9565 / AR9565 Wireless Network Adapter driver: ath9k bus-ID: 03:00.0
           IF: wlp3s0 state: up mac: <filter>
Drives:    HDD Total Size: 1000.2GB (27.4% used) ID-1: /dev/sda model: ST1000LM024_HN size: 1000.2GB
Partition: ID-1: / size: 917G used: 256G (30%) fs: ext4 dev: /dev/sda1
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 36.0C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 192 Uptime: 15 min Memory: 846.0/3877.5MB Init: systemd runlevel: 5 Gcc sys: 5.4.0
           Client: Shell (bash 4.3.481) inxi: 2.2.35 

Code: Select all

magda@lenovo ~ $ systemd-analyze
Startup finished in 8.606s (kernel) + 3min 2.685s (userspace) = 3min 11.291s

Code: Select all

magda@lenovo ~ $ systemd-analyze blame
          8.492s dev-sda1.device
          6.983s NetworkManager-wait-online.service
          5.721s apt-daily-upgrade.service
          3.930s grub-common.service
          3.884s ModemManager.service
          3.874s loadcpufreq.service
          3.385s virtualbox-guest-utils.service
          3.332s irqbalance.service
          3.286s networking.service
          2.990s ufw.service
          2.950s upower.service
          2.793s console-setup.service
          2.692s speech-dispatcher.service
          2.628s systemd-tmpfiles-setup.service
          2.485s NetworkManager.service
          2.475s accounts-daemon.service
          2.446s console-kit-log-system-start.service
          2.403s systemd-user-sessions.service
          2.388s lm-sensors.service
          2.385s rsyslog.service
          2.385s iio-sensor-proxy.service
          2.356s bluetooth.service
          2.353s thermald.service
          1.959s lvm2-monitor.service
          1.769s systemd-tmpfiles-setup-dev.service
          1.495s polkitd.service
          1.443s keyboard-setup.service
          1.256s systemd-modules-load.service
          1.003s systemd-journald.service
           960ms avahi-daemon.service
           816ms systemd-udevd.service
           738ms binfmt-support.service
           731ms resolvconf.service
           695ms systemd-logind.service
           695ms ondemand.service
           643ms virtualbox.service

Code: Select all

magda@lenovo ~ $ blkid
/dev/sda1: UUID="c23a8006-5a74-4eef-9d52-031ae348f8a7" TYPE="ext4" PARTUUID="94441810-01"

Code: Select all

# /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=c23a8006-5a74-4eef-9d52-031ae348f8a7 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
#UUID=30184a2e-9db6-4c2d-b022-119a464b3b90 none            swap    sw              0       0
#/dev/mapper/cryptswap1 none swap sw 0 0

I have commented out the swap as it looked like the one form the old system - commenting it out didn't help.

Code: Select all

magda@lenovo ~ $ systemd-analyze critical-chain
The time after the unit is active or started is printed after the "@" character.
The time the unit takes to start is printed after the "+" character.

graphical.target @1min 45.062s
└─multi-user.target @1min 45.062s
  └─virtualbox.service @1min 44.419s +643ms
    └─network-online.target @1min 44.403s
      └─NetworkManager-wait-online.service @1min 37.418s +6.983s
        └─NetworkManager.service @1min 34.920s +2.485s
          └─dbus.service @1min 32.551s
            └─basic.target @1min 32.478s
              └─sockets.target @1min 32.478s
                └─avahi-daemon.socket @1min 32.478s
                  └─sysinit.target @1min 32.435s
                    └─brltty.service @19.978s
                      └─system.slice @2.434s
                        └─-.slice @2.420s
What can I do to bring the system back to normal boot time?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
catweazel
Level 19
Level 19
Posts: 9763
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Very slow boot time

Post by catweazel »

Check dmesg for errors and if you find any, post them. Just the errors, please, not the entire dmesg output.
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
fw190

Re: Very slow boot time

Post by fw190 »

Code: Select all

magda@lenovo ~ $ dmesg |grep -i error
[    0.192784] ACPI Error: [ECR1] Namespace lookup failure, AE_NOT_FOUND (20150930/psargs-359)
[    0.192790] ACPI Error: Method parse/execution failed [\_SB.PCI0.GFX0._DSM] (Node ffff88015a8fbeb0), AE_NOT_FOUND (20150930/psparse-542)
[    1.188899] ACPI Error: [ECR1] Namespace lookup failure, AE_NOT_FOUND (20150930/psargs-359)
[    1.188906] ACPI Error: Method parse/execution failed [\_SB.PCI0.GFX0._DSM] (Node ffff88015a8fbeb0), AE_NOT_FOUND (20150930/psparse-542)
[    1.351461] ACPI Error: [ECR1] Namespace lookup failure, AE_NOT_FOUND (20150930/psargs-359)
[    1.351477] ACPI Error: Method parse/execution failed [\_SB.PCI0.GFX0._DSM] (Node ffff88015a8fbeb0), AE_NOT_FOUND (20150930/psparse-542)
[   15.479393] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[   26.225893] usb 2-7: device descriptor read/64, error -110
Is it OK or is there any other way to search for errors? I have googled that method with grep and just instead of some random string a have written "error"
Locked

Return to “Xfce”