0
点赞
收藏
分享

微信扫一扫

Linux获取磁盘的UUID


小知识,记录一下,
1.针对Redhat6或者Centos6

[root@db01 orcl]# scsi_id -g -u /dev/sda

2.针对Redhat 7或者Centos 7或者Redhat 8或者Centos 8

[root@db01 orcl]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.9 (Maipo)
[root@db01 orcl]# /usr/lib/udev/scsi_id -g -u /dev/sda
1ATA_VBOX_HARDDISK_VB0cd0ff14-a8d18ca1

版权声明:本文为博主原创文章,未经博主允许不得转载。

LINUX

举报

相关推荐

0 条评论