Home > IT > Mount Windows share using Ubuntu

Mount Windows share using Ubuntu

July 23, 2008

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:

vi /home/fongthai/.smbcredentials

with this contents:



1.b/ Add this line to the bottom of /etc/fstab:

// /home/fongthai/network_drive smbfs credentials=/home/fongthai/.smbcredentials,uid=1000,gid=1000

Note: 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

source: https://help.ubuntu.com/community/MountWindowsSharesPermanently

Solution 2: One command:

mount -t cifs // /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.

Categories: IT Tags: , , , , , , , ,
  1. August 1, 2008 at 1:26 PM

    nice tips

  1. No trackbacks yet.
Comments are closed.
%d bloggers like this: