⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 common-swap-add.html

📁 学习linux的工具书
💻 HTML
字号:
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
   <meta name="Author" content="Edward Fu">
   <meta name="GENERATOR" content="Mozilla/4.05 [zh-CN] (X11; I; Linux 2.1.127 i686) [Netscape]">
   <title>Freesfot Linux FAQ -- 增加虚拟内存</title>
</head>
<body>
取自上海Linux俱乐部FAQ:
<br>Q10:我的SWAP不够了.怎么增加呢?
<br>A10:如果你的硬盘上有空闲的空间,直接拿来用.
<br>假设是/dev/hda?
<br>则mkswape /dev/hda?
<br>swapon /dev/hda?
<br>要自动启动SWAPE,把新的分区加到/etc/fstab中去,照着原来SWAP的写就行了.
<br>用"free"检查你SWAP的大小.
<br>Linux支持最多16个交换分区,每个交换分区最大128M。
<br>&nbsp;
<br>没有空闲的分区时候,可以用个大文件来建立."man mkswap"
<br>To setup a swap file, it is necessary to create that file
<br>before running mkswap . A sequence of commands similar to
<br>the following is reasonable for this purpose:
<p># dd if=/dev/zero of=swapfile bs=1024 count=8192
<br># mkswap swapfile 8192
<br># sync
<br># swapon swapfile
<p>Note that a swap file must not contain any holes (so,
<br>using cp(1) to create the file is not acceptable).
<br>在SAG文档讲得很详细,这个文档已经被翻译过来了。
<br>&nbsp;
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -