{"id":750,"date":"2011-07-18T10:57:24","date_gmt":"2011-07-18T15:57:24","guid":{"rendered":"http:\/\/it.thelibrarie.com\/weblog\/?p=750"},"modified":"2012-05-29T11:00:08","modified_gmt":"2012-05-29T16:00:08","slug":"mount-nfs-on-ubuntu","status":"publish","type":"post","link":"https:\/\/it.thelibrarie.com\/weblog\/2011\/07\/mount-nfs-on-ubuntu\/","title":{"rendered":"Mount NFS on Ubuntu"},"content":{"rendered":"<p>Basic LAMP Ubuntu 10.04.2 LTS trying to mount NFS share from a FreeNAS 0.7.2 system.  I was running the following command:<\/p>\n<p><code>mount -t nfs 10.10.0.99:\/mnt\/hotswap\/NFS\/ \/mnt\/freenas\/<\/code><\/p>\n<p>and receiving the following error<\/p>\n<blockquote><p>mount: wrong fs type, bad option, bad superblock on 10.10.0.99:\/mnt\/hotswap\/NFS\/,<br \/>\n       missing codepage or helper program, or other error<br \/>\n       (for several filesystems (e.g. nfs, cifs) you might<br \/>\n       need a \/sbin\/mount.<type> helper program)<br \/>\n       In some cases useful info is found in syslog &#8211; try<br \/>\n       dmesg | tail  or so<\/p><\/blockquote>\n<p>Awesome.  So I tried with the -o &#8216;vers=3&#8217; command just in case.  Same issues persist.<\/p>\n<p>It looks like the common NFS files are missing in the vanilla ubuntu server installation:<br \/>\n<code>apt-get install nfs-common<\/code><br \/>\nRerun the mount command is successful<\/p>\n<p>And, since I like to create NFS on ubuntu as well:<br \/>\napt-get install nfs-kernel-server<br \/>\nnano \/etc\/exports<br \/>\nAdd:<br \/>\n\/path\/to\/share   Hostname(rw,sync,no_root_squash)<br \/>\nor in my case<br \/>\n\/NFS   *(rw,sync,no_root_squash)<br \/>\nThen restart nfs<br \/>\n\/etc\/init.d\/nfs-kernel-server restart<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Basic LAMP Ubuntu 10.04.2 LTS trying to mount NFS share from a FreeNAS 0.7.2 system. I was running the following command: mount -t nfs 10.10.0.99:\/mnt\/hotswap\/NFS\/ \/mnt\/freenas\/ and receiving the following error mount: wrong fs type, bad option, bad superblock on 10.10.0.99:\/mnt\/hotswap\/NFS\/, missing codepage or helper program, or other error (for several filesystems (e.g. nfs, cifs) &hellip; <a href=\"https:\/\/it.thelibrarie.com\/weblog\/2011\/07\/mount-nfs-on-ubuntu\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Mount NFS on Ubuntu<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-750","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/750","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/comments?post=750"}],"version-history":[{"count":4,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/750\/revisions"}],"predecessor-version":[{"id":967,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/750\/revisions\/967"}],"wp:attachment":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/media?parent=750"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/categories?post=750"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/tags?post=750"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}