Page 1 of 4 123 ... LastLast
Results 1 to 10 of 38

Thread: How to access dolphin network mount through console?

  1. #1

    Question How to access dolphin network mount through console?

    In dolphin I can access e.g. smb://<some_IP_address> but I can't find a mount point for it.

    Is it possible to access this path from console?

  2. #2
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    16,432
    Blog Entries
    1

    Default Re: How to access dolphin network mount through console?

    Quote Originally Posted by heyjoe View Post
    In dolphin I can access e.g. smb://<some_IP_address> but I can't find a mount point for it.

    Is it possible to access this path from console?
    IIRC, when you access a samba share using the smb:// KIO slave the share is not mounted as such, you're just browsing the share using the samba protocol.

    It is possible to mount a samba share with the gvfs-mount utility like this though...
    Code:
    gvfs-mount smb://192.168.1.2/path/to/share
    enter the requested credentials, then the mount can be found under /run/user/1000/gvfs/ eg /run/user/1000/gvfs/smb-share:server=192.168.1.2,share=users/

    and the mount command will show something like...
    Code:
    gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=7)
    Last edited by deano_ferrari; 04-Jul-2017 at 03:22.

  3. #3

    Default Re: How to access dolphin network mount through console?

    Thanks. I followed these instructions, entered credentials too but /run/user/1000/gvfs is empty and the mount doesn't show anything about gvfs.

    Any idea why?

  4. #4

    Default Re: How to access dolphin network mount through console?

    OTOH it doesn't allow me to do it again:

    Code:
    gvfs-mount smb://192.168.....
    Error mounting location: Location is already mounted
    so where is it mounted?

  5. #5
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    16,432
    Blog Entries
    1

    Default Re: How to access dolphin network mount through console?

    Quote Originally Posted by heyjoe View Post
    OTOH it doesn't allow me to do it again:

    Code:
    gvfs-mount smb://192.168.....
    Error mounting location: Location is already mounted
    so where is it mounted?
    Did you do this as a regular user? Use the 'mount' command to check.

  6. #6

    Default Re: How to access dolphin network mount through console?

    Quote Originally Posted by heyjoe View Post
    so where is it mounted?
    Run "mount" to find out.

    Maybe you ran gvfs-mount as root? Then it would mount the share accessible for root only, in /run/user/0/gvfs/.
    In other words: to mount something for your user, you need to run gvfs-mount as that user.

    You can also use mount directly for mounting network shares. Something like:
    Code:
    sudo mount //HOST/SHARE mountpoint -o username=xxx,password=yyy

  7. #7

    Default Re: How to access dolphin network mount through console?

    Quote Originally Posted by deano_ferrari View Post
    Did you do this as a regular user? Use the 'mount' command to check.
    Yes, I did it as regular user.

    Quote Originally Posted by wolfi323 View Post
    Run "mount" to find out.

    Maybe you ran gvfs-mount as root? Then it would mount the share accessible for root only, in /run/user/0/gvfs/.
    In other words: to mount something for your user, you need to run gvfs-mount as that user.
    I wouldn't like to do it as root anyway. It would contradict the very idea of easiness I am looking for. I am just trying to access from console (from a script actually) a network location which is temporarily available (it is a shared smb folder on a VM guest running Windows).

    You can also use mount directly for mounting network shares. Something like:
    Code:
    sudo mount //HOST/SHARE mountpoint -o username=xxx,password=yyy
    Yes, that would be the "conventional" way. But I am rather looking to access something which is already mounted in dolphin, i.e. as user. Is that possible?

  8. #8

    Default Re: How to access dolphin network mount through console?

    Quote Originally Posted by heyjoe View Post
    But I am rather looking to access something which is already mounted in dolphin, i.e. as user. Is that possible?
    No, as dolphin doesn't "mount" shares at all.

    You could use smb4k to browse and mount them.
    Or gvfs-mount.
    Code:
    wolfi@amiga:~> gvfs-mount smb://localhost/Texte
     Für den Speicherort texte auf localhost wird ein Passwort benötigt
    User [wolfi]: 
    Domain [HOME]: 
    Password: 
    wolfi@amiga:~> ls /run/user/$UID/gvfs/
    smb-share:server=localhost,share=texte
    wolfi@amiga:~>
    But yes, the share itself doesn't show up in the output of "mount". It's /run/user/500/gvfs/ itself that's mounted, gvfs-mount apparently just creates subdirectories there if you use it to "mount" something.

    Alternatively, use KDE/KIO's shell commands to access the share like dolphin would.
    E.g. there's kdecp5, kdemv5, or the general kioclient5:
    Code:
    wolfi@amiga:~> kioclient5 ls smb://localhost/Texte
    ...
    See "kioclient5 --command" for a list of available commands.
    Last edited by wolfi323; 04-Jul-2017 at 08:28.

  9. #9

    Default Re: How to access dolphin network mount through console?

    Quote Originally Posted by wolfi323 View Post
    You could use smb4k to browse and mount them.
    I should note though that you need version 2.0.1 from the KDE:Extra repo.

    The standard package in Tumbleweed has the mount functionality removed because the security team doesn't like it...

  10. #10

    Default Re: How to access dolphin network mount through console?

    Quote Originally Posted by wolfi323 View Post
    No, as dolphin doesn't "mount" shares at all.

    You could use smb4k to browse and mount them.
    Or gvfs-mount.
    Code:
    wolfi@amiga:~> gvfs-mount smb://localhost/Texte
     Für den Speicherort texte auf localhost wird ein Passwort benötigt
    User [wolfi]: 
    Domain [HOME]: 
    Password: 
    wolfi@amiga:~> ls /run/user/$UID/gvfs/
    smb-share:server=localhost,share=texte
    wolfi@amiga:~>
    But yes, the share itself doesn't show up in the output of "mount". It's /run/user/500/gvfs/ itself that's mounted, gvfs-mount apparently just creates subdirectories there if you use it to "mount" something.
    That's weird. When I do the same, ls shows nothing, empty dir. Any idea why?

    Alternatively, use KDE/KIO's shell commands to access the share like dolphin would.
    E.g. there's kdecp5, kdemv5, or the general kioclient5:
    Code:
    wolfi@amiga:~> kioclient5 ls smb://localhost/Texte
    ...
    See "kioclient5 --command" for a list of available commands.
    That one seems to work! Thanks.

    Quote Originally Posted by wolfi323 View Post
    I should note though that you need version 2.0.1 from the KDE:Extra repo.

    The standard package in Tumbleweed has the mount functionality removed because the security team doesn't like it...
    I will check that one too. Thank you.

    ETA: I am using lightdm with Plasma in case that matters...

Page 1 of 4 123 ... LastLast

Tags for this Thread

Posting Permissions

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