LoginSignup
0
1

More than 5 years have passed since last update.

Ubuntu 16.04 でニフティクラウド NAS サーバーの NFS マウント

Posted at

検証に必要なので作業したメモ。

まず、必要なパッケージをインストール。

# apt-get -y install nfs-common

マウント先のディレクトリ作成。

# mkdir /nfs

マウント実行。

# mount -t nfs4 ${NAS サーバーの IP}:/ /nfs

マウントされてる。

# df -h | grep nfs
${NAS サーバーの IP}:/  985G   72M  985G   1% /nfs

いったんアンマウント。

# umount /nfs

サーバーが再起動されてもいいように /etc/fstab に書いておく。

# echo '${NAS サーバーの IP}:/ /nfs nfs defaults 0 0' >> /etc/fstab

/etc/fstab の内容をもとにマウントできるか確認。

# umount /nfs

マウントできてる。

# df -h | grep nfs
${NAS サーバーの IP}:/  985G   72M  985G   1% /nfs

参考資料

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