Jump to content


Photo

How to add mapped drives to Ubuntu Desktop (SMBFS)

sambasamba shares mapping windows share

  • Please log in to reply
No replies to this topic

#1 brent

brent

    Administrator

  • Administrators
  • 65 posts

Posted 17 February 2013 - 05:58 PM

Here is how to have mounted network drives appear even after you reboot your system. I am currently running Ubuntu 12.04 

What is needed:
Samba and smbfs

sudo apt-get install samba smbfs
 

 


We need to modify a file called fstab located /etc

sudo nano /etc/fstab
 

 

 

At the Bottom you will want to add some new Entrys. Here are some examples:

//192.168.2.105/Movies /media/Movies smbfs credentials=/etc/samba/cred-file,uid=brent,gid=users 0 0

//192.168.2.105/Music /media/Music smbfs credentials=/etc/samba/cred-file,uid=brent,gid=users 0 0

//192.168.2.105/Brent /media/Brent smbfs credentials=/etc/samba/cred-file,uid=brent,gid=users 0 0

//192.168.2.105/WWW /media/WWW smbfs credentials=/etc/samba/cred-file,uid=brent,gid=users 0 0
 

save and close

 

Now that we have that set we need to create a credentials file. So lets make it inside the samba folder

cd /etc/samba

Now to create the file called cred-file

sudo nano cred-file
 

 

In this file you will want to put your credentials. 


Here is an example:

username=brent
password=password
 

save and close.


 

 

Now to mount the drives

mount -a
 

 

That is it you should now see your network drives.







Also tagged with one or more of these keywords: sambasamba shares, mapping, windows share

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users