Mount Windows share using Ubuntu
I’m not using Ubuntu much, but this works – at least in my company :P
Solution 1: Permently mounted.
1.a/ Create a credential file:
with this contents:
1.b/ Add this line to the bottom of /etc/fstab:
//192.168.5.5/public_share/ /home/fongthai/network_drive smbfs credentials=/home/fongthai/.smbcredentials,uid=1000,gid=1000
192.168.5.5 is server address
/home/fongthai/networkdrive is a mounted location of server share
smbfs is key word for samba share
/home/fongthai/.smbcredentials is a credential file
1000 is userid and group id of account fongthai
Solution 2: One command:
mount -t cifs //192.168.5.5/public_share /home/fongthai/smb_mount/ -o username=fongthai
It will ask for password, don’t need credential file, but you have to mount each time you restart your PC.
Source: a search from a guys next to me – redhunter! thank you for this.