Winfo cifs how to#
This guide shows you how to mount a Windows shared using the mount command with the cifs option. The post Windows (CIFS) fileshares using GlusterFS and CTDB for Highly available data appeared.
We now have a resilient, highly available CIFS file server. Additionally, when I was running Solaris 10u9 (just before upgrading to Sol11), I was able to access the shares via Nautilus as well. If either storage server becomes unavailable the share will still exist. Im also able to access the WIndows PC CIFS shares from an Arch Linux based setup (running GNOME 3.2 w/ Nautilus 3.2), so I doubt its the Windows side of things causing the problems. Use the fuser command to find out which processes are accessing the windows share: fuser -m MOUNT_POINTĪfter finding the processes, you can stop those using the kill command and umount the share.Įven if the umount failed, you can use the -l ( -lazy) option to umount busy file system: sudo umount -l MOUNT_POINT Conclusion # The share will now be accessible from a Windows PC (or anything that can access SMB/CIFS) using 192.168.1.17share. Make sure the umount command will failed to detach when the share is in use. You can detaches the mounted file system from the directory tree using the umount command: sudo umount /mnt/WIN_SHAREĬheck the fstab file that if the CIFS mount has an entry and remove it. Now once you reboot the system, the Windows share will be mounted automatically. The mount command, will read the content of the /etc/fstab and mount the share. Run the following command to mount the share: sudo mount /mnt/WIN_SHARE WIN_SHARE_IP/SHARE_NAME /mnt/WIN_SHARE cifs credentials=/etc/win-credentials,file_mode=0755,dir_mode=0755 0 0 The line must include the hostname or the IP address of the Windows PC, the share name, and the mount point on the local machineĮdit the /etc/fstab file with your text editor : sudo nano /etc/fstab You should define the mount in the /etc/fstab file to mount a Windows share automatically on your Linux system start up.