当前位置: 技术问答>linux和unix
请教:使用mkswap /dev/hdaX 之后可使用任意数字来规定swap分区大小
来源: 互联网 发布时间:2014-12-06
本文导语: 如:mkswap /dev/hdaX 2000000 | Hi Kelamayi, As said in manual of mkswap, it is "unwise" to specify size to invoke mkswap. What you need to do is mkswap /dev/hdaX to initialize this partition as a swap partition. and...
如:mkswap /dev/hdaX 2000000
|
Hi Kelamayi,
As said in manual of mkswap, it is "unwise" to specify size
to invoke mkswap. What you need to do is
mkswap /dev/hdaX to initialize this partition as a swap partition.
and then you can use "swapon" to activate it. Or add a swap entry
in /etc/fstab, then use "swapon -a" to activate it.
/dev/hdaX swap swap defaults 0 0
And "swapon -a" will be run automatically after reboot.
Enjoy!
Orsino
As said in manual of mkswap, it is "unwise" to specify size
to invoke mkswap. What you need to do is
mkswap /dev/hdaX to initialize this partition as a swap partition.
and then you can use "swapon" to activate it. Or add a swap entry
in /etc/fstab, then use "swapon -a" to activate it.
/dev/hdaX swap swap defaults 0 0
And "swapon -a" will be run automatically after reboot.
Enjoy!
Orsino
|
你先用fdisk划一个分区,大小随你定,然后再用mkswap转一下,如何?
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。