2015-12-08, 06:57
(2015-12-08, 06:46)Leopold Wrote:(2015-12-08, 03:16)username145 Wrote:Have you tried just putting them in /etc/fstab instead of manually creating the systemd mount files?(2015-12-06, 01:20)Milhouse Wrote: No sorry, you seem to be the only person (so far) with this issue. I can't remember, but did you try rebooting a "clean" system? Do you have any other systemd services running on your system (mounts etc.)?
For what it's worth, I've never been able to reboot properly after setting up my mounts (going back to Feb when I first got my Pi 2). I get a black screen and have to pull the power cable each time, I just didn't mention it because I don't have to do it all that often.
My mounts look like this:
Code:[Unit]
Description=test nfs mount script
Requires=network-online.service
After=network-online.service
Before=kodi.service
[Mount]
What=192.168.1.66:/mnt/sdb2/PVR
Where=/storage/pvr
Options=
Type=nfs
[Install]
WantedBy=multi-user.target
Code:[Unit]
Description=test cifs mount script
Requires=network-online.service
After=network-online.service
Before=kodi.service
[Mount]
What=//192.168.1.66/Video
Where=/storage/maindrive
Options=username=thing,password=stuff
Type=cifs
[Install]
WantedBy=multi-user.target
I think I tried, but ran into other problems. Maybe it would try to mount before the network was ready, or I was not too familiar with linux and wasn't able to get it working.