Quantcast
Channel: Active questions tagged mount+fstab - Ask Ubuntu
Viewing all articles
Browse latest Browse all 699

Sharing (sshfs) a folder with another Linux machine on the same home network via fstab? UBUNTU 20.04

$
0
0

First and foremost let me thank zx81roadkill for his excellent description of how to share a folder with another Linux machine on the same home network using sshfs. Everything has worked great for me except the last step "10. Enable reconnect after reboot" which involves modifying the fstab file.

While I can mount (and un-mount) the remote folder manually,

sudo sshfs vanmetter@192.168.2.4:/home/vanmetter /mnt/HP-2014-home -o allow_other,default_permissions -o identityfile=/home/vanmetter/.ssh/id_rsa

Mounting via the fstab file results in an error when I try to open the remote folder on my local machine.

vanmetter@192.168.2.4:/home/vanmetter/ /mnt/HP-2014-home fuse.sshfs default_permissions,user,delay_connect,reconnect,ServerAliveInterval=15,ServerAliveCountmax=3,allow_other,identityfile=/home/vanmetter/.ssh/id_rsa,idmap=user,uid=1000,gid=1000 0 0

I have even retyped the entire line to insure no 'special' characters were accidentally copied.

Clicking on the mount point for the remote folder results in a reproducible error as followings:

in Nautilus:

**Oops! Something went wrong.**Unhandled error message: Error when getting information for file "mnt/HP-2014-home": Input/Output error

in Nemo:

Could not display "/mnt/HP-2014-home".

Error: Error when getting information for file "/mnt/HP-2014-home": Input/Output errorPlease select another viewer and try again.

Finally, if the folder is un-mounted, then mounted manually as shown above, everything is working fine (i.e. remote folder opens and all content are accessible).

Any help would be greatly appreciated as I now have a 99% solution to my connectivity needs.

Thanks,

Richard


Viewing all articles
Browse latest Browse all 699

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>