我最近从 Windows 10 转到 Ubuntu,发现启动速度明显下降。我尝试在网上寻找解决问题的方法,但失败了。
systemd-analyze blame
给我以下:
22.181s plymouth-quit-wait.service
14.209s snapd.firstboot.service
12.125s dev-sdb1.device
10.708s networking.service
10.528s apport.service
10.197s ModemManager.service
9.015s apparmor.service
5.811s grub-common.service
5.544s speech-dispatcher.service
5.458s irqbalance.service
5.455s systemd-udevd.service
5.290s systemd-logind.service
5.144s gpu-manager.service
5.143s pppd-dns.service
4.914s avahi-daemon.service
4.516s NetworkManager.service
3.739s accounts-daemon.service
3.182s polkitd.service
3.081s thermald.service
2.711s systemd-tmpfiles-setup.service
2.175s rsyslog.service
1.832s plymouth-start.service
1.670s keyboard-setup.service
我只是 Ubuntu 的新手,因为我一生都在使用 Windows。我也只是一个中级计算机用户,所以这些行并没有给我太多信息
我还读到,我的问题可能与 fstab 文件中交换分区的 UUID 不匹配有关,但这不是我的情况。
sudo blkid
给我吗
/dev/sda1: UUID="7091fe2d-6f35-417e-ac8d-6378ece33b30" TYPE="ext4" PARTUUID="5812a99e-01"
/dev/sda2: UUID="681819bb-3063-4734-9a40-a0ada019cf99" SEC_TYPE="ext2" TYPE="ext3" PARTUUID="5812a99e-02"
/dev/sdb1: UUID="1b698478-f32d-4a9a-963c-8853331c6a74" TYPE="ext4" PARTUUID="ecfba038-01"
/dev/sdb5: UUID="257c98ed-10bd-4f5d-977a-2ae06639155d" TYPE="swap" PARTUUID="ecfba038-05"
我的 fstab 文件中有以下内容
# / was on /dev/sdb1 during installation
UUID=1b698478-f32d-4a9a-963c-8853331c6a74 / ext4 errors=remount-ro 0 1
# swap was on /dev/sdb5 during installation
UUID=257c98ed-10bd-4f5d-977a-2ae06639155d none swap sw 0 0
先感谢您!