0
1

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 3 years have passed since last update.

【ubunutu】swapの無効化

Last updated at Posted at 2021-03-04

背景

swapがfullになってPCがフリーズする事が多々 swapを無効にすれば解消される

image.png

swapの無効化

swapをoffにする
sudo swapoff -v /swapfile

以下のラインをコメントアウト

sudo gedit /etc/fstab
# /swapfile swap swap defaults 0 0

swapファイルの削除

sudo rm /swapfile

再起動

sudo reboot
0
1
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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?