LoginSignup
2
3

More than 3 years have passed since last update.

isoをマウントする

Posted at

isoをマウントするには?

mountコマンドの利用

Linuxではmountコマンドを使用します。
しかし、サーバにcdromやmediaを搭載するディレクトリがあるとは限りません。
存在しない場合はディレクトリから作成し、作成したディレクトリへisoをテラタームなどを用いて転送します。
サーバにisoを持ってきた後、isoマウントする方法をここでは説明します。

①まず、現在のディレクトリ内にisoファイルが存在することを確認します。

# ls -l /media
-rw-r--r--. 1 root root 531628032  4月 17  2019 CentOS-7-x86_64-NetInstall-1810.iso

②次に対象のisoをマウントします。

[定型文]
# mount -t iso9660 <isoイメージファイル> <マウント場所>

# mount -t iso9660 /dev/cdrom /media

③マウントされたのか、dfコマンドにて確認します。

# df -T

アンマウントされるには?

umountコマンドの利用

[定型文]
# umount <アンマウントするディレクトリ>

[使用例]
# umount /media

引用

DVD-ROMイメージファイルをマウントしてデータを参照

http://ossfan.net/setup/linux-17.html

isoイメージをマウントする方法

https://www.server-memo.net/memo/iso-mount.html

以上がisoのマウント方法でした。
最後までお読みいただきありがとうございました!

2
3
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
2
3