修改分区导致启动变慢
Tofloor
poster avatar
151******03
deepin
2018-10-16 06:52
Author
本帖最后由 lzx-1s 于 2018-10-16 09:42 编辑

我使用Gparted把swap区从16G调成了2G,是先禁用swap,然后减少swap,最后把多出来的空间合并到/。在执行的时候,最后一步出了错,日志上显示是swap区操作失败(晚上回去翻翻日志)。然后每次开机就特别慢,从1秒变成1分钟,而且开机以后swap总是禁用的


Reply Favorite View the author
All Replies
avatar
151******03
deepin
2018-10-17 04:44
#1
有没有人啊,这个可以找在线客服吗
Reply View the author
avatar
wtz
deepin
2018-10-17 10:20
#2
swap分区调整后要重新格式化才能使用:
  1. sudo mkswap /dev/sda3
Copy the Code

然后在/etc/fstab里面确认swap分区对应的挂载参数正确。
然后手动启用swap,看看是否正常:
  1. sudo swapon -a
Copy the Code
Reply View the author
avatar
haohaohao
deepin
2018-10-17 16:40
#3
那两个小分区在装中标麒麟7.0时有,装优麒麟和深度时都没有看到,是主板不同吗,两个小分区看着挺别扭;

Reply View the author
avatar
窄口牛
deepin
2018-10-17 17:57
#4
本帖最后由 jonathan_hzs 于 2018-10-17 09:58 编辑

第一个小分区,你是legacy楼主是efi;第二个小分区,你自己选择的,/挂载到一个分区上安装的。基础知识了解下。
Reply View the author
avatar
151******03
deepin
2018-10-18 03:36
#5
https://bbs.deepin.org/post/169850
swap分区调整后要重新格式化才能使用:

然后在/etc/fstab里面确认swap分区对应的挂载参数正确。

swap区已经启动了,感谢。另外启动还是非常慢,我猜是不是和efi区的uuid有关,因为它非常短,看着就不正常


Reply View the author
avatar
窄口牛
deepin
2018-10-18 06:17
#6
uuid由于分区格式不同而显示不同的字串,fat就是那么长。
Reply View the author
avatar
wtz
deepin
2018-10-18 06:36
#7
  1. sudo systemd-analyze blame
Copy the Code

看看是哪个服务拖慢了启动速度。
Reply View the author
avatar
151******03
deepin
2018-10-19 04:46
#8
https://bbs.deepin.org/post/169850
看看是哪个服务拖慢了启动速度。

我觉得服务占的都是小头,无法理解的是为什么内核启动会那么慢



Reply View the author
avatar
wtz
deepin
2018-10-19 06:06
#9
apt-daily和apt-daily-upgrade这两个可以禁用。
NetworkManager时间长可能是搜索Wifi热点导致的。
Reply View the author
avatar
窄口牛
deepin
2018-10-19 13:25
#10
gparted对于分区移动和合并等操作还是不稳定,经常会出问题,各种linux的ext也不是完全相同,虽然表面上看都是ext4。这是linux的短处,也是它的悲哀。你可以不信我的话,但我说的的确是事实。
Reply View the author
avatar
151******03
deepin
2018-10-20 06:19
#11
jonathan_hzs 发表于 2018-10-19 05:25
gparted对于分区移动和合并等操作还是不稳定,经常会出问题,各种linux的ext也不是完全相同,虽然表面上看 ...

多谢科普
Reply View the author