Adding entries to fstab results in emergency mode
0
votes
1
answer
678
views
This is my local system configuration.
NAME="elementary OS"
VERSION="5.0 Juno"
I am mounting my remote server's file system on a subdirectory by this command, which is working fine.
sudo sshfs -o allow_other della@108.49.38.08: /mnt/Production_server
The terminal prompts for the local's sudo password first, then the remote's password. (Even though I have already copied the local's ed25519 public key into the remote's
~/.ssh/authorized_keys
, somehow that does not work. I would like to make it work, but that is more like a side question.)
Some tutorials led me to believe that I do not have to issue the above command every-time and the remote can be mounted automatically at each boot up. Following that, I entered the following line at the end of my /etc/fstab
file.
sshfs#della@108.49.38.08: /mnt/Production_server
After I poweroff, the laptop simply refuses to boot and throws a message saying *You are in emergency mode.* Lucky that it allows me into a very basic login shell where I can edit the /etc/fstab
using nano. Only after I eliminate the last line it boots up properly.
So basically
1. Is it possible to automatically mount the remote at each reboot? How will the authentication take place?
2. If possible, am I editing the file system table incorrectly? What should the last line look like? Or is the method entirely different?
Asked by Della
(131 rep)
May 21, 2019, 01:06 PM
Last activity: May 28, 2019, 03:51 AM
Last activity: May 28, 2019, 03:51 AM