Advertisement
Schicko

sudo udevadm -d info -a -p $(udevadm info -q path -n /dev/s

Jan 13th, 2018
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.38 KB | None | 0 0
  1. # sudo udevadm -d info -a -p $(udevadm info -q path -n /dev/sda) > /data/tmp/tmp2.txt
  2.  
  3. Udevadm info starts with the device specified by the devpath and then
  4. walks up the chain of parent devices. It prints for every device
  5. found, all possible attributes in the udev rules key format.
  6. A rule to match, can be composed by the attributes of the device
  7. and the attributes from one single parent device.
  8.  
  9. looking at device '/devices/pci0000:00/0000:00:11.0/ata1/host0/target0:0:0/0:0:0:0/block/sda':
  10. KERNEL=="sda"
  11. SUBSYSTEM=="block"
  12. DRIVER==""
  13. ATTR{range}=="16"
  14. ATTR{capability}=="50"
  15. ATTR{inflight}==" 0 0"
  16. ATTR{ext_range}=="256"
  17. ATTR{ro}=="0"
  18. ATTR{stat}==" 4350 1510 892847 79213 2649 941 354833 140358 0 59716 219581"
  19. ATTR{events_poll_msecs}=="-1"
  20. ATTR{events_async}==""
  21. ATTR{removable}=="0"
  22. ATTR{size}=="1953525168"
  23. ATTR{events}==""
  24. ATTR{alignment_offset}=="0"
  25. ATTR{discard_alignment}=="0"
  26.  
  27. looking at parent device '/devices/pci0000:00/0000:00:11.0/ata1/host0/target0:0:0/0:0:0:0':
  28. KERNELS=="0:0:0:0"
  29. SUBSYSTEMS=="scsi"
  30. DRIVERS=="sd"
  31. ATTRS{evt_soft_threshold_reached}=="0"
  32. ATTRS{evt_mode_parameter_change_reported}=="0"
  33. ATTRS{inquiry}==""
  34. ATTRS{evt_capacity_change_reported}=="0"
  35. ATTRS{vendor}=="ATA "
  36. ATTRS{timeout}=="30"
  37. ATTRS{evt_lun_change_reported}=="0"
  38. ATTRS{evt_media_change}=="0"
  39. ATTRS{queue_type}=="simple"
  40. ATTRS{queue_ramp_up_period}=="120000"
  41. ATTRS{device_busy}=="0"
  42. ATTRS{eh_timeout}=="10"
  43. ATTRS{wwid}=="t10.ATA HGST HTS541010A9E680 JD1000CHKMEHLL"
  44. ATTRS{dh_state}=="detached"
  45. ATTRS{model}=="HGST HTS541010A9"
  46. ATTRS{iocounterbits}=="32"
  47. ATTRS{vpd_pg80}==""
  48. ATTRS{ncq_prio_enable}=="0"
  49. ATTRS{queue_depth}=="31"
  50. ATTRS{type}=="0"
  51. ATTRS{evt_inquiry_change_reported}=="0"
  52. ATTRS{iodone_cnt}=="0x1cb5"
  53. ATTRS{state}=="running"
  54. ATTRS{vpd_pg83}==""
  55. ATTRS{iorequest_cnt}=="0x1cff"
  56. ATTRS{rev}=="A710"
  57. ATTRS{ioerr_cnt}=="0x3"
  58. ATTRS{scsi_level}=="6"
  59. ATTRS{unload_heads}=="0"
  60. ATTRS{device_blocked}=="0"
  61.  
  62. looking at parent device '/devices/pci0000:00/0000:00:11.0/ata1/host0/target0:0:0':
  63. KERNELS=="target0:0:0"
  64. SUBSYSTEMS=="scsi"
  65. DRIVERS==""
  66.  
  67. looking at parent device '/devices/pci0000:00/0000:00:11.0/ata1/host0':
  68. KERNELS=="host0"
  69. SUBSYSTEMS=="scsi"
  70. DRIVERS==""
  71.  
  72. looking at parent device '/devices/pci0000:00/0000:00:11.0/ata1':
  73. KERNELS=="ata1"
  74. SUBSYSTEMS==""
  75. DRIVERS==""
  76.  
  77. looking at parent device '/devices/pci0000:00/0000:00:11.0':
  78. KERNELS=="0000:00:11.0"
  79. SUBSYSTEMS=="pci"
  80. DRIVERS=="ahci"
  81. ATTRS{subsystem_device}=="0x2268"
  82. ATTRS{vendor}=="0x1022"
  83. ATTRS{d3cold_allowed}=="1"
  84. ATTRS{msi_bus}=="1"
  85. ATTRS{device}=="0x7804"
  86. ATTRS{local_cpulist}=="0-3"
  87. ATTRS{numa_node}=="-1"
  88. ATTRS{class}=="0x010601"
  89. ATTRS{driver_override}=="(null)"
  90. ATTRS{local_cpus}=="f"
  91. ATTRS{enable}=="1"
  92. ATTRS{irq}=="30"
  93. ATTRS{revision}=="0x40"
  94. ATTRS{broken_parity_status}=="0"
  95. ATTRS{dma_mask_bits}=="64"
  96. ATTRS{consistent_dma_mask_bits}=="64"
  97. ATTRS{subsystem_vendor}=="0x103c"
  98.  
  99. looking at parent device '/devices/pci0000:00':
  100. KERNELS=="pci0000:00"
  101. SUBSYSTEMS==""
  102. DRIVERS==""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement