O My System (Ubuntu 16.04 instalado no SSD) tem um extraordinário tempo de inicialização longo e a maioria das pesquisas leva a um problema causado pela partição de swap não estar descrita corretamente em /etc/fstab . No meu caso, o longo tempo de inicialização parece não ser causado por isso (eu verifiquei várias vezes). Desativar a troca comentando a linha correspondente em /etc/fstab + reinicialização tem que ocorrer no tempo de inicialização.
Não vou copiar o conteúdo de systemd-analyze plot aqui, mas há duas longas pausas entre time-sync.target / sysinit.target e depois udisks2.service .
systemd-analyse:
Startup finished in 6.554s (kernel) + 3min 461ms (userspace) = 3min 7.016s
systemd-analyse blame:
1.128s snapd.service
994ms dev-sda6.device
822ms NetworkManager.service
647ms systemd-fsck@dev-disk-by\x2duuid-0b326e89\x2daf15\x2d4a73\x2dbb16\x2d15e6afaa7339.service
529ms NetworkManager-wait-online.service
525ms thermald.service
523ms ModemManager.service
516ms accounts-daemon.service
480ms systemd-fsck@dev-disk-by\x2duuid-015b46f0\x2d5829\x2d4ffc\x2dabe5\x2de629c74085f5.service
405ms systemd-rfkill.service
303ms lightdm.service
302ms boot.mount
283ms home.mount
248ms gpu-manager.service
206ms colord.service
175ms apparmor.service
167ms upower.service
161ms grub-common.service
141ms systemd-tmpfiles-setup.service
128ms udisks2.service
125ms virtualbox.service
117ms console-setup.service
104ms systemd-logind.service
104ms dev-disk-by\x2duuid-9c2d1380\x2d804e\x2d4fe4\x2db9ba\x2d45ff97a4d225.swap
94ms avahi-daemon.service
92ms ondemand.service
90ms sysstat.service
89ms speech-dispatcher.service
81ms polkitd.service
81ms alsa-restore.service
75ms irqbalance.service
69ms systemd-udev-trigger.service
66ms keyboard-setup.service
61ms networking.service
56ms bluetooth.service
51ms systemd-tmpfiles-clean.service
50ms apport.service
49ms ebtables.service
44ms systemd-journald.service
37ms systemd-tmpfiles-setup-dev.service
37ms binfmt-support.service
32ms [email protected]
32ms systemd-update-utmp.service
32ms systemd-udevd.service
28ms systemd-modules-load.service
28ms systemd-timesyncd.service
18ms wpa_supplicant.service
17ms pppd-dns.service
16ms plymouth-read-write.service
14ms plymouth-start.service
13ms rsyslog.service
12ms ufw.service
10ms systemd-sysctl.service
10ms sys-kernel-debug.mount
9ms dev-hugepages.mount
9ms rtkit-daemon.service
9ms dev-mqueue.mount
8ms kmod-static-nodes.service
7ms setvtrgb.service
5ms systemd-random-seed.service
5ms systemd-journal-flush.service
5ms sys-fs-fuse-connections.mount
5ms systemd-remount-fs.service
5ms dns-clean.service
4ms resolvconf.service
4ms proc-sys-fs-binfmt_misc.mount
3ms ureadahead-stop.service
3ms systemd-backlight@leds:dell::kbd_backlight.service
3ms systemd-update-utmp-runlevel.service
2ms systemd-backlight@backlight:intel_backlight.service
2ms plymouth-quit-wait.service
2ms systemd-user-sessions.service
1ms snapd.socket
1ms rc-local.service
systemd-analysis cadeia crítica :
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 31.766s
└─multi-user.target @1min 31.766s
└─virtualbox.service @1min 31.640s +125ms
└─network-online.target @1min 31.638s
└─NetworkManager-wait-online.service @1min 31.108s +529ms
└─NetworkManager.service @1min 30.284s +822ms
└─dbus.service @1min 30.220s
└─basic.target @1min 30.215s
└─sockets.target @1min 30.215s
└─snapd.socket @1min 30.213s +1ms
└─sysinit.target @1min 30.212s
└─systemd-update-utmp.service @2.246s +32ms
└─systemd-tmpfiles-setup.service @2.072s +141ms
└─local-fs.target @2.070s
└─run-user-1000-gvfs.mount @1min 40.571s
└─run-user-1000.mount @1min 39.716s
└─local-fs-pre.target @197ms
└─systemd-remount-fs.service @191ms +5ms
└─systemd-journald.socket @108ms
└─-.slice @95ms
sudo blkid:
/dev/sda1: UUID="015b46f0-5829-4ffc-abe5-e629c74085f5" TYPE="ext4" PTTYPE="dos" PARTUUID="ffc52ea3-01"
/dev/sda3: UUID="9c2d1380-804e-4fe4-b9ba-45ff97a4d225" TYPE="swap" PARTUUID="ffc52ea3-03"
/dev/sda5: UUID="0b326e89-af15-4a73-bb16-15e6afaa7339" TYPE="ext4" PARTUUID="ffc52ea3-05"
/dev/sda6: UUID="d0750a04-fc25-4f42-b64d-60aecd355fae" TYPE="ext4" PARTUUID="ffc52ea3-06"
cat / etc / fstab:
# /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/sda6 during installation
UUID=d0750a04-fc25-4f42-b64d-60aecd355fae / ext4 errors=remount-ro 0 1
# /boot was on /dev/sda1 during installation
UUID=015b46f0-5829-4ffc-abe5-e629c74085f5 /boot ext4 defaults 0 2
# /home was on /dev/sda5 during installation
UUID=0b326e89-af15-4a73-bb16-15e6afaa7339 /home ext4 defaults 0 2
# swap was on /dev/sda3 during installation
UUID=9c2d1380-804e-4fe4-b9ba-45ff97a4d225 none swap sw 0 0