• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

mount.cifs: command not found

by admin

SMB, also known sometimes as CIFS, is the protocol in charge of providing shared access to files and printers on Windows networks. To make things simpler we use both terms interchangeably. This service can run directly over TCP port 445, but it can also use the NetBIOS API.

The Linux CIFS filesystem is composed of two parts: the kernel code (referred to by the name of the kernel module, cifs) and the user-space mount tools. The cifs kernel filesystem support is generally built as a module and loaded when a user attempts to connect to an SMB/CIFS file server using the mount command. The easiest way to tell whether your Linux host possesses cifs support is to examine the contents of /proc/filesystems. Check this file and look for the term cifs listed in the output:

$ cat /proc/filesystems | grep cifs
nodev   cifs

Mounting a SMB/CIFS File Share

The general syntax for accessing a SMB/CIFS file share is:

$ mount.cifs //server/share mount_point [-o options ]

In case you encounter below error while running the mount.cifs command:

mount.cifs: command not found

you may try installing below package as per your choice of distribution.

Distribution Command
Debian apt-get install cifs-utils
Ubuntu apt-get install cifs-utils
Alpine apk add cifs-utils
Arch Linux pacman -S cifs-utils
Kali Linux apt-get install cifs-utils
CentOS yum install cifs-utils
Fedora dnf install cifs-utils
Raspbian apt-get install cifs-utils
Docker docker run cmd.cat/mount.cifs mount.cifs

Features and Benefits of CIFS

According to Microsoft, CIFS/SMB has a series of features that give it many benefits over other network protocols.

  • Integrity and concurrency: CIFS allows concurrent access to the same file, while providing the needed locking mechanisms to prevent conflicts.
  • Optimization for slow links: The CIFS protocol has been optimized over the years to work well even over slow links.
  • Security: A CIFS server allows both anonymous as well as authenticated secure access to the resources.
  • Performance and stability
  • Unicode file names

Filed Under: Linux

Some more articles you might also be interested in …

  1. How to Mount NFS File Systems Using ‘autofs’ in CentOS/RHEL
  2. CentOS / RHEL : How to add a new Physical Volume to an existing Volume Group
  3. CentOS / RHEL 5,6 : How to reinstall GRUB loader from rescue mode
  4. After Reboot RAID1 Disk Gets Removed/Out of Sync (CentOS/RHEL)
  5. mkswap Command Examples in Linux
  6. sed Command Examples in Linux
  7. Linux OS Service ‘avahi-daemon’
  8. What is the purpose of “system user” in MySQL Replication
  9. gcov Command Examples in Linux
  10. Understanding How an Email System Works

You May Also Like

Primary Sidebar

Recent Posts

  • pw-cat Command Examples in Linux
  • pvs: command not found
  • pulseaudio: command not found
  • pulseaudio Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright