Tags

,

Create the Mount Point
sudo mkdir /mnt/ip-shared
Mount a windows shared folder 
mount //server-name/share-name /mnt/ip-shared -o username=shareuser,password=sharepassword,domain=sharedomain
Here, -o is used top specify mount options, in this case, we specify the login credential: username, password, and domain . Its format can be -o username=sharedomain/shareuser,password=sharepassword
Here we don’t use -t to specify vfstype, thus mount will try to guess the desired type. Check the list here at mount Manual

If
Common Mount Options
loop Mounts an image as a loop device.
ro Mounts the file system for reading only.
rw Mounts the file system for both reading and writing.


Unmount it
If we don’t need to access the remote file system, we can use umount to unmount it: Notice, it’s umount, not unmount.
umount /mnt/ip-shared


Resource
Linux Mount Manual
Linux mount CIFS Windows Share

via Blogger