个人工具

“UbuntuHelp:SwapSpace”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
第1行: 第1行:
 
{{From|https://help.ubuntu.com/community/SwapSpace}}
 
{{From|https://help.ubuntu.com/community/SwapSpace}}
 
{{Languages|UbuntuHelp:SwapSpace}}
 
{{Languages|UbuntuHelp:SwapSpace}}
 +
== Swap Space ==
 +
Ever wanted to change your amount of swap space ? Now you can ! First add a new disk (sdb) to your physical or virtual machine then use fdisk to create an appropriate partition for your swap space (type 82)
 +
<pre><nowiki>
 +
# fdisk /dev/sdb
 +
</nowiki></pre>
 +
then
 +
<pre><nowiki>
 +
# free -k
 +
# mkswap -L sdb-swap /dev/sdb1
 +
# swapoff -a
 +
# vi /etc/fstab
 +
LABEL=sdb1-swap        swap                    swap    defaults        0 0
 +
# swapon -a
 +
# free -k
 +
</nowiki></pre>
 +
Finally reboot to check new swap area gets picked up on reboot !
 +
----
 +
[[category:CategoryDocumentation]]
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2007年11月30日 (五) 21:37的版本


Swap Space

Ever wanted to change your amount of swap space ? Now you can ! First add a new disk (sdb) to your physical or virtual machine then use fdisk to create an appropriate partition for your swap space (type 82)

# fdisk /dev/sdb

then

# free -k
# mkswap -L sdb-swap /dev/sdb1
# swapoff -a
# vi /etc/fstab
LABEL=sdb1-swap         swap                    swap    defaults        0 0
# swapon -a
# free -k

Finally reboot to check new swap area gets picked up on reboot !