Thursday, April 28, 2011

Mount a Windows share on Linux with Samba

This article describes how to set up a share from a Linux to a Windows. Samba has to be installed.
 
To test if your Linux machine sees the shares on the Windows : 
smbclient -L <windows-box> -U <username> 
 
Make a directoy for the mountpoint: 
mkdir /mnt/<name-of-mount-point> 
 
Mount the share: 
mount -t smbfs -o username=<username>,password=<password> //<win-box>/<share> /mnt/<name-of-mountpoint> Note: The syntax -username=<username>,password=<password> saves the password. 
  
Create a symbolic link to the mounted drive: ln -s /mnt/<name-of-mount-point> /<path-of-symlink>

No comments:

Post a Comment