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

[Linux] ファイルシステム管理_コマンド_df, du, fsck, e2fsck, tune2fs

Last updated at Posted at 2025-02-08

ディスクの確認

dfコマンド

  • df: disk free
# df [オプション] デバイス名
オプション 英語の由来 説明
デフォルト ディスク使用量を、すべてのマウントされたファイルシステムに対して表示
-h human-readable 人間が読みやすい単位(KB, MB, GB)でディスク容量を表示
-T type ファイルシステムのタイプを表示
-a all 特別なファイルシステム(例えば仮想ファイルシステム)も表示
-i inodes 使用中および空いているiノードの数を表示
-l local ローカルファイルシステムのみを表示
-t type 指定したファイルシステムタイプを表示

ファイルシステムの確認

fsckコマンド

  • fsck: fail system check
# fsck [オプション] デバイス名 

ファイルシステムの管理

  • tune2fs: tune (ext2) file system
# tune2fs [オプション] デバイス名 
オプション 英語の由来 説明
デフォルト -c-1(無制限)、-i0(無効)、-j はなし(ext2 のまま)、-L は変更なし
-c 回数 check mount count 指定回数マウントされた後に fsck を実行するよう設定
-i 時間 interval between checks 指定期間ごとに fsck を実行するよう設定(d=日, w=週, m=月
-j journal ext2 ファイルシステムにジャーナルを追加し ext3/4 に変換
-L new-label label ファイルシステムのラベル(名前)を設定・変更

Ping-t

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