Tutorial How to mount network share in ubuntu - Techist - Tech Forum

Go Back   Techist - Tech Forum > Techist Forum Information > Projects and Tutorials
Closed Thread
Thread Tools Display Modes
Old 06-06-2011, 06:16 PM   #1 (permalink)
Super Techie
MyGodAL3X's Avatar
Join Date: May 2011
Location: Ottawa, ON, Canada
Posts: 460
Default How to mount network share in ubuntu

Hey all,

I had trouble finding a how to that covered this and worked properly for me, you should note that this is for a share that is made on a Linux system, not a windows share.
So here is what worked for me.
In this how to, whatever I right in caps is information that you can change to suit your particular preferences or the name of your share/server.

So you will need to do everything from the terminal.

So you will need to install the smbfs, which is a bunch of internet files system package, you do so by typing:

sudo apt-get install smbfs

And then putting in your admin's password.

After that you will want to create a mount point for the drive, I suggest doing it in /media, that way it will appear on your desktop, just like when you put in a CD/DVD. So type:

sudo mkdir /media/SHARE

Next, you will want to create a file that contains the username and the password of the user that has access to the share. You can save it where you want, as long as you do not move it, since you will need its path later. In this example I created a directory and a file within my home directory. So type:

sudo gedit /home/YOURUSERNAME/.credentials/SHARE_CREDS

Inside this file you will want to put your info in this format:


Then you will want to edit the fstab, which is the file that will mount your shares on every boot.

sudo gedit /etc/fstab

Inside fstab you will want to put this line and save afterwards, making sure everything is properly typed and points to the right thing, for YOUSERVER I recommend using your server's IP address, it makes it easier:

//YOURSERVER/YOURSHARE /media/SHARE cifs credentials=/home/YOURUSERNAME/.credentials/SHARE_CREDS 0 0

Save fstab and then run this command in terminal:

sudo mount -a

If any errors popped up, I am sorry leave them in the comments below and I'll try to help.
If everything worked fine, then you are all set. You can do a reboot to make sure it comes back but it will.

Hope this helps.

MyGodAL3X is offline  
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu Share MindoverMaster Linux and Open Source 15 10-25-2010 07:27 AM
Easily share files on LAN with fellow Ubuntu users with Giver Osiris Linux Tips and Tricks 0 09-15-2010 09:32 AM
Share Ubuntu folders with NFS Osiris Linux Tips and Tricks 0 03-01-2010 10:47 AM
Best firewall to share network fb132 Computer Networking and Internet Hardware 6 02-14-2006 01:15 PM
Can't share files over a network... harrytewkesbury Computer Networking and Internet Hardware 18 10-28-2005 12:40 PM

Our Communities

Our communities encompass many different hobbies and interests, but each one is built on friendly, intelligent membership.

» More about our Communities

Automotive Communities

Our Automotive communities encompass many different makes and models. From U.S. domestics to European Saloons.

» More about our Automotive Communities

Marine Communities

Our Marine websites focus on Cruising and Sailing Vessels, including forums and the largest cruising Wiki project on the web today.

» More about our Marine Communities

Copyright 2002-2015 Social Knowledge, LLC All Rights Reserved.

All times are GMT -5. The time now is 01:17 PM.

Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2016, vBulletin Solutions, Inc.