[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Persistent sshfs mount from inside a Buster virtual machine?



I guess I can't make this work as a user.  Here is the status:

$ systemctl --user status home-nate-share.mount 
● home-nate-share.mount - Mount vbox-shr with sshfs
   Loaded: loaded (/home/nate/.config/systemd/user/home-nate-share.mount; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Thu 2020-04-23 19:44:41 CDT; 3min 54s ago
    Where: /home/nate/share
     What: nate@10.0.2.2:/home/nate/vbox-shr

Apr 23 19:44:41 buster systemd[414]: Mounting Mount vbox-shr with sshfs...
Apr 23 19:44:41 buster mount[1456]: mount: only root can use "--options" option
Apr 23 19:44:41 buster systemd[414]: home-nate-share.mount: Mount process exited, code=exited, status=1/FAILURE
Apr 23 19:44:41 buster systemd[414]: home-nate-share.mount: Failed with result 'exit-code'.
Apr 23 19:44:41 buster systemd[414]: Failed to mount Mount vbox-shr with sshfs.

and my unit file that is in  ~/.config/systemd/user/home-nate-share.mount

[Unit]
Description=Mount vbox-shr with sshfs

[Install]
WantedBy=default.target

[Mount]
What=nate@10.0.2.2:%h/vbox-shr
Where=%h/share
Type=fuse.sshfs
Options=IdentityFile=%h/.ssh/id_merlin,reconnect,ServerAliveInterval=30,ServerAliveCountMax=5,x-systemd.automount,allow_other,follow_symlinks,_netdev

So I tried the next set of commands:

$ sudo systemctl start home-nate-share.mount 
[sudo] password for nate: 
Failed to start home-nate-share.mount: Unit home-nate-share.mount not found.

and:

$ sudo systemctl --user start home-nate-share.mount 
Failed to connect to bus: No such file or directory

I suppose the next step is to give up on running this mount as a user
command and instead install it as a system-wide unit.  Then I wonder if
the uid and gid will be set properly for user read/write.  Sigh.

- Nate

-- 

"The optimist proclaims that we live in the best of all
possible worlds.  The pessimist fears this is true."

Web: https://www.n0nb.us
Projects: https://github.com/N0NB
GPG fingerprint: 82D6 4F6B 0E67 CD41 F689 BBA6 FB2C 5130 D55A 8819

Attachment: signature.asc
Description: PGP signature


Reply to: