Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Where is the mount point for smb shares?

  1. #1
    Join Date
    Jun 2008
    Beans
    9

    [Solved]Where is the mount point for smb shares?

    Hello,

    sorry if this question has already been answered but i was not able to find it neither in ubuntuforums.org nor via google:

    Where are the mount points for smb shares connected via

    "Places -> Connect to Server"?

    I assumed them in one of the usual places like

    /mnt
    or
    /media

    but these folders are both empty.

    There are a couple of applications which are not capable of accessing my shares because i can't navigate to the right location...

    Many thanks for your time!
    Martin
    Last edited by HamburgerTS; May 11th, 2010 at 01:37 PM. Reason: Mark as "Solved"

  2. #2
    Join Date
    Aug 2005
    Location
    .nl
    Beans
    Hidden!
    Distro
    Xubuntu 15.10 Wily Werewolf

    Re: Where is the mount point for smb shares?

    Where are the mount points for smb shares connected via

    "Places -> Connect to Server"?
    Those locations aren't "mounted" as you would expect. They are accessed as virtual file systems in Nautilus. If you want them mounted you must install the package smbfs and mount them manually, or edit your /etc/fstab.

  3. #3
    Join Date
    Dec 2009
    Beans
    5,698

    Re: Where is the mount point for smb shares?

    /home/your_user_name/.gvfs

    As you can see, it's in a hidden directory so you need to enable Nautilus to see the hidden folder. Why is it in a hidden directory? I personally think it was a practical joke by the developers.

    EDIT: If your applications can't get to the hidden directory you'll need to create a symbolic link to a "real" directory.

  4. #4
    Join Date
    Aug 2005
    Location
    .nl
    Beans
    Hidden!
    Distro
    Xubuntu 15.10 Wily Werewolf

    Re: Where is the mount point for smb shares?

    Quote Originally Posted by Morbius1 View Post
    /home/your_user_name/.gvfs

    As you can see, it's in a hidden directory so you need to enable Nautilus to see the hidden folder. Why is it in a hidden directory? I personally think it was a practical joke by the developers.
    That's why I like to do this manually, keeping control over where things are mounted.

  5. #5
    Join Date
    Dec 2009
    Beans
    5,698

    Re: Where is the mount point for smb shares?

    Quote Originally Posted by Olav View Post
    That's why I like to do this manually, keeping control over where things are mounted.
    I personally don't have a religious affiliation with either method. gvfs-mount ( mounting through Nautilus ) is sorta - kinda the client side equivalent of nautilus-share. You can create a share by defining it in smb.conf ( Classic-share ) or you can right click a folder and say "share this thing" ( Nautilus-share ). Each method has it's place.

  6. #6
    Join Date
    Jun 2008
    Beans
    9

    Re: Where is the mount point for smb shares?

    Quote Originally Posted by Morbius1 View Post
    /home/your_user_name/.gvfs
    Thank you very much! This was exactly the information i needed...

    Quote Originally Posted by Morbius1 View Post
    Why is it in a hidden directory? I personally think it was a practical joke by the developers.
    In my opinion its a serious usability bug (in the application i use). Shares mounted by "Connect to server" should be accessible the same way "normal" folders are. OpenOffice for example has no problems to show these folders...

    I have the (by far not professional) impression that the application ("unison" in this case but the "MySQL Query Browser" has the same issue) uses a outdated (at least older version) of the "File select" dialog...

    EDIT: If your applications can't get to the hidden directory you'll need to create a symbolic link to a "real" directory.
    Good idea. Works perfect.

    Thank you all for your response.

    Have a nice day
    Martin

  7. #7
    Join Date
    Dec 2009
    Beans
    4

    Re: Where is the mount point for smb shares?

    Quote:
    EDIT: If your applications can't get to the hidden directory you'll need to create a symbolic link to a "real" directory.
    Good idea. Works perfect.
    How does one go about making the symbolic link? When I choose "make link" from right clicking on my shared folder, I get "Target does not support symbolic links".

    By the way, mounting shared folders to a hidden location is a major usability bug as many programs can't locate the shared folder.

  8. #8
    Join Date
    May 2008
    Location
    SoCal
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Where is the mount point for smb shares?

    Quote Originally Posted by larsonj View Post
    How does one go about making the symbolic link? When I choose "make link" from right clicking on my shared folder, I get "Target does not support symbolic links".
    You can create the symlink link from the terminal
    Code:
    ln -s
    See here.

    Symlinks are no longer allowed by default with Samba shares. You would have to edit the /etc/samba/smb.conf file. See here .


    By the way, mounting shared folders to a hidden location is a major usability bug as many programs can't locate the shared folder.
    There are valid reasons for using a hidden mount point (location) for GUI created shares. I think you will find many apps don't work with SMB shares even if you do know where the shares are. Not all developers follow the same methods.
    -BAB1

  9. #9
    Join Date
    Dec 2009
    Beans
    5,698

    Re: Where is the mount point for smb shares?

    To create a symbolic link I use the Terminal:

    Let's say I want to create a link from the gvfs mountpoint of a share named "music" on a server named "bob" to say /home/morbius/Music:

    Code:
    ln -s /home/morbius/.gvfs/"music on bob" /home/morbius/Music
    Quote Originally Posted by bab1 View Post
    Symlinks are no longer allowed by default with Samba shares. You would have to edit the /etc/samba/smb.conf file.
    That's only true if the share you're trying to access has a symbolic link embedded in it's directory on the server. It is not applicable in this case as this user is trying to create a symbolic link from the mounted share to another location on the same client machine.

  10. #10
    Join Date
    Dec 2009
    Beans
    4

    Re: Where is the mount point for smb shares?

    Thanks. Creating a symbolic link from the terminal works fine, and as mentioned by Morbius1, editing the config file was unnecessary.

    Quote Originally Posted by bab1 View Post

    There are valid reasons for using a hidden mount point (location) for GUI created shares. I think you will find many apps don't work with SMB shares even if you do know where the shares are. Not all developers follow the same methods.
    Even if using the hidden mount point is for a valid reason, GUI created shares do not show up in any program that I can find except open office. Even programs that are loaded with Ubuntu by default such as FSpot photo manager, Mozilla, etc, do not work. Since creating a link via the GUI also disabled forcing the user to go to the terminal, I consider the GUI broken.

    Addtion:
    Apparently, this was noted as an issue in 2005 http://ubuntuforums.org/showthread.php?t=289918
    Last edited by larsonj; July 30th, 2010 at 08:05 PM. Reason: added link to relevant post

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •