以下のパッケージをインストールしておく必要がある。
因みにクライアントに nfs-common が入ってない状態で mount しようとすると以下のようなエラーが出る。
Ubuntu って入ってないコマンド打つと、入れるべきパッケージ提案してくれたりするんだけど、流石にコマンド内でのエラー表示までは面倒は見てくれないみたいだね。
参考:
- サーバー: nfs-kernel-server
- クライアント: nfs-common
因みにクライアントに nfs-common が入ってない状態で mount しようとすると以下のようなエラーが出る。
$ sudo mount -t nfs SERVER_IP:NFS_PATH MOUNTPOINT mount: wrong fs type, bad option, bad superblock on SERVER_IP:NFS_PATH, missing codepage or helper program, or other error (for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount.<type> helper program) In some cases useful info is found in syslog - try dmesg | tail or soこれは mount.nfs が入ってないのが原因なんだそうな。
Ubuntu って入ってないコマンド打つと、入れるべきパッケージ提案してくれたりするんだけど、流石にコマンド内でのエラー表示までは面倒は見てくれないみたいだね。
参考:
- ask ubuntu / 2014-09-17: Why do I get “wrong fs type, bad option, bad superblock” error?
/etc/exports に以下に例えば以下のような設定を行う。
/var/local/dnsmasq/tftp/ubuntu-14.04.1-desktop-amd64 192.168.1.0/24(ro,insecure,no_root_squash,async,no_subtree_check)次に nfs server を reload してやる。
service nfs-kernel-server reload
以下のようにすれば mount 出来る。
$ sudo mount -t nfs 192.168.x.x:/var/local/dnsmasq/tftp/ubuntu-14.04.1-desktop-amd64 /mnt
- NFS?
タグ
コメントをかく