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][command] マウントとアンマウント_mount, umount

Last updated at Posted at 2025-02-16

moutコマンド

# mount [オプション]
# mount [オプション] デバイス名 マウントポイント
オプション 由来 説明
default 現在マウントされているファイルシステムの一覧が、/etc/mtabファイルの情報を元に表示される
-a all /etc/fstab に記載されたすべてのファイルシステムをマウント
-t type 指定した種類のファイルシステムをマウント
-o オプション options マウント時の追加オプションを指定(例: ro = 読み取り専用, rw = 読み書き可能)
--bind bind 既存のディレクトリやファイルを別の場所に再マウント

umountコマンド

# umount [オプション]
# umount [オプション] デバイス名またはマウントポイント
オプション 由来 説明
-a all /etc/mtab に記載されたすべてのマウントポイントをアンマウント
-t ファイルシステム名 type 指定した種類のファイルシステムのみをアンマウント

参考リンク

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?