All files in a Linux system are arranged in one big tree file hierarchy at /. It include devices too. We use the mount command attach the file system or devices to the tree. We also able to mount windows share under Linux as follows :
- Make sure you have :
- Windows username and password to access share
- Sharename or IP address
- root access on Linux
- Login to Linux as a root user
- Create mount point:
# mkdir -p /mnt/winshare
- Use the mount command as follows :
# mount -t cifs //ntserver/winshare -o username=admin,password=myAdminPassword /mnt/winshare
while :- -t cifs : File system type to be mount
- //ntserver/winshare : Sharename on windows (change it as yours)
- -o username=admin,password=myAdminPassword : are options passed to mount command. First argument is username (admin) and second argument is password to connect windows share
- /mnt/ntserver : Linux mount point to access Sharefiles
- Access Windows share using command:
# cd /mnt/winshare; ls -l
No comments:
Post a Comment