[SOLVED] How to change the mounting point of samba shares?

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

[SOLVED] How to change the mounting point of samba shares?

Postby sfolter on Wed Apr 24, 2013 6:25 pm

I have two samba shares on the network, which I mounted through the mount function in Nemo. Currently the mount point for the first share is here: /run/user/sfolter/gvfs/smb-share:server=dd-wrt,share=h/
How to mount this share to a different folder? For example /media/h/
Thank you for your help. :)
Last edited by sfolter on Thu Apr 25, 2013 5:57 am, edited 2 times in total.
sfolter
Level 1
Level 1
 
Posts: 3
Joined: Wed Apr 10, 2013 7:28 pm

Linux Mint is funded by ads and donations.
 

Re: How to change the mounting point of samba shares?

Postby altair4 on Wed Apr 24, 2013 7:12 pm

You can't - at least not using Nemo, Connect to Server, or Gigolo because they all use gvfs and that's where the developers wanted it to mount. You can create a symlink to /media so that it ends up as /media/gvfs/smb-share:server=dd-wrt,share=h/ but that's not saving you much.

The only way to specify something like /media/h is to do it manually, something like this:

Code: Select all
sudo mount -t cifs -o username=user-name,password=secret,dir_mode=0777,file_mode=0666,nounix //dd-wrt/h /media/h


And in fstab it would look like this:
Code: Select all
//dd-wrt/h /media/h cifs username=user-name,password=secret,dir_mode=0777,file_mode=0666,nounix 0 0


Make sure the mount point exists:
Code: Select all
sudo mkdir /media/h

And make sure cifs is installed:
Code: Select all
sudo apt-get install cifs-utils
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 16
Level 16
 
Posts: 6054
Joined: Tue Feb 03, 2009 10:27 am

Re: How to change the mounting point of samba shares?

Postby sfolter on Thu Apr 25, 2013 5:55 am

I was trying to execute this command earlier, but guess what - I haven't installed cifs-utils :lol:
Also when I add just dd-wrt, it can't resolve the name so I put the IP address. Maybe to make this work I have to put the IP and name in /etc/hosts
But anyway, now everything is working as I wanted. Thank you for your fast response and help. :)
sfolter
Level 1
Level 1
 
Posts: 3
Joined: Wed Apr 10, 2013 7:28 pm


Return to Newbie Questions

Who is online

Users browsing this forum: expat_tony and 33 guests