Solaris / OpenSolaris Mount Windows Shared (CIFS)
To mount a Windows shared folder (CIFS) on a Solaris or OpenSolaris system, you can use the mount command. Here are the steps to follow:
- Create a mount point for the shared folder. For example, let's create a directory named
/mnt/winshare:# mkdir /mnt/winshare - Make sure the
smbfspackage is installed. If it's not installed, you can install it using thepkgaddcommand:# pkgadd -d http://get.opencsw.org/nowThis command will download and install the OpenCSW package manager, which you can then use to install the
smbfspackage:# /opt/csw/bin/pkgutil -i smbfs - Mount the shared folder using the
mountcommand. ReplaceSERVERwith the name or IP address of the Windows server,SHARENAMEwith the name of the shared folder, andUSERNAMEandPASSWORDwith your Windows username and password:# mount -F smbfs -o rw,username=USERNAME,password=PASSWORD //SERVER/SHARENAME /mnt/winshare - Verify that the shared folder is mounted by running the
dfcommand:# df -h /mnt/winshareThis command should show you the disk space usage for the shared folder.
- To unmount the shared folder, use the
umountcommand:# umount /mnt/winshare
