Contents
Access a Windows shared folder from Linux, using the command line. You can also access your Windows share from the Linux command line using the smbclient program. If you use the yum package manager, which is the default on Linux systems, such as CentOS, you can use the sudo yum install samba-client command.
How mount Windows network drive in Linux?
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. This allows Linux machines to access SMB file shares used by Windows PCs. Once installed, you can then mount your Windows share folder from the Linux terminal.
How do I mount a network drive in Unix?
Map a Network Drive on Linux
- Open a terminal and type: sudo apt-get install smbfs.
- Open a terminal and type: sudo yum install cifs-utils.
- Issue the command sudo chmod u+s /sbin/mount.cifs /sbin/umount.cifs.
- You can map a network drive to Storage01 using the mount.cifs utility.
Where do I Mount Windows share on Linux?
On Linux and UNIX operating systems, a Windows share can be mounted on a particular mount point in the local directory tree using the cifs option of the mount command.. The Common Internet File System (CIFS) is a network file-sharing protocol.
Many of us are familiar with the traditional way to access Windows network shares on a Linux desktop via KDE’s “smb://” URL handler. However you may not know that there is an alternative, more efficient and more flexible solution for doing this.
To mount the Windows shared folder type “ sudo mount.cifs //Technig-Win10/SharedFiles /home/ulx/Desktop/WinFiles/ -o user=Win10 ” command. If you need help to understand the mount command, just check the below commands descriptions. sudo mount.cifs: This is just the mount command, set to mount a CIFS (SMB) share.
How can I mount a Windows network path?
This extremely simple command, will mount a windows network path to any path on the local filesystem. Note that this must be done with root privileges. Above, “slickbox” is the host, “/users” is the share that we wish to access, and “/mnt” is the desired mount point on the local filesystem.