verseolz.blogg.se

Linux box map shared drive on window
Linux box map shared drive on window









Replace “WINDOWS_MACHINE_IP_ADDRESS”, “SHARE_NAME”, and “/mnt/windows-share” with the appropriate information as before. WINDOWS_MACHINE_IP_ADDRESS/ SHARE_NAME / mnt/ windows- share cifs credentials=/ etc/ cifs- credentials, uid= 1000, gid= 1000 0 0 First, create a credentials file to securely store your Windows login information: sudo nano /etc/cifs-credentialsĪdd the following lines to the file, replacing “YOUR_USERNAME” and “YOUR_PASSWORD” with your actual Windows username and password: If you want the remote Windows share to be mounted automatically at system startup, you need to add an entry to the “/etc/fstab” file. You should see an entry for the remote Windows share in the output, with its mounted location on your Linux system.

linux box map shared drive on window

To verify that the remote Windows share is mounted correctly, use the df command to display information about mounted filesystems: df -h You can access the files and folders in the Windows share by navigating to the mount point directory. `YOUR_PASSWORD`: Your Windows password for accessing the share.Īfter executing the command, the remote Windows share should now be mounted to the specified mount point on your Linux system.`YOUR_USERNAME`: Your Windows username for accessing the share.`SHARE_NAME`: The name of the shared folder on the Windows machine.`WINDOWS_MACHINE_IP_ADDRESS`: The IP address or hostname of the remote Windows machine.Replace the following placeholders with the appropriate information: Use the following command to mount the remote Windows share to the mount point you created in the previous step: sudo mount -t cifs //WINDOWS_MACHINE_IP_ADDRESS/SHARE_NAME /mnt/windows-share -o username=YOUR_USERNAME,password=YOUR_PASSWORD Replace “windows-share” with a name that best describes the shared resource. Create a new directory to serve as the mount point using the following command: sudo mkdir /mnt/windows-share For Fedora: sudo dnf update sudo dnf install cifs-utilsĪ mount point is a directory on your Linux system where the remote Windows share will be mounted.For CentOS/RHEL: sudo yum update sudo yum install cifs-utils.For Debian/Ubuntu: sudo apt update sudo apt install cifs-utils.Use the following commands to install the package on your Linux distribution: To mount a remote Windows share on Linux, you will need to install the CIFS-utils package, which provides tools for mounting and managing CIFS shares. This article will provide a step-by-step guide to mounting remote Windows shares on Linux using the Common Internet File System (CIFS) protocol. Mounting remote Windows shares on Linux allows users to access files and folders on Windows machines from their Linux systems. In today’s interconnected world, the need to access shared resources across different operating systems is essential.











Linux box map shared drive on window