Linux - How to mount windows share in linux, Share windows on linux machine.
How to mount windows share in linux
Normally we use samba to share the linux machine or linux share to windows. In general the mount command is used to mount the
windows share under linux machine. Use the mount command to mount remote windows partition or windows share under Linux as
follows.
Steps to mount or remount windows share under linux machine.
1) You must have the Windows username and password to access share name or Windows partition
2) Login to Linux as a root user
3) Create the required mount point
# mkdir -p /mnt/winshare
4) Use the mount command as below
# mount -t cifs //winserver/shared-files -o username=Math,password=myPassword /mnt/winshare OR # mount -t smbfs -o username=Math,password=ax1word //winserver/shared-files /mnt/winshareThis command will mount the windows share on linux machine.
5) Access your windows share on linux machine
# cd /mn/winshare # ls -l # cat filename
Where,
-t smbfs : Old File system type to be mount, smbfs is outdated now. Use cifs
-t cifs : File system type to be mount
-o : are options passed to mount command, in this example I had passed two options. First argument is username (Math) and
second argument is password to connect remote windows box
//winserver/shared-files: Windows 2000/NT share name
/mnt/winshare: Linux mount point (to access share after mounting)
The topic on Linux - How to mount windows share in linux is posted by - Math
Hope you have enjoyed, Linux - How to mount windows share in linuxThanks for your time