-
-
Notifications
You must be signed in to change notification settings - Fork 501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DietPi-Drive_manager config doesn't include x-systemd.automount for mount on reboot #3208
Comments
@EdEstes On Stretch this is not an issue:
Both mounts are started after On Buster:
Looks fine as well. However what is a bid of a risky thing, that leads to some other issues as well and can be seen from both logs, is that the "allow-hotpolug" interfaces, as we define them in If you find time, could you remove However And really, automounts are indeed mounted immediately when you access the mount point, even network mounts. Its as if they were mounted already (subjective feeling). The consequence is then to add "noauto" and "nofail" as well, and do the same for all external drives btw. (as long as not root or boot file system on it). Currently noauto is missing there, although I thing |
+ DietPi-Drive_Manager | Do not mount network drives automatically on boot, instead use x-systemd.automount to mount on first access. This solves an issue where mount on boot can fail, if network has not yet fully initialised. Due to [email protected] being Type=simple, network-online.target can be reached and default route established, before the interface has fully been configured (state UP): #3208 + DietPi-Drive_Manager | For fsck flag, always check root mount first, boot mount afterwards + DietPi-Drive_Manager | Minor failsafe value estimation and method consistency
Done: bdddd83 |
+ DietPi-Boot | Remove obsolete "mount -a". All external and network mounts now have "noauto" + "x-systemd.automount" to mount ondemand (immediately on mountpoint access). Network drives are delayed until "network-online.target" reached anyway, by systemd and fstab entry (failsafe), which only fails in rare situations: #3208 + DietPi-Boot | Estimate default gateway via default route explicitly + DietPi-Boot | Be more verbose on subsripts and failsafe on settings estimation + minor coding
I manually added noauto, x-systemd.automount to each fstab share, but it still not function as expected. For example Drive Manager and Backup not responding when launched, MPD not playing after reboot. |
What you mean by this? Which device, RPi as well? Note that in some cases
With Logs can be also check via:
|
Thanks! I'm using rpi 4, services were just hanging when launched , noe all works fine, but before that I removed nofail and changed smb to 2.1 |
Greetings.
Just installed DietPi 6.26 on a Raspberry Pi 4 (buster) and ran into an issue.
I used DietPi-Drive_manager to configure my network drives and everything was configured correctly in the fstab file. The problem is the drives do not automatically mount at startup. I am able to type:
sudo mount -a
to get the network drives to mount. After doing some research, I found this thread that identified the problem/solution:
https://dietpi.com/phpbb/viewtopic.php?f=9&t=6190
By manually adding "x-systemd.automount" to each share in the fstab configuration, the drives would mount at boot time.
Shouldn't this be included when using the preferred "DietPi-Drive_manager" configuration tool?
Thanks!
The text was updated successfully, but these errors were encountered: