• العربية
  • Azerbaijani
  • Català
  • 中文
  • Hrvatski
  • Čeština
  • Dansk
  • Nederlands
  • English
  • Estonian
  • Persian
  • Français
  • Deutsch
  • עברית
  • Magyar
  • Italiano
  • Macedonian
  • Norwegian
  • Português
  • Português
  • Română
  • Русский
  • Español
  • Svenska
  • Türkçe
  • Українська
  • Account
    • Login
    • Register
    • Forgot Password?
  • FairyHosting.com
    • Services
      • My Services
      • Order New Services
      • Domains
      • DNS MANAGER
    • Payment
      • Invoices
      • Add funds
      • Mass Payment
    • Support
    • Knowledgebase
    • Affiliates

      Categories

    Hestia CP
    2
    ISPmanager
    9
    Linux Server
    25
    Plesk
    14
    Windows Server
    14
    Fairy Disk Services
    4
    Mikrotik (RouterOS)
    8
    Server management
    19
    For a new client
    13

      Categories

      Tag Cloud

    Debian Восстановление root пароля CentOS7 Linux сброс root пароля CentOS7 сервер Password recovery Root password Ubuntu

      Support

    My Support Tickets
    Knowledgebase
    Open Ticket

    Mounting CIFS share in Linux (CentOS, Debian, Ubuntu) Print

    • 158

    Ensure the command mount.cifs is present in your distro. If you haven't need to install cifs-utils. We are also will consider, how to mount network folder and after rebooting folder will be saw in system.

     

    Preparation

    Use the following command to installing the CIFS utils.

     

    В CentOS:

    # yum install cifs-utils

     

    В Debian/Ubuntu:

    # apt-get install cifs-utils

     


    Now you need to create a mount point. For example create folder - /mnt/fb1234. You can choose any way for your disk space.

     

    Command:

    # mkdir /mnt/fb1234

     

    Mounting

    Use the following command's to mount the CIFS share. Both of them is correct.

     

    # mount -t cifs -o username=fb1234 //Server IP-addresses/fb1234 /mnt/fb1234

    # mount.cifs -o username=fb1234 //Server IP-addresses/fb1234 /mnt/fb1234

     

    Attention! Username and folder will starting as "fb" and than personal ID.

     

    After following one of this command's enter password. Please check, that your network drive is mount in operating system:

     

    # df -h


    Auto mounting

    To perform auto mounting of windows share, you need to create a password file and use that in /etc/fstab. Create a file /root/.smbcredentials:

     

    В CentOS:

    # vi /root/.smbclient

     

    В Debian/Ubuntu:

    # nano /root/.smbclient

     

    Than use the following content - username and password for the remote CIFS share.

     

    Now add the following line in /etc/fstab file:

     

    //Server IP-addresses/fb1234 /mnt/fb1234 cifs user,rw,credentials=/root/.smbclient 0 0

     

    In this article was mounted network folder «fb1234» on the server «Server IP-addresses» in point /mnt/fb1234.

     

    Now the remote share should be mounted at /mnt/fb1234.


    Was this answer helpful?

    Related Articles

    Where can I search data access of my services? All your necessary data is located in clint area. Go to the main page -... How to connect FTPS in FileZilla? FTPS (File Transfer Protocol + SSL) — is an extension to the FTP protocol that adds Secure... Map a network drive This type of connection very simple and comfortable in use. You need for this:   Server...
    « Back

      Tag Cloud

    Debian Восстановление root пароля CentOS7 Linux сброс root пароля CentOS7 сервер Password recovery Root password Ubuntu

      Support

    My Support Tickets
    Knowledgebase
    Open Ticket
    • Billing
      • Services
      • Invoices
      • Support
      • Knowledgebase
    • Services
      • Virtual servers
      • Dedicated servers
      • Colocation
      • Business hosting
      • Fairy Disk
      • Routers for rent
      • SSL-Certificates
    • News
    • Company
      • About Us
      • Contacts
      • User agreement
      • Privacy policy
    • Technologies

      RJ Network OÜ
      Reg.nr 14694302
      VAT ID: EE102147829

      Narva: P. Kerese tn 5, 20309
      Tallinn: Paul Pinna 8, 13615

    Telegram Chat

    +372 6647001

    [email protected]

    Copyright © 2025 FairyHosting.com. All Rights Reserved.


    Loading...
    Loading...
    Choose language
    العربية
    Azerbaijani
    Català
    中文
    Hrvatski
    Čeština
    Dansk
    Nederlands
    English
    Estonian
    Persian
    Français
    Deutsch
    עברית
    Magyar
    Italiano
    Macedonian
    Norwegian
    Português
    Português
    Română
    Русский
    Español
    Svenska
    Türkçe
    Українська

    Generate Password

    Please enter a number between 8 and 64 for the password length