hardware:raspberry_pi:dietpi:zram_swap

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
hardware:raspberry_pi:dietpi:zram_swap [2022/08/04 06:08] – [ZRAM の他にさらに Swap を 3072MB 追加する] ともやんhardware:raspberry_pi:dietpi:zram_swap [2022/08/10 00:49] (現在) – [ZRAM の他にさらに Swap を 3072MB 追加する] ともやん
行 54: 行 54:
 $ sudo fallocate -l 3072M /var/swap $ sudo fallocate -l 3072M /var/swap
 $ sudo chmod 0600 /var/swap $ sudo chmod 0600 /var/swap
 +$ sudo mkswap /var/swap
 </pre></html></WRAP> </pre></html></WRAP>
 <WRAP color_result><html><pre> <WRAP color_result><html><pre>
行 61: 行 62:
 </pre></html></WRAP> </pre></html></WRAP>
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
-$ sudo swapon /var/swap+$ sudo swapon -v /var/swap
 $ sudo swapon -s $ sudo swapon -s
 </pre></html></WRAP> </pre></html></WRAP>
行 88: 行 89:
 </WRAP> </WRAP>
 ※[[https://unix.stackexchange.com/questions/365953/what-sw-means-in-the-fstab-swap-entry-for-mount-options-column|What 'sw' means in the fstab swap entry for 'mount options' column]]\\ ※[[https://unix.stackexchange.com/questions/365953/what-sw-means-in-the-fstab-swap-entry-for-mount-options-column|What 'sw' means in the fstab swap entry for 'mount options' column]]\\
 + [[https://forums.ubuntulinux.jp/viewtopic.php?id=20079|Ubuntu日本語フォーラム / swap fileの設定をfstabへの記述するときの設定値の違いについて]]\\
  
 ==== dietpi-set_swapfile の動作... ==== ==== dietpi-set_swapfile の動作... ====
  • hardware/raspberry_pi/dietpi/zram_swap.1659560918.txt.gz
  • 最終更新: 2022/08/04 06:08
  • by ともやん