Tuesday, March 18, 2008

Mounting Windows Shares In Ubuntu

I have been looking for a permanent solution to annoying ways to mount a Windows share on my Ubuntu box and this reference comes handy:

Reference: http://note2.industriousone.com/mounting-windows-shares-ubuntu

More specifically the steps are:

1. create a mount in your /mnt folder

$ sudo mkdir /mnt/mount_point

2. create the following entry in your /etc/fstab file

//windows_share/specific_folder /mnt/mount_point cifs exec,credentials=/etc/cifspw 0 0

3. Create a password file /etc/cifspw with the login credentials for your Windows account.

username=MyUser
password=MyPassword

4. Secure the password file
$ sudo chmod 600 /etc/cifspw

5. Run this command to get the mount

$ sudo mount -a

Be a happy child.

No comments: