Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Blogs
User Name



udev and network devices

Posted 08-03-2009 at 07:57 AM by stureedy

After all these years, I finally figured out how to configure udev to load my network devices in the correct order.

In the past I compiled my own kernels and could force the card I wanted to be eth0 by compiling it into the kernel, then loading the card I wanted as eth1 as a module. This worked well. Of course, udev provides a "better" way, and now that it's five years old, I finally decided to learn it!

As with most things Linux, it was easy to do, once...
Posted in Uncategorized
Views 2361 Comments 0 stureedy is offline

UDEV Rules

Posted 03-27-2009 at 09:25 AM by farslayer

udev Rules for the Hard drives..

Use udevinfo to get unique attributes about the devices you are going to write a rule for.

udevinfo -a -p /sys/block/sda | grep -i model
Gives the following output: SYSFS{model}="LD 0 RAID1 139G"

udevinfo -a -p /sys/block/sda | grep -i size
Gives the following output: SYSFS{size}="286515200"

udevinfo -a -p /sys/block/sdb | grep -i model
Gives the following...
LQ Guru
Views 3009 Comments 0 farslayer is offline


All times are GMT -5. The time now is 01:24 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration