본문 바로가기

목록이 없습니다.

[Ubuntu] mount: /mountDirectory: bad option; for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount.<type> helper program.

2022. 1. 27. Server/Ubuntu
  1. 상황
  2. 원인
  3. 해결

 

상황

nfs 마운트를 하려고 하는데 mount 명령어를 통해서 nfs를 /mountDirectory 디렉토리에 마운트를 시도하니 에러가 발생함.

 

mount: /mountDirectory: bad option; for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount.<type> helper program.

 

원인

nfs 마운트를 하려면 관련 패키지가 필요하다. 마운트 하려는 디렉토리가 있는 해당 서버에 apt 명령어를 통해서 패키지 설치를 해준 후 다시 마운트를 시도한다.

 

해결

# apt-get install nfs-common -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  keyutils libnfsidmap2 libtirpc1 rpcbind
Suggested packages:
  watchdog
The following NEW packages will be installed:
  keyutils libnfsidmap2 libtirpc1 nfs-common rpcbind
0 upgraded, 5 newly installed, 0 to remove and 155 not upgraded.
Need to get 399 kB of archives.
After this operation, 1,363 kB of additional disk space will be used.

...

# mount nfs /mountDirectory