Skip to content
Technology News Information & Jobs

Technology News Information & Jobs

Ubuntu Tutorials, Ubuntu How To , Linux Tips, Tech Jobs

  • Work with US
  • Search Jobs
  • Post a Job
  • Contact Us
  • Ubuntu
    • Ubuntu 18.04
  • Ubuntu 20.04
  • Ubuntu 22.04
  • Themes
  • Linux
  • Laptops
  • Tutorials
  • Job Dashboard
  • Toggle search form
How To Mount Windows Share On Ubuntu Distro

How To Mount Windows Share On Ubuntu 22.04 LTS

Posted on August 7, 2023August 8, 2023 By admin 3 Comments on How To Mount Windows Share On Ubuntu 22.04 LTS

Tutorial To Mount Windows Share On Ubuntu 22.04 LTS Operating System.

We will use CIFS or Common Internet File System in Ubuntu to access a particular mount point on a windows share. This tutorial will go through all steps of installing and mounting the Windows Share on Ubuntu Linux.

How To Mount Windows Share On Ubuntu 22.04 LTS

At first,

Install CIFS on Ubuntu operating system

Run the following commands in Ubuntu to install a common internet file system:

Install the cifs-utils package on Ubuntu Linux by using the following command line

sudo apt-get update
sudo apt-get install cifs-utils

Now, let’s go through the process for manually and automatically mounting windows share on Linux.

Creating a directory on your Ubuntu by the name winshare under /mnt

sudo mkdir /mnt/winshare

Note: /mnt/winshare is the mount point of the remote windows share.

Windows share can be mounted on your Ubuntu with the CIFS option of the mount command.

sudo mount -t cifs -o username=$windows_username,password=$windows_username_password //WIN_SHARE_IPAddressofthewindows/$shared_name /mnt/winshare

If the $windows_username is in a windows domain, you need to specify the domain, and run the following command to do that.

sudo mount -t cifs -o username=$windows_username,password=$windows_username_password,domain=$windows_domain_name //WIN_SHARE_IPaddressofthewindows/$shared_name /mnt/winshare

Once the windows share is successfully mounted, you can use command df -h to verify the mounting windows share in Linux.

df -h
Filesystem                 Size  Used Avail Use% Mounted on
udev                       3,9G     0  3,9G   0% /dev
tmpfs                      787M  2,2M  785M   1% /run
/dev/sda2                  450G   23G  405G   6% /
tmpfs                      3,9G  705M  3,2G  18% /dev/shm
tmpfs                      5,0M  4,0K  5,0M   1% /run/lock
tmpfs                      3,9G     0  3,9G   0% /sys/fs/cgroup
//192.168.1.10/sharedfolder  300G  5,7G  295G   2% /mnt/winshare

Create a CIFS credentials file: /etc/cifs-credentials now with the following commands:

username = $windows_username
password = $windows_username_password
domain = $windows_domain_name

You also need to grant permission to read and write to the credentials file:

sudo chmod +rw /etc/cifs-credentials

Now, we can mount the share using credentials with commands as follows:

sudo mount -t cifs -o credentials=/etc/cifs-credentials //WIN_SHARE_IP/$shared_name /mnt/winshare

The drawback of the manual mount is that when you reboot your Linux machine, the shares will be lost. You need to configure the file /etc/fstab that contains the necessary configuration that allows automatically mount cifs permanently in Linux.

sudo vim /etc/fstab

Now add the following line to the file.

//WIN_SHARE_IPaddress/$shared_name /mnt/winshare cifs credentials=/etc/cifs-credentials,file_mode=0755,dir_node=0755 0 0

Run the command to mount all the entries listed in /etc/fstab

sudo mount -a

If you want to unmount a share, use the umount command:

sudo umount /mnt/winshare
READ More Relevant Stuff:  How To Install NotepadQQ On Linux [Updated]
How To Ubuntu Tags:microsoft, Share

Post navigation

Previous Post: How To Set JAVA_HOME Environment Variable On Ubuntu 22.04
Next Post: Top Free Linux Cloud Servers In 2023

Related Posts

Install GNU Compiler Collection (GCC) On Ubuntu 22.04 LTS Install GNU Compiler Collection (GCC) On Ubuntu 22.04 LTS How To Ubuntu
Linux For Students: Must-Have Apps for Effective Education Linux For Students: Must-Have Apps for Effective Education How To Ubuntu
How To Install Docker On Ubuntu 22.04 LTS [User Guide] How To Install Docker On Ubuntu 22.04 LTS [User Guide] How To Ubuntu
Ubuntu 20.04 LTS Released : Download Now Ubuntu 20.04 LTS Available On Microsoft Store How To Ubuntu
How To Install Samba on Ubuntu 20.04 LTS How To Ubuntu
Linux Laptop With Ubuntu 20.04 Is Available To Buy At $1,099.99 Linux Laptop With Ubuntu 20.04 Is Available To Buy At $1,099.99 How To Ubuntu

