嗨,自从我更新到 ubuntu 17.10 以来,我遇到了一个问题,启动时间明显变长。我做了一些研究,但我不知道可能是什么问题,也不知道该在哪里做更改。到目前为止,我发现了这一点
- 运行命令命令 blkid并查看输出
- 检查内部/etc/fstab并比较输出并进行更改
以下是我从命令中得到的结果
命令 blkid
输出:
/dev/loop0: TYPE="squashfs"
/dev/loop1: TYPE="squashfs"
/dev/loop2: TYPE="squashfs"
/dev/loop3: TYPE="squashfs"
/dev/loop4: TYPE="squashfs"
/dev/loop5: TYPE="squashfs"
/dev/loop6: TYPE="squashfs"
/dev/loop7: TYPE="squashfs"
/dev/sda1: UUID="6C0C-74A5" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="4636d28d-02ac-4a03-abdc-76cefb7491ee"
/dev/sda2: UUID="4917e948-ef3c-42c9-abe2-3ed0b0e9eb29" TYPE="ext4" PARTUUID="749546bb-4f38-4670-99b2-d4def6f6e9e3"
/dev/loop8: TYPE="squashfs"
而我的
编辑 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/sda2 during installation
UUID=4917e948-ef3c-42c9-abe2-3ed0b0e9eb29 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
#UUID=6C0C-74A5 /boot/efi vfat umask=0077 0 1
/swapfile none swap sw 0 0
UUID=6C0C-74A5 /boot/efi vfat defaults 0 1
这里出了什么问题?我需要做哪些更改才能加快启动时间?
以下是结果
systemd-analyze 责备
输出
43.523s plymouth-quit-wait.service
33.944s mysql.service
23.355s snapd.service
16.149s wicd.service
13.803s dev-sda2.device
11.805s NetworkManager-wait-online.service
11.743s php7.0-fpm.service
10.097s networking.service
9.256s [email protected]
8.969s keyboard-setup.service
8.104s NetworkManager.service
8.045s apache2.service
7.958s gdm.service
7.451s teamviewerd.service
7.163s apparmor.service
6.723s ModemManager.service
5.695s udisks2.service
5.543s plymouth-read-write.service
5.057s fwupd.service
4.612s gpu-manager.service
4.610s rsyslog.service
4.547s accounts-daemon.service
3.689s dev-loop8.device