I can detect and mount my USB drive on my Debian VM machine. And the first post here - explained below - works on my Ubuntu machine. Should not it work on Debian too? It doesn't of course. Why is that?Concretely, create a rule in /etc/udev/rules.d:SUBSYSTEMS==usb, KERNEL==sd??, ACTION==add, RUN+=/usr/local/bin/USB %kNow against this rule, a helloworld script runs located in /usr/local/bin/USB. The script itself:#!/bin/bashecho 'Hello World!' >>/home/<username>/Desktop/udev.outexitThis works perfectly well when I plug in my USB drive into my host Ubuntu machine. But when I do the same in my Debian machine, it doesn't respond. No udev.out is created on Desktop. I can detect my USB drive in the guest Debian machine running inside Virtual Box. Why is that?
Udev rule not working on Debian
debian;ubuntu;usb;virtual machine;udev