[solved] Long boot time even after installing new ssd

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
Post Reply
sango
Level 1
Level 1
Posts: 10
Joined: Fri Oct 12, 2018 12:40 am

[solved] Long boot time even after installing new ssd

Post by sango » Sat Oct 20, 2018 12:46 pm

Hi
In my machine i already had a 1TB HDD, recently purchased a new M.2 SSD.
Restored root on this new SSD with timeshift and booted successfully.
mounted 1 TB HDD to /home, restored using mint backup tool and everything is working fine.

Well my boot time time is significantly long even after using SSD.

Is it because my /home is a mechanical HDD?

my fstab file

Code: Select all

# <file system> <mount point> <type> <options> <dump> <pass>

UUID=f425dcf7-f998-469a-a844-0b8c00eb486d	/	ext4	errors=remount-ro	0	1
UUID=fd3b7307-5e69-430e-bde0-ca29054d5ca0	none	swap	sw	0	0
UUID=4bef904c-8800-4996-94c0-be53fbc0abda	/home	ext4	rw, auto	0	2
systemd-analyze time

Code: Select all

$ systemd-analyze time
Startup finished in 36.280s (kernel) + 3min 708ms (userspace) = 3min 36.988s
graphical.target reached after 1min 30.979s in userspace
and inxi -Fxz

Code: Select all

System:    Host: Aspire-A515-51G Kernel: 4.15.0-36-generic x86_64 bits: 64 gcc: 7.3.0
           Desktop: Cinnamon 3.8.9 (Gtk 2.24.32) Distro: Linux Mint 19 Tara
Machine:   Device: laptop System: Acer product: Aspire A515-51G v: V1.08 serial: N/A
           Mobo: KBL model: Charmander_KL v: V1.08 serial: N/A UEFI: Insyde v: V1.08 date: 06/15/2017
Battery    BAT1: charge: 29.7 Wh 60.5% condition: 49.2/49.7 Wh (99%)
           model: COMPAL PABAS0241231 status: Discharging
CPU:       Dual core Intel Core i5-7200U (-MT-MCP-) arch: Kaby Lake rev.9 cache: 3072 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 10848
           clock speeds: max: 2500 MHz 1: 700 MHz 2: 700 MHz 3: 700 MHz 4: 700 MHz
Graphics:  Card-1: Intel HD Graphics 620 bus-ID: 00:02.0
           Card-2: NVIDIA GM108M [GeForce 940MX] bus-ID: 01:00.0
           Display Server: x11 (X.Org 1.19.6 ) drivers: modesetting,nouveau (unloaded: fbdev,vesa)
           Resolution: 1366x768@59.97hz
           OpenGL: renderer: Mesa DRI Intel HD Graphics 620 (Kaby Lake GT2)
           version: 4.5 Mesa 18.0.5 Direct Render: Yes
Audio:     Card Intel Sunrise Point-LP HD Audio driver: snd_hda_intel bus-ID: 00:1f.3
           Sound: Advanced Linux Sound Architecture v: k4.15.0-36-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.1
           IF: enp2s0f1 state: down mac: <filter>
           Card-2: Intel Device 24fb driver: iwlwifi bus-ID: 03:00.0
           IF: wlp3s0 state: up speed: N/A duplex: N/A mac: <filter>
Drives:    HDD Total Size: 1120.2GB (3.0% used)
           ID-1: /dev/sda model: WDC_WD10SPZX size: 1000.2GB temp: 37C
           ID-2: /dev/sdb model: WDC_WDS120G2G0B size: 120.0GB temp: 44C
Partition: ID-1: / size: 110G used: 11G (10%) fs: ext4 dev: /dev/sdb2
           ID-2: /home size: 909G used: 21G (3%) fs: ext4 dev: /dev/sda2
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 29.8C mobo: 27.8C
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 213 Uptime: 19 min Memory: 1108.5/7852.5MB Init: systemd runlevel: 5 Gcc sys: 7.3.0
           Client: Shell (bash 4.4.191) inxi: 2.3.56
