Results 1 to 9 of 9

Thread: How do I do mount a remote FTP drive manually?

  1. #1
    Join Date
    Apr 2009
    Beans
    242
    Distro
    Xubuntu 18.04 Bionic Beaver

    How do I do mount a remote FTP drive manually?

    I'm on Xubuntu 18.04.2 LTS. In Thunar I can put a remote FTP drive into the location selector like so:

    Code:
    ftp://12.34.56.789
    I'm prompted for my credentials and then I'm ready to go.
    I found I can right click for a context menu that gives me the "open terminal here" option.
    When I do that I have all my terminal commands which I can unleash on the remote files which is awesome, since FTP alone is limited.
    My prompt looks like so:

    Code:
    user@machine:/run/user/1000/gvfs/ftp:host=12.34.56.789$
    which tells me the drive is somehow mounted on my file system. I would like to be able to do that manually, from a terminal, without havinng to go through Thunar.
    I researched a little and found references to curlftpfs and sshfs, but since they're not installed on my machine, I'd rather use native commands.

  2. #2
    Join Date
    Jun 2018
    Beans
    49

    Re: How do I do mount a remote FTP drive manually?

    Code:
    $apt-get install curlftpfs
    $mkdir /mnt/ftp.local
    $curlftpfs user:pass@ftp.remote.site /mnt/ftp.local
    Last edited by yapidumoac; March 11th, 2019 at 10:06 PM. Reason: Added [CODE] tags for clarity

  3. #3
    Join Date
    Mar 2011
    Location
    19th Hole
    Beans
    Hidden!
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: How do I do mount a remote FTP drive manually?

    @ yapidumoac

    Without code tags, your output gets garbled by the forum parsing routines, so please post your output between [CODE] and [/CODE] tags for clarity. Or highlight the output and use the button in the *Adv Reply* toolbar.

  4. #4
    Join Date
    Apr 2009
    Beans
    242
    Distro
    Xubuntu 18.04 Bionic Beaver

    Re: How do I do mount a remote FTP drive manually?

    Hi @yapidumoac and thanks for your input. I'm aware of that possibility. Wanted to go with something existing rather than installing new software. I'll give it a try if I don't find any other alternative.

  5. #5
    Join Date
    Dec 2014
    Beans
    1,624

    Re: How do I do mount a remote FTP drive manually?

    If you look at the prompt you get in a terminal, you can tell that 'gvfs' (GIO virtual file system) is involved. So you can either use the (old and deprecated, but still available) 'gvfs-mount' or the new 'gio' command. Both should be installed by default on XUbuntu (they are installed on my system and I don't recall installing them or anything that would have pulled them in). Be aware though that gvfs has a well-deserved reputation for being slow and somewhat buggy for big transfers.

    Holger

  6. #6
    Join Date
    Apr 2009
    Beans
    242
    Distro
    Xubuntu 18.04 Bionic Beaver

    Re: How do I do mount a remote FTP drive manually?

    Thanks @Holger_Gehrke, that's what I was looking for!

  7. #7
    Join Date
    Apr 2009
    Beans
    242
    Distro
    Xubuntu 18.04 Bionic Beaver

    Re: How do I do mount a remote FTP drive manually?

    Quote Originally Posted by texpat View Post
    , that's what I was looking for!
    Having said that, I found gio to be quite daunting and the help/man pages beyond my level of expertise. So I tried curlftpfs and found it quite easy, so for now, I'll be going with that.

  8. #8
    Join Date
    Dec 2009
    Beans
    6,449

    Re: How do I do mount a remote FTP drive manually?

    Something like this doesn't work?

    Code:
    gio mount ftp://username@ipaddress

  9. #9
    Join Date
    Apr 2009
    Beans
    242
    Distro
    Xubuntu 18.04 Bionic Beaver

    Re: How do I do mount a remote FTP drive manually?

    Quote Originally Posted by Morbius1 View Post
    Something like this doesn't work?

    Code:
    gio mount ftp://username@ipaddress
    Actually, it does. I somehow got tangled up trying to do gio -mount ...
    Something I notice, however, is it wants to mount at the fixed location /run/user/1000/gvfs/ftp:host=... which is not a problem, just another thing that caught me off guard and had me scratching my head for a while

    So now I have two ways of mounting remote ftp directories! Thanks to all!

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
  •