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
smbfs
package is installed. If it’s not installed, you can install it using thepkgadd
command:
This command will download and install the OpenCSW package manager, which you can then use to install the
smbfs
package:/opt/csw/bin/pkgutil -i smbfs
- Mount the shared folder using the
mount
command. ReplaceSERVER
with the name or IP address of the Windows server,SHARENAME
with the name of the shared folder, andUSERNAME
andPASSWORD
with your Windows username and password:
- Verify that the shared folder is mounted by running the
df
command:df -h /mnt/winshare
This command should show you the disk space usage for the shared folder.
- To unmount the shared folder, use the
umount
command:umount /mnt/winshare