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

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 Reload /etc/network/interfaces in Ubuntu 22.04?
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

Rsync Command In Linux With Examples [Updated] Rsync Command In Linux With Examples [Updated] How To Ubuntu
40+ Best Browser Games In 2023 40+ Best Browser Games Game
Install Synaptic Package Manager On Ubuntu 20.04 LTS Install Synaptic Package Manager On Ubuntu 20.04 LTS How To Ubuntu
How To Install Composer On Ubuntu 20.04 LTS How To Install Composer On Ubuntu 20.04 LTS How To Ubuntu
Ubuntu 23.04 Official Flavors Released How To Enable Hibernate in Ubuntu 22.04 LTS How To Ubuntu
Ubuntu 20.04 LTS Released : Download Now Ubuntu 20.04 LTS Available On Microsoft Store How To Ubuntu

Recent Posts

  • New Job Search October 10, 2025
  • 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

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]
  • Senior Technical Writer

    • Sterling Heights, MI
    • Acro Service Corp
    • Full Time
  • AML SAR Writer

    • New Castle County, DE
    • Pyramid Consulting, Inc
    • Full Time
  • Produce Order Writer (Buyer / Inventory Replenishment) – Full Time

    • Seattle, WA
    • Whole Foods Market
    • Full Time
  • Customs Entry Writer

    • Chicago, IL
    • General Noli Forwarding & Logistics
    • Full Time
  • SCM Analytics Engineer

    • Miami, FL
    • Southern Glazer's Wine & Spirits
    • Full Time
  • Data Scientist

    • Fort Belvoir, VA (Remote)
    • Marathon TS
    • Full Time
  • Automotive Service Writer

    • Heath, OH
    • Coughlin Automotive
    • Full Time
  • Senior Data Scientist

    • Raleigh, NC
    • Cognizant
    • Full Time

Copyright © 2025 Technology News Information & Jobs.

Powered by PressBook Grid Blogs theme