jump to navigation

new way to manage your devices on Linux (udev-083+) February 1, 2007

Posted by TSAI HONG-BIN in Linux.
trackback

“Who’s in charge here?” you may ask, when you plug-in a usb flash drive but nothing happened, no module is loaded, no any file system is mounted, no, nothing.

“Who the hell are you?” you may feel really upset when you plug-in a usb flash drive and a portable HDD at the same time but seeing sdb, sdc and have no any of a clue which is what.

In the past, Linux guru will reply to the first question this way, “Go check your /proc/sys/kernel/hotplug, bro., it should be /sbin/hotplug.” As for the second question, it becomes “dude, you can write a script to check, I did it this way .. #@^&” then there comes lines of codes.

All right, too much bullshit. My point is, those whole bunch of workarounds now become history since udev has implemented the hotplug mechanism. So? you will see nothing but an empty string now if you check /pros/sys/kernel/hotplug in fedore core 5 or above. The package “hotplug” has been officially off (for a while … I know).

Here I find some links helpful, if you want to read something from real experts, you should follow the links below. Though, I’ll still explain how I understand about udev… later.

Linux device model: http://www.linux-mag.com/id/2617/
writing udev rules: http://www.reactivated.net/writing_udev_rules.html
mandriva udev technical note: http://qa.mandrivalinux.com/twiki/bin/view/Main/Udev

(to be continue)

Advertisements

Comments»

No comments yet — be the first.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: