Udevadm info -a -n /dev/sdX
Jump to navigation
Jump to search
udevadm info -a -n /dev/sdd Udevadm info starts with the device specified by the devpath and then walks up the chain of parent devices. It prints for every device found, all possible attributes in the udev rules key format. A rule to match, can be composed by the attributes of the device and the attributes from one single parent device. looking at device '/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0/host4/target4:0:0/4:0:0:0/block/sdd': KERNEL=="sdd" SUBSYSTEM=="block" DRIVER=="" ATTR{ro}=="0" ATTR{events_poll_msecs}=="-1" ATTR{hidden}=="0" ATTR{range}=="16" ATTR{events_async}=="" ATTR{inflight}==" 0 0" ATTR{capability}=="50" ATTR{ext_range}=="256" ATTR{stat}==" 220 0 16832 1735 1 0 8 0 0 252 1596 0 0 0 0" ATTR{discard_alignment}=="0" ATTR{removable}=="0" ATTR{alignment_offset}=="0" ATTR{size}=="19532873728" ATTR{events}=="" looking at parent device '/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0/host4/target4:0:0/4:0:0:0': KERNELS=="4:0:0:0" SUBSYSTEMS=="scsi" DRIVERS=="sd" ATTRS{iodone_cnt}=="0x14b" ATTRS{evt_inquiry_change_reported}=="0" ATTRS{evt_media_change}=="0" ATTRS{queue_type}=="none" ATTRS{inquiry}=="" ATTRS{evt_mode_parameter_change_reported}=="0" ATTRS{scsi_level}=="7" ATTRS{blacklist}=="FORCELUN" ATTRS{rev}=="4009" ATTRS{evt_capacity_change_reported}=="0" ATTRS{evt_lun_change_reported}=="0" ATTRS{model}=="My Book 25EE " ATTRS{vendor}=="WD " ATTRS{iocounterbits}=="32" ATTRS{iorequest_cnt}=="0x14b" ATTRS{queue_depth}=="1" ATTRS{max_sectors}=="2048" ATTRS{eh_timeout}=="10" ATTRS{timeout}=="30" ATTRS{type}=="0" ATTRS{device_blocked}=="0" ATTRS{device_busy}=="0" ATTRS{state}=="running" ATTRS{ioerr_cnt}=="0x3c" ATTRS{evt_soft_threshold_reached}=="0" ATTRS{dh_state}=="detached" looking at parent device '/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0/host4/target4:0:0': KERNELS=="target4:0:0" SUBSYSTEMS=="scsi" DRIVERS=="" looking at parent device '/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0/host4': KERNELS=="host4" SUBSYSTEMS=="scsi" DRIVERS=="" looking at parent device '/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0': KERNELS=="3-2:1.0" SUBSYSTEMS=="usb" DRIVERS=="usb-storage" ATTRS{bInterfaceNumber}=="00" ATTRS{supports_autosuspend}=="1" ATTRS{bInterfaceClass}=="08" ATTRS{bNumEndpoints}=="02" ATTRS{bAlternateSetting}==" 0" ATTRS{bInterfaceSubClass}=="06" ATTRS{authorized}=="1" ATTRS{bInterfaceProtocol}=="50" looking at parent device '/devices/pci0000:00/0000:00:14.0/usb3/3-2': KERNELS=="3-2" SUBSYSTEMS=="usb" DRIVERS=="usb" ATTRS{maxchild}=="0" ATTRS{removable}=="removable" ATTRS{bDeviceProtocol}=="00" ATTRS{configuration}=="" ATTRS{rx_lanes}=="1" ATTRS{tx_lanes}=="1" ATTRS{bNumInterfaces}==" 1" ATTRS{serial}=="344447544D4E355A" ATTRS{busnum}=="3" ATTRS{bDeviceSubClass}=="00" ATTRS{bcdDevice}=="4009" ATTRS{idProduct}=="25ee" ATTRS{avoid_reset_quirk}=="0" ATTRS{ltm_capable}=="no" ATTRS{version}==" 3.10" ATTRS{bNumConfigurations}=="1" ATTRS{bConfigurationValue}=="1" ATTRS{devpath}=="2" ATTRS{idVendor}=="1058" ATTRS{speed}=="5000" ATTRS{product}=="My Book 25EE" ATTRS{bMaxPacketSize0}=="9" ATTRS{bmAttributes}=="c0" ATTRS{authorized}=="1" ATTRS{bMaxPower}=="8mA" ATTRS{urbnum}=="1283" ATTRS{quirks}=="0x0" ATTRS{manufacturer}=="Western Digital" ATTRS{devnum}=="4" ATTRS{bDeviceClass}=="00" looking at parent device '/devices/pci0000:00/0000:00:14.0/usb3': KERNELS=="usb3" SUBSYSTEMS=="usb" DRIVERS=="usb" ATTRS{quirks}=="0x0" ATTRS{bMaxPacketSize0}=="9" ATTRS{devnum}=="1" ATTRS{configuration}=="" ATTRS{bDeviceClass}=="09" ATTRS{ltm_capable}=="yes" ATTRS{idProduct}=="0003" ATTRS{urbnum}=="119" ATTRS{version}==" 3.00" ATTRS{bmAttributes}=="e0" ATTRS{bDeviceSubClass}=="00" ATTRS{speed}=="5000" ATTRS{avoid_reset_quirk}=="0" ATTRS{busnum}=="3" ATTRS{authorized_default}=="1" ATTRS{idVendor}=="1d6b" ATTRS{authorized}=="1" ATTRS{removable}=="unknown" ATTRS{bNumInterfaces}==" 1" ATTRS{bMaxPower}=="0mA" ATTRS{bConfigurationValue}=="1" ATTRS{product}=="xHCI Host Controller" ATTRS{serial}=="0000:00:14.0" ATTRS{devpath}=="0" ATTRS{bDeviceProtocol}=="03" ATTRS{interface_authorized_default}=="1" ATTRS{bNumConfigurations}=="1" ATTRS{bcdDevice}=="0504" ATTRS{rx_lanes}=="1" ATTRS{maxchild}=="10" ATTRS{manufacturer}=="Linux 5.4.0-42-generic xhci-hcd" ATTRS{tx_lanes}=="1" looking at parent device '/devices/pci0000:00/0000:00:14.0': KERNELS=="0000:00:14.0" SUBSYSTEMS=="pci" DRIVERS=="xhci_hcd" ATTRS{vendor}=="0x8086" ATTRS{subsystem_device}=="0x00eb" ATTRS{device}=="0xa1af" ATTRS{subsystem_vendor}=="0x1590" ATTRS{class}=="0x0c0330" ATTRS{irq}=="42" ATTRS{numa_node}=="0" ATTRS{local_cpus}=="000f,ff000fff" ATTRS{driver_override}=="(null)" ATTRS{ari_enabled}=="0" ATTRS{local_cpulist}=="0-11,24-35" ATTRS{dbc}=="disabled" ATTRS{d3cold_allowed}=="1" ATTRS{consistent_dma_mask_bits}=="64" ATTRS{dma_mask_bits}=="64" ATTRS{enable}=="1" ATTRS{broken_parity_status}=="0" ATTRS{msi_bus}=="1" ATTRS{revision}=="0x09" looking at parent device '/devices/pci0000:00': KERNELS=="pci0000:00" SUBSYSTEMS=="" DRIVERS==""
See also[edit]
- udev,
/dev/, udevadm
,udevadm info
Advertising: