NFS mountで「can't read superblock」が出たとき

NFSマウントしようと思ったら、しばらく待たされた挙句「can't read superblock」とエラーを吐かれた。

# mount -t nfs xxx.xxx.xxx.xxx:/tftpboot/Linux /mnt

mount: xxx.xxx.xxx.xxx:/tftpboot/Linux: can't read superblock


で、Google先生に聞いてみたら、すぐに分かりました。
NFSでは、サーバ側にもクライアント側にも、portmapが必須な模様。今回は、そのportmapがクライアントで動いていなかった(インストールされていなかった)という話。


というわけで、Debianなので、

$ sudo apt-get install portmap

で、インストール&稼動させてやると、無事マウントできましたとさ。

参考

Stray Penguin - Linux Memo (NFSv4)
http://www.asahi-net.or.jp/~AA4T-NNGK/nfsv4.html