Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I need to disable all USB storage devices except a software Protection Dongle. How do I do it? I tried black listing the USB storage device, but that seems to block ALL usb devices including the dongle. Can udev be used for this? If yes, I can't figure out the command, I tried using a grep to determine disk size and then block all disks having size above 2MB. But in that case, how do I make it apply for USB storage devices in specific.

share|improve this question

1 Answer 1

Ran across it yesterday: right up your alley.. nifty-udev-examples

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.