Linux系統中增加Swap分割槽大小
1、檢查當前的分割槽情況:
[root@localhost]#free -m
2、增加交換分割槽檔案及大小,如果要增加2G大小的交換分割槽,則命令寫法如下,其中的 count 等於想要的塊大小。
[root@localhost]# dd if=/dev/zero of=/home/swap bs=1024 count=2048000
3、設定交換檔案:
[root@localhost]# mkswap /home/swap
4、立即啟用交換分割槽檔案
[root@localhost]# swapon /home/swap
5、如果要在引導時自動啟用,則編輯 /etc/fstab 檔案,新增行:
/home/swap swap swap defaults 0 0
系統下次引導時,它就會啟用新建的交換檔案,再檢視SWAP分割槽大小發現增加了2G。
[@more@]來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9907339/viewspace-1037863/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Linux 增加 swap 分割槽Linux
- Linux系統中增加Swap分割槽檔案步驟方法Linux
- Linux系統中管理Swap分割槽Linux
- linux下增加swap分割槽Linux
- (轉) linux下增加swap分割槽Linux
- Linux系統如何進行分割槽?swap分割槽是什麼?Linux
- linux 增加swap大小!Linux
- linux中增加swap分割槽或檔案的步驟方法Linux
- Linux 建立swap分割槽Linux
- linux新增swap分割槽Linux
- 在裝完Linux系統之後自己去修改Swap分割槽的大小(兩種方法)Linux
- 【Linux】Linux檔案系統管理4 swap交換分割槽管理Linux
- linux分割槽大小Linux
- Linux可以增加分割槽大小嗎?有哪些好處?Linux
- Linux系統調整swap大小Linux
- 虛擬機器增加磁碟分割槽的大小虛擬機
- Linux SWAP 交換分割槽配置說明Linux
- Linux 分割槽擴容(根分割槽擴容,SWAP 分割槽擴容,掛載新分割槽為目錄)Linux
- Linux Swap交換分割槽介紹總結Linux
- 再談Linux下的swap分割槽薦Linux
- FreeBSD和Linux共享swap分割槽(轉)Linux
- 【Solaris】Solaris檔案系統管理2 SWAP交換分割槽管理
- linux重新設定分割槽大小Linux
- swap分割槽新增刪除
- Linux系統中分割槽是什麼?Linux系統分割槽方式有幾種?Linux
- 『學了就忘』Linux檔案系統管理 — 62、手動分配swap分割槽Linux
- Linux系統怎麼分割槽Linux
- Linux系統分割槽簡介Linux
- Linux下swap(交換分割槽)的增刪改Linux
- 擴充套件redhat linux as 5 的swap分割槽套件RedhatLinux
- 在Linux中增加swap空間Linux
- 用檔案新增Swap分割槽
- swap分割槽的知識(轉)
- Linux分割槽和檔案系統 ⑥Linux
- linux系統檢視分割槽檔案系統Linux
- 【實驗】【PARTITION】RANGE分割槽表增加分割槽
- 《RHEL6硬碟的分割槽和swap分割槽管理》——硬碟分割槽的大總結硬碟
- 雲端計算:交換分割槽管理 Swap