To mount Windows shares on Ubuntu, use the steps below; Step 1: Create Windows Shares. From Thomas-Krenn-Wiki. You made the switch to Linux and at least one Windows computer is still on your network. Open the /etc/fstab file with your text editor: sudo nano /etc/fstab. To mount the Windows shared folder type “sudo mount.cifs //Technig-Win10/SharedFiles /home/ulx/Desktop/WinFiles/ -o user=Win10” command. Issue the command sudo mount -a and the share will be mounted. Accessing all shared folders from Linux Linux automatically detects and connects to Windows networks. Your folder should now be shared on your network, ready for you to access from your Linux PC. How do I share files between Linux computers? In Gnome, by going to Places and then Network you will automatically see all the Windows networks. # mount.cifs //MyMuse/SharedDocs /mnt/cifs -o username=putorius,password=notarealpass,domain=PUTORIUS # cd /mnt/cifs/ # ls -lrt total 284 -rwxr-xr-x. After running that command, we are now able to see the contents of the Windows share and add data to it. You can close the window and move on to the next step. Contents. Affiliate Disclosure: Make Tech Easier may earn commission on products purchased through our links, which supports the work we do for our readers. You can run the following command to mount the shared folder to a local path: Note that you’d want to use your own details in the command. The umount command will fail to detach the share when it is in use. By submitting your email, you agree to the Terms of Use and Privacy Policy. We’ll never share your email address or spam you. There are two parts to this guide. How-To Geek is where you turn when you want experts to explain technology. That’s all. This article will show you how to map shares across both operating systems for seamless file sharing. Right-click the folder you want to share over the network, and then click “Properties.” On the “Sharing” tab of the properties window, click the “Advanced Sharing” button. The safest way to mount Windows-shared folders on Linux is to use the CIFS-utils package and mount the folder using the Linux terminal. Your shared folder should now be accessible from a Windows PC. In case you need help understanding the mount command, here’s a breakdown: Creating a share on Linux and then accessing it from Windows is actually a bit easier than the other way around. You can run the following command to mount the shared folder to a local path: mount –t cifs –o username=geek,password=thepass //geekmini/root /media/Video Note that you’d want to use your own details in the command. Right-click somewhere on your Desktop and select New > Shortcut. 24. How do you get Windows and Linux to talk to each other? Before you do anything, you need to ensure that Windows has been correctly set up to allow for networking file sharing. The safest way to mount Windows-shared folders on Linux is to use the CIFS-utils package and mount the folder using the Linux terminal. sudo mkdir /media/Video. To detach a mounted Windows share, use the umount command followed by either the directory where it has been mounted or remote share: If the CIFS mount has an entry in the fstab file, remove it. Note: This article is part of our archive and is likely out of date. You’ll notice that you can successfully see a list of shares on the remote computer. For Ubuntu and Debian-based distributions, type: Once installed, you can then mount your Windows share folder from the Linux terminal. This is where Linux will mirror the contents of your shared folder. At the terminal, use the following command: After Samba installs, configure a username and password that will be used to access the share: Note: In this example, we are using ‘geek’ since we already have a Linux user with that name, but you can choose any name you’d like. Yeah! In this case, I want to access that shared folder from /media/Video, so I’ll first need to create the folder. 2. For this we can use the smbclient command like so: In this example, geekmini is the servername and geek is the username. You’ll be prompted for the password. Join 350,000 subscribers and get a daily digest of news, geek trivia, and our feature articles. The easiest way to do this is to right-click the network icon in your system tray and choose “Open Network and Sharing Center.”, In the Network and Sharing Center window, click on “Change advanced sharing settings.”. Access a Windows shared folder from Linux, using Nautilus. Click the radio buttons next to both options to make sure this is the case. When the share is manually mounted with the mount command, it does not persist after a reboot. Getting started. Join 350,000 subscribers and get a daily digest of news, geek trivia, and our feature articles.