9
18

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Raspberry Pi のスワップ領域拡張

Posted at

最近我が家のRaspberry Piのupgradeが失敗するようになりました。スワップ領域拡張を行うことで解消しましたので、そのメモです。

スワップ領域拡張

/etc/dphys-swapfile の CONF_SWAPSIZE を例えば以下のように編集します。

# set size to absolute value, leaving empty (default) then uses computed value
#   you most likely don't want this, unless you have an special disk situation
# CONF_SWAPSIZE=100
CONF_SWAPSIZE=1024

設定を反映するには、sudo /etc/init.d/dphys-swapfile restart を実行します。反映を確認するにはswapon -sを実行します。

Filename     Type   Size    Used    Priority
/var/swap    file   1048572 0       -2

参考にしたサイト

Raspberry Pi Zeroを使ってAmazonの商品を即購入するデバイスを作る

9
18
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
18

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?