LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

UDEV Rules

Posted 03-27-2009 at 08: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 5138 Comments 0 farslayer is offline

  



All times are GMT -5. The time now is 06:32 AM.

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