Linux blkid命令 示例
查看UUID是bec50cdd-090c-47ad-83d5-25328b4ab8ec的设备名
[root@rhel ~]# blkid -U bec50cdd-090c-47ad-83d5-25328b4ab8ec
/dev/sda1
查看卷标是boot的设备名
[root@rhel ~]# blkid -L boot
/dev/sda1
查看磁盘分区/dev/sda1低级别的超级块信息
[root@rhel ~]# blkid -p /dev/sda1
/dev/sda1: LABEL=''boot'' UUID=''bec50cdd-090c-47ad-83d5-25328b4ab8ec'' VERSION=''1.0'' TYPE=''ext4'' USAGE=''filesystem''
收集磁盘分区/dev/sda1有关I/O限制的信息
[root@rhel ~]# blkid -i /dev/sda1
MINIMUM_IO_SIZE=512
PHYSICAL_SECTOR_SIZE=512
LOGICAL_SECTOR_SIZE=512
显示磁盘所有标签
[root@rhel ~]# blkid -o full
/dev/sda1: UUID=''bec50cdd-090c-47ad-83d5-25328b4ab8ec'' TYPE=''ext4''
/dev/sda2: UUID=''2ac36994-5a18-4741-8118-96fe2c57a6c6'' TYPE=''ext4''
/dev/sda3: UUID=''347a09c1-90d5-45fe-a4c3-e1383b368af2'' TYPE=''swap''
查看所有磁盘分区的文件系统类型、卷标、UUID等信息
[root@rhel ~]# blkid
/dev/sda1: UUID=''bec50cdd-090c-47ad-83d5-25328b4ab8ec'' TYPE=''ext4''
/dev/sda2: UUID=''2ac36994-5a18-4741-8118-96fe2c57a6c6'' TYPE=''ext4''
/dev/sda3: UUID=''347a09c1-90d5-45fe-a4c3-e1383b368af2'' TYPE=''swap''
查看磁盘分区/dev/sda1的文件系统类型、卷标、UUID等信息
[root@rhel ~]# blkid /dev/sda1
/dev/sda1: UUID=''bec50cdd-090c-47ad-83d5-25328b4ab8ec'' TYPE=''ext4''
查看所有磁盘分区的UUID
[root@rhel ~]# blkid -s UUID
/dev/sda1: UUID=''bec50cdd-090c-47ad-83d5-25328b4ab8ec''
/dev/sda2: UUID=''2ac36994-5a18-4741-8118-96fe2c57a6c6''
/dev/sda3: UUID=''347a09c1-90d5-45fe-a4c3-e1383b368af2''
查看/dev/sda1磁盘分区的UUID
[root@rhel ~]# blkid -s UUID /dev/sda1
/dev/sda1: UUID=''bec50cdd-090c-47ad-83d5-25328b4ab8ec''
本文为原创文章,版权归123ppp资源网所有,欢迎分享本文,转载请保留出处!
你可能也喜欢
- ♥ linux下查看目录所在的分区命令11/03
- ♥ docker-compose部署lnmp架构12/06
- ♥ nextcloud运行缓慢的优化12/17
- ♥ vim中查找和替换命令详解02/04
- ♥ systemctl更新配置、启动服务、设置开机启动命令11/07
- ♥ 了解 frp HTTP, HTTPS 类型的代理12/07