LoginSignup
2

More than 3 years have passed since last update.

posted at

MacからUbuntuのファイルをNFSでマウントする

下記コマンドでマウントできる。細かいサーバーの設定は書かない。ググればすぐに見つかる。

$ sudo mkdir /Volume/aaa
$ sudo mount_nfs -P server:directory /Volume/aaa

よくわからなかったのは、オプション-Pを付けずに実行するとエラーが起きる。

$ sudo mount_nfs -P server:directory /Volume/aaa
mount_nfs: can't mount directory from server onto /Volumes/aaa: Operation not permitted

真面目にmanページを読んでみたが、よくわからない。

-P (resvport)

resvport
             Use a reserved socket port number.  This is useful for mounting servers that require clients to use a reserved port number on the mistaken belief that this makes NFS more secure. (For the rare case where the client has a trusted root account but untrustworthy users and the network cables are in secure areas this does help, but for normal desktop clients this does not apply.)

動いたので良しとする。

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
What you can do with signing up
2