November 24, 20241 yr I would like to see a simalr folder location to add and load udev rule in unraid. Similar to the implementation of the modprobe so we can have udev rules load at boot.
November 25, 20241 yr Solution @bmartino1 I think that the following PR should solve your request: https://github.com/unraid/webgui/pull/1930
November 25, 20241 yr Author Thank you. this will be perfect for a upcoming project and test. Form network adapters to vm disk by id passthrough to other fun with udev. Mainly as a few network things with constant changing network interface name changes and a udev rule to prevent it.
October 29, 2025Oct 29 I'm having the same problem with the udev rules but I'm not as versed in Linux as you guys. What do I do? Do I just copy the rc.udev file from the github link mentioned above to etc/rc.d/rc.udev and overwrite the file already there?
October 29, 2025Oct 29 Author 6 hours ago, BreakfastPurrito said:I'm having the same problem with the udev rules but I'm not as versed in Linux as you guys. What do I do? Do I just copy the rc.udev file from the github link mentioned above to etc/rc.d/rc.udev and overwrite the file already there?Close... the rc script for udev is the unraid "sytemd like serve daemon that runs the udev rules... you need to make a folder and add your rule to the flash drive. Unraid mounts /boot as the flash drive...So, we make a folder on teh flash drive.Unraid checks if a udev rulle file is there copies it into t/etc ram and runs the udev rule at boot processes.so mkdir /boot/config/udevand paste your udev rules in here. then reboot unraid to apply the udev rule...https://www.reactivated.net/writing_udev_rules.html make a ##-name.rule text file.so touch 99-example.ruleThen add your udev rule edits etc..at boot teh fille will be copied intoroot@BMM-Tower:/etc/udev/rules.d# ls70-persistent-net.rules 99_persistent_unassigned.rules@root@BMM-Tower:/etc/udev/rules.d# and should be applied...Thats it. I don't have any good udev stuff atm. At one time I was playing aorund with addign a usb drive / wd passport and once plugied in udev would see the device and run a batch script.this batch script would then start a rsync backup copy to the usb disk...Another test was with mac address and setting altnames for some control ... then theres some disk by id controls...example in my proxmox guid to Virtualize unraid:Create a Udev Rulesudo nano /etc/udev/rules.d/99-ignore-vm-disks.rules # Ignore disk /dev/sdd KERNEL=="sd*", ENV{ID_SERIAL}=="WD_easystore_240GB_#########", ENV{UDISKS_IGNORE}="1", ENV{UDISKS_PRESENTATION_HIDE}="1" ^add your disks...but we can't put udev rule in ram and reboot to apply thus the folder made on the flash drive and why /boot/config/udev to place your custom udev rule.
October 30, 2025Oct 30 Thanks for the explanation. I'm trying to get the udev rules for my OpenRGB container working.I just installed 7.2.0 that got released yesterday, which is able to handle custom udev rules.I followed the instructions and made the folder /boot/config/udev/ and put 60-openrgb.rules in it.I find that it indeed does put the 60-openrgb.rules file in /etc/udev/rules.d/, but for some reason the OpenRGB container still complains that there are no udev rules?
October 30, 2025Oct 30 Author this may indicate that the udev rule you made didn't load or loaded to earlier in the boot process.Regardless, the udev rule was correctly applied and excuted per UNraid and how to implement udev.you may need to use user script plugin to load OPENRGP at first array start ... as that is a docker adn teh array is not on yet for udev to apply and use..you should be able to use diagnostic and view the system log and see where and when udev script failed depedning on how you wrote teh udev rulll...as you used a continer and the docker system wasn't online...I would advise you to make a general support post:https://forums.unraid.net/forum/55-general-support/ as this would require more back and forth and this is a dead solved post going over how to use the udev falsh drive... ( I was looking for this to add the usb paths and other as there is very litte data and knowldge on how to use Udev let alonge implemnt it on slackware/unraid.udev at boot > things like known mac address udev rule to define to a interface name..udev at boot > things like ignore disk at /dev/sd for unasigned etc...go file is before the array starts (before the web ui or after the web ui to launch some bat code (no data, nor array no mount fuse sytem yet)user script plugin > frist array start > runs when data is availbae on teh array once started...@BreakfastPurrito Please make a general post to contune how to load your OpenRGB
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.