I changed the FSTAB file to the followingThen I "refreshed the file with the following"Code:
mount //192.168.1.179/volume1/homes/ /mnt/SynPi/homes cifs defaults,_netdev,uid=1000,credentials=/home/farrissfpi/passwords/credentials.txt,iocharset=utf8,vers=3.0,noperm,nofail,x-systemd.automount 0 0
Then I rebooted, and it went into emergency mode and said the root was locked.Code:
systemctl daemon-reload
It would be. That's an invalid fstab entry.
fstab is not a list of commands, it's a list of definitions. Each line is one definition. It consists of a number of fields separated by whitespace. By putting "mount " at the start of the line you broke that which means all mount options are ignored* including nofail.
The fields are what, where, file system type, mount option, fschk pass, dump pass. Official names are in the fstab documentation.
Thankfully, I was reading the guide you wrote, had made a backup of my fstab file, and could restore and boot back up. I did not use sudo in the code, but I suspect I should not have used "mount" either because it is run on the root when it executes. Of course, I did not think of that until afterward.
Correct. See above.
Could you check if this is the correct line of code and let me know? I see why you said you were going to stop helping people a while back. It has to be frustrating, but this is all brand new to me, and I am learning. I appreciate the assistance and will pay forward when I understand more.Code:
//192.168.1.179/volume1/homes/ /mnt/SynPi/homes cifs defaults,_netdev,uid=1000,credentials=/home/farrissfpi/passwords/credentials.txt,iocharset=utf8,vers=3.0,noperm,nofail,x-systemd.automount 0 0
I can't comment on the first two fields except to say that the format for the first is //server_name_or_IP_ addres/share_name/directory_name where /directory_name can be omitted and that the second is a full path to a directory that must exist.
In terms of mount options, I'd use fewer.
That leads me to suggest this:
Code:
//192.168.1.179/volume1/homes/ /mnt/SynPi/homes cifs defaults,_netdev,uid=1000,gid=1000,credentials=/home/farrissfpi/passwords/credentials.txt,nofail,x-systemd.automount 0 0
Code:
sudo mount //192.168.1.179/volume1/homes/ /mnt/SynPi/homes -t cifs -0 defaults,_netdev,uid=1000,gid=1000,credentials=/home/farrissfpi/passwords/credentials.txt,nofail,x-systemd.automount
*: because the stuff reading it doesn't know how to parse the line anymore.
Statistics: Posted by thagrol — Mon Mar 11, 2024 5:11 pm