NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
vda 253:0 0 26G 0 disk
`-vda1 253:1 0 26G 0 part /
vdb 253:16 0 10G 0 disk
`-vdb1 253:17 0 10G 0 part
# udevadm info -q all -n /dev/vdb
P: /devices/pci0000:00/0000:00:05.0/virtio2/block/vdb
N: vdb
S: disk/by-id/virtio-35a00932-4d0e-4ed0-8
E: DEVLINKS=/dev/disk/by-id/virtio-35a00932-4d0e-4ed0-8
E: DEVNAME=/dev/vdb
E: DEVPATH=/devices/pci0000:00/0000:00:05.0/virtio2/block/vdb
E: DEVTYPE=disk
E: ID_PART_TABLE_TYPE=dos
E: ID_SERIAL=35a00932-4d0e-4ed0-8
E: MAJOR=253
E: MINOR=16
E: SUBSYSTEM=block
E: UDEV_LOG=6
E: UDISKS_PARTITION_TABLE=1
E: UDISKS_PARTITION_TABLE_COUNT=1
E: UDISKS_PARTITION_TABLE_SCHEME=mbr
E: UDISKS_PRESENTATION_NOPOLICY=1
E: USEC_INITIALIZED=6052
# udevadm info -q all -n /dev/vdb1
P: /devices/pci0000:00/0000:00:05.0/virtio2/block/vdb/vdb1
N: vdb1
S: disk/by-id/virtio-35a00932-4d0e-4ed0-8-part1
S: disk/by-uuid/407a6e20-0ca6-48ae-b7c3-64333da6a33a
E: DEVLINKS=/dev/disk/by-id/virtio-35a00932-4d0e-4ed0-8-part1 /dev/disk/by-uuid/407a6e20-0ca6-48ae-b7c3-64333da6a33a
E: DEVNAME=/dev/vdb1
E: DEVPATH=/devices/pci0000:00/0000:00:05.0/virtio2/block/vdb/vdb1
E: DEVTYPE=partition
E: ID_FS_TYPE=ext4
E: ID_FS_USAGE=filesystem
E: ID_FS_UUID=407a6e20-0ca6-48ae-b7c3-64333da6a33a
E: ID_FS_UUID_ENC=407a6e20-0ca6-48ae-b7c3-64333da6a33a
E: ID_FS_VERSION=1.0
E: ID_PART_ENTRY_DISK=253:16
E: ID_PART_ENTRY_NUMBER=1
E: ID_PART_ENTRY_OFFSET=2048
E: ID_PART_ENTRY_SCHEME=dos
E: ID_PART_ENTRY_SIZE=20969472
E: ID_PART_ENTRY_TYPE=0x83
E: ID_PART_TABLE_TYPE=dos
E: ID_SERIAL=35a00932-4d0e-4ed0-8
E: MAJOR=253
E: MINOR=17
E: SUBSYSTEM=block
E: UDEV_LOG=6
E: UDISKS_PARTITION=1
E: UDISKS_PARTITION_ALIGNMENT_OFFSET=0
E: UDISKS_PARTITION_NUMBER=1
E: UDISKS_PARTITION_OFFSET=1048576
E: UDISKS_PARTITION_SCHEME=mbr
E: UDISKS_PARTITION_SIZE=10736369664
E: UDISKS_PARTITION_SLAVE=/sys/devices/pci0000:00/0000:00:05.0/virtio2/block/vdb
E: UDISKS_PARTITION_TYPE=0x83
E: UDISKS_PRESENTATION_NOPOLICY=1
E: USEC_INITIALIZED=6088
# udevadm monitor
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent
KERNEL[2526.478570] add /devices/LNXSYSTM:00/device:00/PNP0A03:00/device:25 (acpi)
KERNEL[2526.478609] add /devices/pci0000:00/0000:00:0a.0 (pci)
KERNEL[2526.523245] add /devices/pci0000:00/0000:00:0a.0/virtio4 (virtio)
KERNEL[2526.523892] add /devices/virtual/bdi/253:48 (bdi)
KERNEL[2526.527204] add /devices/pci0000:00/0000:00:0a.0/virtio4/block/vdd (block)
KERNEL[2526.527227] add /devices/pci0000:00/0000:00:0a.0/virtio4/block/vdd/vdd1 (block)
KERNEL[2529.451573] remove /devices/pci0000:00/0000:00:0a.0/virtio4/block/vdd/vdd1 (block)
KERNEL[2529.451696] remove /devices/virtual/bdi/253:48 (bdi)
KERNEL[2529.451822] remove /devices/pci0000:00/0000:00:0a.0/virtio4/block/vdd (block)
KERNEL[2529.452456] remove /devices/pci0000:00/0000:00:0a.0/virtio4 (virtio)
KERNEL[2529.492733] remove /devices/pci0000:00/0000:00:0a.0 (pci)
KERNEL[2529.492766] remove /devices/LNXSYSTM:00/device:00/PNP0A03:00/device:25 (acpi)
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent
KERNEL[2439.216558] add /devices/LNXSYSTM:00/device:00/PNP0A03:00/device:24 (acpi)
UDEV [2439.216609] add /devices/LNXSYSTM:00/device:00/PNP0A03:00/device:24 (acpi)
KERNEL[2439.216653] add /devices/pci0000:00/0000:00:09.0 (pci)
UDEV [2439.217944] add /devices/pci0000:00/0000:00:09.0 (pci)
KERNEL[2439.260455] add /devices/pci0000:00/0000:00:09.0/virtio4 (virtio)
UDEV [2439.261296] add /devices/pci0000:00/0000:00:09.0/virtio4 (virtio)
KERNEL[2439.261852] add /devices/virtual/bdi/253:48 (bdi)
UDEV [2439.262294] add /devices/virtual/bdi/253:48 (bdi)
KERNEL[2439.266086] add /devices/pci0000:00/0000:00:09.0/virtio4/block/vdd (block)
KERNEL[2439.266450] add /devices/pci0000:00/0000:00:09.0/virtio4/block/vdd/vdd1 (block)
UDEV [2439.440217] add /devices/pci0000:00/0000:00:09.0/virtio4/block/vdd (block)
UDEV [2439.608079] add /devices/pci0000:00/0000:00:09.0/virtio4/block/vdd/vdd1 (block)
KERNEL[2465.918476] remove /devices/pci0000:00/0000:00:09.0/virtio4/block/vdd/vdd1 (block)
UDEV [2465.919671] remove /devices/pci0000:00/0000:00:09.0/virtio4/block/vdd/vdd1 (block)
KERNEL[2465.919855] remove /devices/virtual/bdi/253:48 (bdi)
KERNEL[2465.920139] remove /devices/pci0000:00/0000:00:09.0/virtio4/block/vdd (block)
KERNEL[2465.920574] remove /devices/pci0000:00/0000:00:09.0/virtio4 (virtio)
UDEV [2465.925643] remove /devices/pci0000:00/0000:00:09.0/virtio4/block/vdd (block)
UDEV [2465.926430] remove /devices/pci0000:00/0000:00:09.0/virtio4 (virtio)
UDEV [2465.927086] remove /devices/virtual/bdi/253:48 (bdi)
KERNEL[2465.964914] remove /devices/pci0000:00/0000:00:09.0 (pci)
UDEV [2465.965420] remove /devices/pci0000:00/0000:00:09.0 (pci)
KERNEL[2465.965481] remove /devices/LNXSYSTM:00/device:00/PNP0A03:00/device:24 (acpi)
UDEV [2465.965604] remove /devices/LNXSYSTM:00/device:00/PNP0A03:00/device:24 (acpi)