SFTP Mount Point

1,165 views
Skip to first unread message

Greg

unread,
Apr 21, 2017, 12:44:22 PM4/21/17
to chromium-hterm
Mounting is a feature I just discovered and find super useful on a Chromebook/box. However, I can't seem to figure out how to mount from any other remote filesystem point other than /home/user which it seems to default to. Is there a hidden option for me to specify my preferred mount point somewhere?

Mike Frysinger

unread,
Apr 21, 2017, 1:26:05 PM4/21/17
to Greg, chromium-hterm
currently there is no way to configure this.  we launched with it this way as it was much simpler, and we figured we'd just see if anyone noticed ;).

it uses the sftp protocol which defines the relative working directory as the user's home.  all paths it gets from the Files app are relative, hence things are implicitly relative to user's home.

you can workaround it locally by doing a bind mount (assuming you have root access).
$ cd ~
$ mkdir foo
$ sudo mount --bind / foo
now the foo/ directory has a view of the / filesystem.

at any rate i've moved your request to https://crbug.com/714185
-mike

On Fri, Apr 21, 2017 at 12:44 PM, Greg <tri...@gmail.com> wrote:
Mounting is a feature I just discovered and find super useful on a Chromebook/box. However, I can't seem to figure out how to mount from any other remote filesystem point other than /home/user which it seems to default to. Is there a hidden option for me to specify my preferred mount point somewhere?

--
You received this message because you are subscribed to the Google Groups "chromium-hterm" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-hterm/82306122-aec9-472d-b4a2-d6c539333ede%40chromium.org.

Greg

unread,
Apr 21, 2017, 2:37:08 PM4/21/17
to Mike Frysinger, chromium-hterm

Tried soft links right before I saw your reply, didn't work. So, I guess it's mount bind for now. But, I'll follow the crbug for later.

Thanks for the help. 😃

Mike Frysinger

unread,
Apr 21, 2017, 2:43:33 PM4/21/17
to Greg, chromium-hterm
yeah, we also filter out symlinks currently because that can get messy, and it requires more effort :).  we also erred on the side of more people probably don't deal with symlinks in the first place.

moved the symlink idea to https://crbug.com/714212
-mike

Mitchell McDermott

unread,
Apr 24, 2017, 12:43:58 AM4/24/17
to chromium-hterm, tri...@gmail.com
ChromeOS actually doesn't support symlinks at all-- that's the simple reason why they were omitted :)

Having a different mount location option /shouldn't/ be that much work to implement, I opted to just have it default to home directory for simplicity sake and thought that it should cover the majority of people's use cases. Could any solutions here be of any use regarding changing the sftp mount point?

Mike Frysinger

unread,
Apr 24, 2017, 1:00:40 AM4/24/17
to Mitchell McDermott, chromium-hterm, Greg
the SFTP client could hide the symlinks from the Files app -- it would canonicalize every link and figure out whether they're files or dirs, and report them like that
-mike

b...@wesort.co.uk

unread,
May 10, 2017, 4:46:40 AM5/10/17
to chromium-hterm, tri...@gmail.com
I too am massively pleased to see an SFTP mount arrive more natively. I've been using SFTP app - https://chrome.google.com/webstore/detail/sftp-file-system/gbheifiifcfekkamhepkeogobihicgmn?hl=en - for a few years now and at times it's been buggy. Especially when transferring large files or large quantities of files. 

+1 for setting a default mount point. I only want to set the default point at one directory deep so I'm not sure if the bind mount workaround has any benefit for me?? I've never heard of bind mounts before so maybe I'm misunderstanding. My aim is to not see all the other files & directories at root.

I tried adding cd webapps/ to SSH Arguments but that returned "Connection refused"
NB: webapps is the directory I'd like mounted in the Files App.

Thanks,
.ben.

Greg

unread,
May 10, 2017, 11:06:40 AM5/10/17
to b...@wesort.co.uk, chromium-hterm
FWIW, the solution of creating a folder in your home dir and mount binding root to this folder is actually a bad idea. I tried this, and for some reason after a week Ubuntu somehow saw my root partition run out of drive space although it actually had around 80 gigs free (128gig SSD). Rebooting and not mount binding and all the free space returned. I think this might have something to do with having a circular root directory tree structure that Ubuntu doesn't like.

Mike Frysinger

unread,
May 10, 2017, 12:37:03 PM5/10/17
to Ben Edmonds, chromium-hterm, Greg
we've updated Secure Shell to ignore ssh command line specifically because it'll never work :)
-mike

Paul Reiber

