Ubuntu 14.04 : How do you use mount.cifs, mount.nfs, they are not in the repositories any more?

67,098

The mount.cifs command is provided by cifs-utils and mount.nfs by nfs-common.

In general, when you're looking for a particular file and don't know which package provides it, you can search in the Ubuntu Repositories or in synaptic. Alternatively, you can use apt-file.

If it is not installed, install it with sudo apt-get install apt-file and then update its database with apt-file update. Once you've done that, you can easily search package contents:

$ apt-file search mount.cifs mount.nfs
cifs-utils: /sbin/mount.cifs
cifs-utils: /usr/share/man/man8/mount.cifs.8.gz
$ apt-file search mount.nfs
manpages-fr-extra: /usr/share/man/fr/man8/mount.nfs.8.gz
manpages-fr-extra: /usr/share/man/fr/man8/umount.nfs.8.gz
nfs-common: /sbin/mount.nfs
nfs-common: /sbin/mount.nfs4
nfs-common: /sbin/umount.nfs
nfs-common: /sbin/umount.nfs4
nfs-common: /usr/share/man/man8/mount.nfs.8.gz
nfs-common: /usr/share/man/man8/umount.nfs.8.gz
Share:
67,098

Related videos on Youtube

Bran
Author by

Bran

I love Ubuntu. I use 14.04 at the moment =) My favorite versions in order are: 9.10 (Yep, 3 second bootup best ever), and 12.04 (Nautilus was perfect out of box in this one), and 14.04 (everything except nautilus I love) Thank you so much for making this website as everyone is so nice and helpful to our questions. Best of luck to you all.

Updated on September 18, 2022

Comments

  • Bran
    Bran over 1 year

    In Ubuntu 12 LTS, I always used mount.cifs and mount.nfs

    Now they are not in the Ubuntu 14.04 repository, so how do you use mount cifs and mount nfs or install them in 14?

    Thanks

    i.e.)

    Ubuntu 12.04 always worked with:

     root@ub12box# mount -t cifs -o user=administrator '\\192.168.0.1\Data' /tmp/myServer ; df ;
     Password: ***************
     Filesystem                1K-blocks      Used Available Use% Mounted
     on /dev/sdb2                 144636 85800  26058836  8% /
     \\192.168.0.1\Data 8059772 652288 407484  6% /tmp/myServer
    

    But doesnt work in Ubuntu 14.04 machine same command:

    root@ub14box# mount -t cifs -o user=administrator '\\192.168.0.1\Data' /tmp/myServer ; df ;
    mount: block device \\192.168.0.1\Data is write-protected, mounting read-only 
    mount: cannot mount block device \\192.168.0.1\Data read-only
    
    Filesystem                1K-blocks      Used Available Use% Mounted
    on /dev/sdb2                 126636 950900  99958936  2% /
    
    root@ub14box# dmesg|tail
    [ 2023.664186] Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE
    [ 2023.664197] CIFS VFS: Send error in SessSetup = -13
    [ 2023.667124] CIFS VFS: cifs_mount failed w/return code = -13
    [ 2023.676417] Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE
    [ 2023.676424] CIFS VFS: Send error in SessSetup = -13
    [ 2023.676499] CIFS VFS: cifs_mount failed w/return code = -13
    
    • Krista K
      Krista K about 8 years
      It just worked for me on 14.04.4 LTS.
  • Bran
    Bran about 10 years
    Thank you so much! This was VERY HELPFUL! I appreciate it very much!!!
  • Bran
    Bran about 10 years
    One more question. After installing these packages I noticed that my machine now has ports open for rpcbind, and rpc.statd. Can I disable these to close these ports somehow?
  • terdon
    terdon about 10 years
    @Bran I'm sure you can but I don't know how off the top of my head. You could post that as a new question.
  • Bran
    Bran about 10 years
    Found it: /etc/init.d/rpcbind and /sbin/rpcbind <-- I just renamed these and rebooted, and now server has no rpcbind capability. Thanks so much!