求教,在16.04下,swapon指令不能使用

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
Asahi678
帖子: 2
注册时间: 2017-11-27 19:24
系统: linux-16.04

求教,在16.04下,swapon指令不能使用

#1

帖子 Asahi678 » 2017-11-27 19:31

我的板子上装的是Linux16.04,是用NVIDIA的JetPack刷进去的,不知道是不是一种特制版,在挂在swap的时候,swapon指令没有反应,无论是-a,-s,都没有反应,但是-V有反应,可以显示swapon from util-linux 2.27.1,有没有哪位也遇到过相似的问题,请问是如何解决的
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 求教,在16.04下,swapon指令不能使用

#2

帖子 poloshiao » 2017-11-27 23:21

http://manpages.ubuntu.com/manpages/xen ... pon.8.html
-a, --all
All devices marked as ``swap'' in /etc/fstab are made available, except for those with the ``noauto'' option. Devices that are already being used as swap are silently skipped.

-s, --summary
This output format is DEPRECATED in favour of --show that provides better control on output data.

--show[=column...]
Display a definable table of swap areas.
回复