hack のためのネタ帳, etc,,,

以下のパッケージをインストールしておく必要がある。
  • サーバー: 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 って入ってないコマンド打つと、入れるべきパッケージ提案してくれたりするんだけど、流石にコマンド内でのエラー表示までは面倒は見てくれないみたいだね。

参考:
/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?
タグ

コメントをかく


「http://」を含む投稿は禁止されています。

利用規約をご確認のうえご記入下さい

Wiki内検索

フリーエリア

管理人/副管理人のみ編集できます