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

[Linux] パーティション設計

Last updated at Posted at 2025-02-24

最低限必要なパーティション

  • ルートパーティション(/
  • スワップ領域

ディレクトリ一覧

ディレクトリ 由来 分割適否 説明(分割適否の理由)
/ root ルートディレクトリ。システム全体の最上位ディレクトリ。
/boot boot 起動(ブート)に必要なファイル(カーネルや初期RAMディスクなど)を格納。
(起動の安定性向上のため分割)
/home home ユーザーのホームディレクトリ。
(再インストール時にデータを保持するため分割)
/tmp temporary 一時ファイルを格納。
(容量の圧迫を防ぐため分割)
/usr user services and routines 起動(ブート)不必要なファイルを格納。
アプリケーションやライブラリを格納。
(大容量になるため分割)
/var variable ログやキャッシュなどの可変データを格納。
(ログ肥大化の影響を防ぐため分割)
/opt optional 追加のソフトウェア(パッケージ)を格納。
(大規模環境では分割推奨)
/srv service サービスのデータを格納。
(サーバ用途では分割推奨)
/etc etcetera × 設定ファイルを格納。
/bin](#bin binary × 起動(ブート)にも必要な基本コマンドを格納。
e.g. ls, cp, mv, cat
/sbin system binary × 起動(ブート)にも必要なシステム管理用コマンドを格納。
e.g. fsck, reboot, ifconfig
/dev device × デバイスファイルを格納。
デバイスへのアクセス用
/proc process × 仮想ファイルシステム。
デバイスの情報用
/lib library × システムライブラリを格納。
/media medium × リムーバブルメディアをマウント。
/mnt mount × 一時的なマウントポイント。
/root root × root ユーザーのホームディレクトリ。
/run runtime × ランタイムデータを格納。
/sys system × カーネルとデバイス情報を格納。

参考リンク

Ping-t

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