and systemd-analyze blame

Code: Select all

systemd-analyze blame
          1.178s dev-sdb2.device
          1.103s keyboard-setup.service
           634ms systemd-journal-flush.service
           367ms apparmor.service
           351ms dns-clean.service
           340ms systemd-tmpfiles-setup.service
           338ms NetworkManager.service
           331ms systemd-logind.service
           322ms gpu-manager.service
           319ms console-setup.service
           318ms plymouth-read-write.service
           309ms systemd-udevd.service
           263ms udisks2.service
           262ms networkd-dispatcher.service
           214ms ubuntu-system-adjustments.service
           213ms ModemManager.service
           207ms lvm2-monitor.service
           192ms accounts-daemon.service
           182ms home.mount
           167ms systemd-timesyncd.service
           161ms systemd-tmpfiles-setup-dev.service
           143ms systemd-resolved.service
           135ms systemd-rfkill.service
           100ms lightdm.service
            99ms polkit.service
            99ms systemd-modules-load.service
            99ms plymouth-quit-wait.service
            98ms systemd-sysctl.service
            96ms grub-common.service
            92ms systemd-remount-fs.service
            89ms thermald.service
            88ms speech-dispatcher.service
            88ms apport.service
            83ms lm-sensors.service
            70ms kerneloops.service
            62ms systemd-udev-trigger.service
            59ms packagekit.service
            58ms alsa-restore.service
            55ms systemd-journald.service
            54ms hddtemp.service
            48ms upower.service
            47ms wpa_supplicant.service
            45ms sys-kernel-debug.mount
            43ms dev-hugepages.mount
            42ms user@1000.service
            39ms bluetooth.service
            38ms pppd-dns.service
            33ms networking.service
            30ms systemd-tmpfiles-clean.service
            27ms colord.service
            27ms avahi-daemon.service
            25ms dev-mqueue.mount
            23ms ufw.service
            22ms blk-availability.service
            20ms kmod-static-nodes.service
            16ms ssh.service
            15ms rsyslog.service
            15ms plymouth-start.service
            13ms systemd-random-seed.service
            13ms setvtrgb.service
            11ms systemd-backlight@backlight:intel_backlight.service
             8ms systemd-update-utmp.service
             6ms ureadahead-stop.service
             6ms systemd-update-utmp-runlevel.service
             4ms systemd-user-sessions.service
             4ms rtkit-daemon.service
             2ms sys-kernel-config.mount
             2ms sys-fs-fuse-connections.mount
           737us openvpn.service
Last edited by sango on Sat Oct 20, 2018 2:50 pm, edited 1 time in total.

User avatar
Flemur
Level 16
Level 16
Posts: 6191
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Long boot time even after installing new ssd

Post by Flemur » Sat Oct 20, 2018 2:08 pm

sango wrote:
Sat Oct 20, 2018 12:46 pm
Desktop: Cinnamon 3.8.9
634ms systemd-journal-flush.service
You have the "Cinnamon services take 10 to 20 x longer to start at boot" syndrome. (Edit: but it runs normally after boot...?)
(for example, mine is 33ms systemd-journal-flush.service)

But still 3 minutes is too long, check dmesg for errors, especially mounting partitions - it'll wait 1:30 (1.5 minutes) if there's some problem with a partition, e.g. the UUIDs in fstab don't match, etc.

Code: Select all

dmesg
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Mint 18.3 Xfce/fluxbox/pulse-less
Xubuntu 17.10/fluxbox/pulse-less

sango
Level 1
Level 1
Posts: 10
Joined: Fri Oct 12, 2018 12:40 am

Re: Long boot time even after installing new ssd

Post by sango » Sat Oct 20, 2018 2:46 pm

Thanks :-)
checked journalctl -xe
it was the swap partition UUID i messed up with in fstab
corrected it and its good now

new systemd-analyze time

Code: Select all

Startup finished in 36.639s (kernel) + 3.015s (userspace) = 39.655s
graphical.target reached after 3.010s in userspace

Post Reply

Return to “Installation & Boot”