5
0

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 1 year has passed since last update.

`Ubuntu: no space left on device `と表示されたがディスク容量は余っているなぜ、、と思ったらinodeが足りなかっただけだった際のメモ

Posted at

表題のメモです

エラー内容

ある日、ubuntu上で作業をしているとこんなエラーメッセージが出ました

`Ubuntu: no space left on device `

ただのディスク容量かと思いきや、以下を見ても明らかに不足していない(/以下に十分な空きがあった)

df -h

なぜ、、と思ったらinodeを確認していたらこちらが枯渇していた。

df -ih

「No space left on device」のメッセージは、主にLinuxやmacOSで使用する容量が不足した際に発生するエラーです。
容量不足が発生する原因として、次の2つのパターンがあります。
ディスク容量が不足している
「inode」の容量が不足している

以下の対策を行った

不要なファイルを削除(ログファイルなどが大量であればこれで解決するはず)
再起動(tmpfsに大量ファイルがあればこれで解決するはず)
これでも解決しない場合は他に不要にinodeを使っているものがいないか色々と見直す必要がある

無事に解決、良かった

5
0
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
5
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?