2016/09/12更新 対応バージョン: 16.04 swap領域を拡張する手順を示す。 手段としてはサイズ変更可能なファイルシステムを使用したり新たにディスクパーティションを切り出す方法など様々あるが、ここではOS稼働中でも作業可能なファイルを用いた方法を用いる。 現状確認 まず現在のswapの状態を確認しておく。 % cat /etc/fstab : <file system> <mount point> <type> <options> <dump> <pass> : UUID=xxxxx-xxx-xxxx none swap sw 0 0 : % swapon -s Filename Type Size Used Priority /dev/mmcblk0p3 partition 4084732 56704 -1 % free -h total used free shared
![[Ubuntu] swap領域拡張手順(ファイル割当) - Life with IT](https://cdn-ak-scissors.b.st-hatena.com/image/square/63c67004f340a9cfebe1346d512a10a786385cbc/height=288;version=1;width=512/https%3A%2F%2Fl-w-i.net%2Fimg%2Flogo_256.png)