Mount: wrong fs type, bad option, bad superblock on nfs mount

From FVue
Jump to: navigation, search

Problem

When doing a sudo mount -a, I receive this error on a nfs-mount:

mount: wrong fs type, bad option, bad superblock on <ip-address>:<dir>,
       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

Solution

Package nfs-common is missing. Install with:

$ sudo apt-get install nfs-common

Environment

  • Kubuntu 10.04

Journal

20100829

Investigating /sbin/mount.*, I can see nfs is missing (ntfs != nfs):

ls /sbin/mount.*
/sbin/mount.fuse  /sbin/mount.ntfs  /sbin/mount.ntfs-3g  /sbin/mount.ntfs-fuse

20130101

Got the same error when trying to automate the mount via ansible:

msg: Error mounting DIR: mount: wrong fs type, bad option, bad superblock on DEVICE,
       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

Fixed by adding the prerequisite underneath to the ansible playbook:

- name: Ensure package nfs-common is installed
  apt: pkg=nfs-common state=present

Comments

blog comments powered by Disqus