• Главная
  • Заказать Услуги
  • Статьи
  • Контакты
  • Рубрики
    • Asterisk (2)
    • bash (6)
    • cmd (1)
    • Linux (113)
    • Mikrotik (27)
    • TheDude (1)
    • WordPress (3)
    • Видео (6)
    • Заказать Услуги (2)
    • Статьи (49)
13 Июн2016

udev получить информацию об устройстве

13/06/2016. Written by . Posted in Linux, Статьи

udev может отобразить информацию об интересующем нас устройстве

udevadm info -a -n /dev/sdb

Вывод:

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:1f.2/ata3/host3/target3:0:0/3:0:0:0/block/sdb':
    KERNEL=="sdb"
    SUBSYSTEM=="block"
    DRIVER==""
    ATTR{ro}=="0"
    ATTR{size}=="976773168"
    ATTR{stat}=="   16005      349   820011    86887   106481     4203  1470994   923253        0   869772  1010009"
    ATTR{range}=="16"
    ATTR{discard_alignment}=="0"
    ATTR{events}==""
    ATTR{ext_range}=="256"
    ATTR{events_poll_msecs}=="-1"
    ATTR{alignment_offset}=="0"
    ATTR{inflight}=="       0        0"
    ATTR{removable}=="0"
    ATTR{capability}=="50"

 

Теги: info, udev, udevadm

  • error romon agent not found add it to managed list 27/12/2020
  • error on subcontainer ‘ia_addr’ insert (-1) 30/11/2020
  • Cannot adopt OID ошибка snmptt 30/11/2020
Пишите нам
89265504470 89265504470
Яндекс.Метрика
Powered by Warp Theme Framework