装好deepin V20后怎么开启swap
Tofloor
poster avatar
meric000
deepin
2020-10-25 19:37
Author
装好deepin V20后怎么开启swap,本人小白,请详细告知。谢谢!
Reply Favorite View the author
All Replies
deepincmg
deepin
2020-10-25 19:49
#1
本帖最后由 deepincmg 于 2020-10-25 11:51 编辑

什么   你说交换分区吗  装系统时有分区就有了啊   开系统监视器就看了
Reply View the author
蔡EEPIN
deepin
2020-10-25 19:58
#2
1. 创建swap文件
sudo fallocate -l 4G /swapfile
2. 格式化swap文件
sudo mkswap /swapfile
3. 修改权限
sudo chmod 640 /swapfile
4. 挂载swap
sudo swapon /swapfile
5. 开机自动挂载
sudo echo '/swapfile    swap    swap    defaults 0 0' >> /etc/fstab
6. 验证,如果执行下面命令无任何输出为正常。
sudo mount -a
Reply View the author
meric000
deepin
2020-10-25 20:39
#3
https://bbs.deepin.org/post/204375
1. 创建swap文件
sudo fallocate -l 4G /swapfile
2. 格式化swap文件

谢谢!搞定了。
Reply View the author
海鸥
deepin
2020-10-25 22:07
#4
https://bbs.deepin.org/post/204375
1. 创建swap文件
sudo fallocate -l 4G /swapfile
2. 格式化swap文件

很好的分享。支持一下。
Reply View the author