如何关闭deepin的swap?
Tofloor
poster avatar
superendermansm
deepin
2019-01-19 06:54
Author
如题,我安装deepin时默认给了4G的swapfile,然而我的CPU弱的一批,根本用不到。求大神帮忙指教如何关闭?百度了一下,只有打开的教程,没有关闭swap的教程。。。
Reply Favorite View the author
All Replies
avatar
yexiaoqi
deepin
2019-01-19 07:24
#1
这个是用来休眠的吧
Reply View the author
avatar
lv318820665
deepin
2019-01-19 08:54
#2
sudo swapoff /swapfile  禁用交换文件
sudo rm -f /swapfile  删除交换文件
如果你的交换文件不是在根目录下了,填对应的目录
Reply View the author
avatar
superendermansm
deepin
2019-01-19 15:45
#3
lv318820665 发表于 2019-1-19 00:54
sudo swapoff /swapfile  禁用交换文件
sudo rm -f /swapfile  删除交换文件
如果你的交换文件不是在根目录 ...

swapfile是系统自动创建的,我也不知道默认在哪。。。
Reply View the author
avatar
广雅居士
deepin
2019-01-20 02:04
#4
https://bbs.deepin.org/post/173938
swapfile是系统自动创建的,我也不知道默认在哪。。。

是不是根本就没创建呀?反正我从没见过的。
Reply View the author
avatar
ngyyuusora
deepin
2019-01-20 03:16
#5
看根目录下是否有swapfile文件,在fstab里面也看一下
Reply View the author
avatar
jmjoy
deepin
2019-01-20 07:52
#6
这个东西不去掉也不碍事啊,干嘛要去掉。。
Reply View the author
avatar
Laeni
deepin
2021-01-26 06:38
#7

deepin是直接分区来做交换分区的,需要安装k8s,所以我也想关掉,但是关掉后重启又自动开启了

Reply View the author