Comments (3) on “How To Mount Windows Share On Ubuntu 22.04 LTS”

  1. Brendan Eagan says:
    November 15, 2022 at 5:47 pm

    Just used this info – thank you.

    There is a type-o, however. The /etc/fstab example shows as “file_mode=0755,dir_node=0755”

    It should be “file_mode=0755,dir_mode=0755” (mode, not node)

    Reply
  2. Vinnie Vu says:
    February 23, 2023 at 6:32 pm

    There was a typo here:
    file_mode=0755,dir_node=0755

    It’s suppose to be dir_mode and not dir_node

    Reply
  3. Marc says:
    May 20, 2023 at 4:35 am

    A couple errors:
    1. The credentials file must not have any space between username=$username and password=$password.
    1. The fstab mount dir_node=755 is incorrect. I t should be dir_mode

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • How To Enable Hibernate in Ubuntu 22.04 LTS May 20, 2024
  • Popular Ubuntu Games: Top 5 Games To Play March 17, 2024
  • WordPress | Your site doesn’t include support for the “generateblocks/container” block GenerateBlocks Plugin February 11, 2024
  • Ubuntu Autoremove Command Debian Autoremove Command February 10, 2024
  • How To Mount Windows 11 Shares on Debian Linux December 7, 2023
  • Anonymous Browsing 101: A Deep Dive Into Residential Proxies November 20, 2023
  • How To Correctly Install Uninstall Linux Ubuntu Nvidia Drivers Fast October 31, 2023
  • Ethical Web Design: The Dos and Don’ts October 28, 2023
  • Understanding the Role of Security Operations Center October 25, 2023
  • The Positive Effects of AI Tools and Online Services on Students Successful Essay-Writing Skills October 3, 2023
  • Linux Wget Examples September 27, 2023

Categories

  • Android
  • Apple
  • Blogs
  • Debian
  • Fix
  • Gadgets
  • Game
  • Google
  • How To Ubuntu
  • Internet
  • Laptops
  • Linux
  • Linux Commands
  • Linux Game
  • Linux Mint
  • News
  • Operating Systems
  • Security
  • Technology
  • Themes
  • Tools
  • Tutorials
  • Ubuntu
  • ubuntu 18.04
  • Ubuntu 20.04
  • Ubuntu 22.04
  • Windows 11
  • Wordpress
  • Search Jobs
  • Post a Job
  • Job Dashboard
  • Contact Us
  • About US
  • Cookie Policy
  • Terms and Conditions
  • Privacy Policy
  • Sitemap
  • Write For US

Tags

android apps centos ChatGPT command Commands Debian deepin Desktop docker Fedora fix game games Gaming gnome google kernel linux linux commands linux kernel Linux laptops Linux Mint Linux themes minecraft NVIDIA Python Raspberry Pi sysadmin themes ubuntu ubuntu 18.04 Ubuntu 18.04 LTS Ubuntu 20.04 ubuntu 20.04 lts Ubuntu 22.04 LTS Ubuntu games Ubuntu kernel ubuntu themes ubuntu tutorial VirtualBox Windows Windows 11 Wine WSL
itsubuntu.com is an Equal Opportunity Employer. For Advertisement, Jobs, Guest posts, and any other thoughts, email us at [email protected]
  • Prepared Foods Order Writer (Deli / Culinary – Buyer / Inventory Replenishment) – Full Time

    • Thayne, WY
    • Whole Foods Market
    • Full Time
  • Sr. Risk and Controls Compliance Policy Writer (on-site Phoenix, Chicago, San Fran)

    • San Francisco, CA
    • INSPYR Solutions
    • Full Time
  • Artificial Intelligence & Gen AI Engineer – Tampa, Hybrid

    • Tampa, FL
    • Citigroup Inc
    • Full Time
  • Sr. Technical Documentation Specialist – REMOTE

    • Atlanta, GA
    • HHS Technology Group, Inc.
    • Full Time
  • TECHNOLOGY VICE PRESIDENT, ARTIFICIAL INTELLIGENCE & MACHINE LEARNING AND DATA

    • Falls Church, VA
    • NLP PEOPLE
    • Full Time
  • Architectural Drafter

    • Sarasota, FL
    • Start To Finish Drafting
    • Full Time
  • Senior or Principal Data Scientist – Technical AI Ethicist

    • Seattle, WA (Remote)
    • salesforce.com, inc.
    • Full Time
  • Artificial Intelligence (AI) Data Scientist

    • Fairfax, VA
    • General Dynamics Information Technology
    • Full Time

Copyright © 2025 Technology News Information & Jobs.

Powered by PressBook Grid Blogs theme