Writing a UDev rule

Writing a simple UDev rule for identifying a device with a specific name

About UDev:

To check your device connection, run:

Getting the attributes of the connected device:

Writing the udev:

The following folder is reserved for non-system defined or custom udev rules

/etc/udev/rules.d

Create the following file:

Add a similar line as per the set of unique identification attributes like serial no. or kernel no. available from Step-2 above:

restart the system:

Also reboot your system.

Verify:

Check if the rule really worked:

For more info visit:

Last updated

Was this helpful?