• Главная
  • Заказать Услуги
  • Статьи
  • Контакты
  • Рубрики
    • Asterisk (2)
    • bash (6)
    • cmd (1)
    • Linux (121)
    • Mikrotik (27)
    • TheDude (1)
    • WordPress (3)
    • Видео (6)
    • Заказать Услуги (2)
    • Статьи (51)
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

  • Быстрый доступ в сетевые подключения 23/05/2022
  • ssl sert check 28/04/2022
  • Quagga bgp sessions мониторим в zabbix 21/04/2022
Пишите нам
Яндекс.Метрика
Powered by Warp Theme Framework