Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # sudo udevadm -d info -a -p $(udevadm info -q path -n /dev/sda) > /data/tmp/tmp2.txt
- 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:11.0/ata1/host0/target0:0:0/0:0:0:0/block/sda':
- KERNEL=="sda"
- SUBSYSTEM=="block"
- DRIVER==""
- ATTR{range}=="16"
- ATTR{capability}=="50"
- ATTR{inflight}==" 0 0"
- ATTR{ext_range}=="256"
- ATTR{ro}=="0"
- ATTR{stat}==" 4350 1510 892847 79213 2649 941 354833 140358 0 59716 219581"
- ATTR{events_poll_msecs}=="-1"
- ATTR{events_async}==""
- ATTR{removable}=="0"
- ATTR{size}=="1953525168"
- ATTR{events}==""
- ATTR{alignment_offset}=="0"
- ATTR{discard_alignment}=="0"
- looking at parent device '/devices/pci0000:00/0000:00:11.0/ata1/host0/target0:0:0/0:0:0:0':
- KERNELS=="0:0:0:0"
- SUBSYSTEMS=="scsi"
- DRIVERS=="sd"
- ATTRS{evt_soft_threshold_reached}=="0"
- ATTRS{evt_mode_parameter_change_reported}=="0"
- ATTRS{inquiry}==""
- ATTRS{evt_capacity_change_reported}=="0"
- ATTRS{vendor}=="ATA "
- ATTRS{timeout}=="30"
- ATTRS{evt_lun_change_reported}=="0"
- ATTRS{evt_media_change}=="0"
- ATTRS{queue_type}=="simple"
- ATTRS{queue_ramp_up_period}=="120000"
- ATTRS{device_busy}=="0"
- ATTRS{eh_timeout}=="10"
- ATTRS{wwid}=="t10.ATA HGST HTS541010A9E680 JD1000CHKMEHLL"
- ATTRS{dh_state}=="detached"
- ATTRS{model}=="HGST HTS541010A9"
- ATTRS{iocounterbits}=="32"
- ATTRS{vpd_pg80}==""
- ATTRS{ncq_prio_enable}=="0"
- ATTRS{queue_depth}=="31"
- ATTRS{type}=="0"
- ATTRS{evt_inquiry_change_reported}=="0"
- ATTRS{iodone_cnt}=="0x1cb5"
- ATTRS{state}=="running"
- ATTRS{vpd_pg83}==""
- ATTRS{iorequest_cnt}=="0x1cff"
- ATTRS{rev}=="A710"
- ATTRS{ioerr_cnt}=="0x3"
- ATTRS{scsi_level}=="6"
- ATTRS{unload_heads}=="0"
- ATTRS{device_blocked}=="0"
- looking at parent device '/devices/pci0000:00/0000:00:11.0/ata1/host0/target0:0:0':
- KERNELS=="target0:0:0"
- SUBSYSTEMS=="scsi"
- DRIVERS==""
- looking at parent device '/devices/pci0000:00/0000:00:11.0/ata1/host0':
- KERNELS=="host0"
- SUBSYSTEMS=="scsi"
- DRIVERS==""
- looking at parent device '/devices/pci0000:00/0000:00:11.0/ata1':
- KERNELS=="ata1"
- SUBSYSTEMS==""
- DRIVERS==""
- looking at parent device '/devices/pci0000:00/0000:00:11.0':
- KERNELS=="0000:00:11.0"
- SUBSYSTEMS=="pci"
- DRIVERS=="ahci"
- ATTRS{subsystem_device}=="0x2268"
- ATTRS{vendor}=="0x1022"
- ATTRS{d3cold_allowed}=="1"
- ATTRS{msi_bus}=="1"
- ATTRS{device}=="0x7804"
- ATTRS{local_cpulist}=="0-3"
- ATTRS{numa_node}=="-1"
- ATTRS{class}=="0x010601"
- ATTRS{driver_override}=="(null)"
- ATTRS{local_cpus}=="f"
- ATTRS{enable}=="1"
- ATTRS{irq}=="30"
- ATTRS{revision}=="0x40"
- ATTRS{broken_parity_status}=="0"
- ATTRS{dma_mask_bits}=="64"
- ATTRS{consistent_dma_mask_bits}=="64"
- ATTRS{subsystem_vendor}=="0x103c"
- looking at parent device '/devices/pci0000:00':
- KERNELS=="pci0000:00"
- SUBSYSTEMS==""
- DRIVERS==""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement