°Ô½Ã¹° 1,369°Ç
   
blkid, lsblk, udevadm
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2016-03-11 (±Ý) 13:14 Á¶È¸ : 4891
±ÛÁÖ¼Ò :
                                
# blkid
/dev/vda1: LABEL="cloudimg-rootfs" UUID="40b193b0-9b4a-45e2-b242-1e910c16257a" TYPE="ext4" 
/dev/vdb1: UUID="407a6e20-0ca6-48ae-b7c3-64333da6a33a" TYPE="ext4" 

# lsblk
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


:: udev daemon disable
# 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)


:: udev daemon enable
udevadm monitor
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)


À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.