unread,
May 10, 2017, 6:15:35 PM5/10/17
to Mike Frysinger, Ben Edmonds, chromium-hterm, Greg
 for some reason after a week Ubuntu somehow saw my root partition run out of drive space although it actually had around 80 gigs free (128gig SSD)
Did you check for inode exhaustion?  If not, next time check:  df -ih right after you check df -h
-PBR

Kind regards,


To unsubscribe from this group and stop receiving emails from it, send an email to chromium-hterm+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-hterm/CAAbOSckKEh-11JJ9mKWCipYMZm_3K6Jg9GCUvGbMJ-4rb8ReDg%40mail.gmail.com.

Greg

unread,
May 11, 2017, 12:28:39 PM5/11/17
to rei...@gmail.com, Mike Frysinger, Ben Edmonds, chromium-hterm
Paul,
I didn't think to check this at the time, but will remember it next time I run out of drive space. Any thoughts on whether the root mount bind could have caused this?

To unsubscribe from this group and stop receiving emails from it, send an email to chromium-hter...@chromium.org.

Paul Reiber

unread,
May 11, 2017, 2:58:11 PM5/11/17
to Greg, Mike Frysinger, Ben Edmonds, chromium-hterm
Resource exhaustion occurs from something recurring.  Mounting's not recurring, is it? i.e. is it repeatedly remounting the mount point?

There shouldn't be a problem w/ "circular" since it's really not... but, hey, if you do a "find / -print" and it doesn't eventually exit of its own accord, that's a problem.

Open file descriptors are another thing that can get exhausted.

Hope something in the above is of use to you!

Kind regards,
-PBR

Kind regards,


To unsubscribe from this group and stop receiving emails from it, send an email to chromium-hterm+unsubscribe@chromium.org.

Mike Frysinger

unread,
May 18, 2017, 6:07:59 PM5/18/17
to Greg, chromium-hterm, Mitchell McDermott, Ben Edmonds
the dev version now supports changing the base mount point, so you could change it to / if you wanted.  it can only be set when making the initial connection though ... there's no UI for changing it on the fly (plus, i'm pretty sure Files app would get confused).

look for "mount path" in the connection manager now.
-mike

Greg

unread,
May 21, 2017, 9:10:49 PM5/21/17
to Mike Frysinger, chromium-hterm, Mitchell McDermott, Ben Edmonds
Awesome, thanks! Works like a charm! Also, much better than mount bind over time, in my case! 😆

ufa....@gmail.com

unread,
Jun 15, 2017, 10:52:48 AM6/15/17
to chromium-hterm, tri...@gmail.com, mitch...@gmail.com, b...@wesort.co.uk
Hi,
When can we expect this feature to arrive stable? Or does it have an option to enable it? 

Greg

unread,
Jun 15, 2017, 11:05:05 AM6/15/17
to ufa....@gmail.com, chromium-hterm, mitch...@gmail.com, b...@wesort.co.uk
Just use Dev channel, I've been using it daily for weeks and it has never crashed, not even once! 😃



You received this message because you are subscribed to a topic in the Google Groups "chromium-hterm" group.
To unsubscribe from this topic, visit https://groups.google.com/a/chromium.org/d/topic/chromium-hterm/JKZaJT3Dskg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to chromium-hter...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-hterm/5c5958ba-a760-4152-869f-fc41b9ad8873%40chromium.org.

Mike Frysinger

unread,
Jun 15, 2017, 1:28:02 PM6/15/17
to ufa....@gmail.com, chromium-hterm, Greg, Mitchell McDermott, Ben Edmonds
On Thu, Jun 15, 2017 at 7:52 AM, <ufa....@gmail.com> wrote:
Em quinta-feira, 18 de maio de 2017 19:07:59 UTC-3, Mike Frysinger escreveu:
the dev version now supports changing the base mount point, so you could change it to / if you wanted.  it can only be set when making the initial connection though ... there's no UI for changing it on the fly (plus, i'm pretty sure Files app would get confused).

look for "mount path" in the connection manager now.

When can we expect this feature to arrive stable? Or does it have an option to enable it? 

prob not for another few weeks.  i've got another dev release to make, and i'd like to triage the DECCKM report a little bit more.
-mike

Ufa

unread,
Jun 15, 2017, 6:53:37 PM6/15/17
to Mike Frysinger, chromium-hterm, Greg, Mitchell McDermott, Ben Edmonds
Thank you, I think I will wait it to arrive at stable. 
Best regards

ufa
 
Reply all
Reply to author
Forward
0 new messages