Jump to content

  •  

Photo

How to add mapped drives to Ubuntu Desktop (CIFS)


  • Please log in to reply
No replies to this topic

#1 brent

brent

    Administrator

  • Administrators
  • 11 posts

Posted 16 February 2013 - 06:23 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

For this tutorial I will be using nano.

You need to navigate to /etc

 

cd /etc

 

Then you need to modify a file called fstab

 

sudo nano fstab

 

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

 

//192.168.2.105/Movies /media/movies cifs auto,iocharset=utf8,credentials=/etc/samba/cred-file,uid=brent 0 0

//192.168.2.105/Music /media/music cifs auto,iocharset=utf8,credentials=/etc/samba/cred-file,uid=brent 0 0

//192.168.2.105/Brent /media/brent cifs auto,iocharset=utf8,credentials=/etc/samba/cred-file,uid=brent 0 0

//192.168.2.105/WWW /media/www cifs auto,iocharset=utf8,credentials=/etc/samba/cred-file,uid=brent 0 0

 

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.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users