As a preliminary matter,
smbclient -U user -L //ip_address prompts me for my password and properly gives me a proper list of share names, as expected.
However, when using the following
fstab entry, it fails to mount the drive and drops me into emergency mode on boot. (If I had not half mangled my Pi six different times already trying to learn things, this would be much more frightening.)
//$IP/$DIR /home/$USER/.mountPoints/$path_to_mount_point cifs rw,nofail,username=$remoteUser,password=$pass,uid=1000 0 0
Should I be creating my mounts in
/mnt/? If so, what command do I do that with?
sudo mkdir, or do I need to set special permission?
What do I need to modify in the fstab to make this work? The goal is to either have mounted or make mountable a target directory for backups from the Pi to the NAS.
Is the UID the UID of my user on the Raspberry Pi, or the remote $USER?
I would suggest to start investigating systemd and mount trough such units
Example mount units for systemd
The examples here are a supplement to the guide on systemd mount units
[root tip] Use systemd to mount ANY device
Unit file names
Mount units must be named the mount point with the extension of .mount so if you use a mountpoint named /data/backup the unit file must be named data-backup.mount
Automount units use the name of the mount unit with an extension of .automount so the automount unit for the example dat…
Disk device recognition
Manjaro uses udev (see
Arch Wiki) to load devices at boot time. The loading of devices is arbitrary and therefore you cannot predict which device will be available at a given path.
But static device names do exist and you can assign specific locations to your device and thus ensure e.g. scripts will work as expected.
What to learn
Overview of system mount units
Structure and Content of a mount unit
Mount at boot (immediate mount)
Mount at demand (mou…
This was exactly what I needed! Thanks!
February 1, 2021, 12:37am
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.