-
-
Notifications
You must be signed in to change notification settings - Fork 494
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 | Hotplug mount+fstab using udev rules #3339
Comments
@hifitime
This runs the drive detection loop but then prints information about all detected drives only and exits. But the fstab creation/update is done within the loop, AFAIK. |
OK, I get it.. in addition,I added rules to /etc/udev/rules.d/, which also didn't work...It looks like the rules are right.. nano /etc/udev/rules.d/media_by_label_auto_mount
|
@hifitime |
udevadm control --reload-rules or reboot |
@hifitime
Or to actively print to console
Ahh there is even a test command to simulate a certain event and print debug log:
|
@hifitime |
I'm so happy too early... The problem is still there... root@DietPi:~# udevadm test -a add /dev/sda1 Load module index |
@hifitime
|
@hifitime
For reference: https://dietpi.com/phpbb/viewtopic.php?t=5106 Would be also interesting how other hotplug mount implementations handle this. Actually "hotplug" is the better wording here to not mix up with regular "automount" on boot, like mixed up in above linked forum thread. |
echo 'ACTION=="add", KERNEL=="sd[a-z]", RUN+="/DietPi/dietpi/dietpi-drive_manager 3"' > /etc/udev/rules.d/99-dietpi-auto_mount.rules
udevadm control --reload-rules or reboot
The text was updated successfully, but these errors were encountered: