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资源网所有,欢迎分享本文,转载请保留出处!
你可能也喜欢
- ♥ WordPress 技巧:屏蔽站点Feed12/22
- ♥ nginx 配置:限制连接数02/19
- ♥ Linux的一些常用命令04/15
- ♥ Linux服务器上用Crontab来定时执行任务实现自动化04/15
- ♥ inux中如何暂停起PID进程02/07
- ♥ NGINX强制使用https访问(http跳转到https)代码11/10