1、blkid
[[email protected] ~]# blkid
/dev/sr0: UUID="2014-07-06-17-32-07-00" LABEL="CentOS 7 x86_64" TYPE="iso9660" PTTYPE="dos"
/dev/sda1: UUID="3dd50bef-ec33-467d-a249-5aacf78d478c" TYPE="ext3"
/dev/sda2: UUID="33969a68-0036-40f0-a43a-47cc3c860d5a" TYPE="ext3"
/dev/sda3: UUID="07faac6e-9c1a-45e1-9bc1-cecd2b64642b" TYPE="ext3"
/dev/sda5: UUID="24dbd533-2c46-4931-881c-fd7e2e1a0299" TYPE="swap"
/dev/sda6: UUID="7303744d-eb15-d98b-eddb-59091ee00ef9" UUID_SUB="88d117bf-b053-14d8-4758-6d867a449ef1" LABEL="localhost.localdomain:0" TYPE="linux_raid_member"
/dev/sda7: UUID="7303744d-eb15-d98b-eddb-59091ee00ef9" UUID_SUB="27f63e5c-3adf-1d4b-e61d-3d84e76171d9" LABEL="localhost.localdomain:0" TYPE="linux_raid_member"
/dev/sda8: UUID="7303744d-eb15-d98b-eddb-59091ee00ef9" UUID_SUB="540ee15d-8801-005d-86d3-5801f4cee2e6" LABEL="localhost.localdomain:0" TYPE="linux_raid_member"
/dev/sda9: UUID="7303744d-eb15-d98b-eddb-59091ee00ef9" UUID_SUB="8dd168b6-c132-77c1-ddfa-5dab903c1d9f" LABEL="localhost.localdomain:0" TYPE="linux_raid_member"
/dev/sda10: UUID="7303744d-eb15-d98b-eddb-59091ee00ef9" UUID_SUB="8f012aa1-0fb5-a219-c4c3-e8199537b8e9" LABEL="localhost.localdomain:0" TYPE="linux_raid_member"
/dev/sda11: UUID="a5dbc5fe-336d-6fee-0cd8-88d4d0e61174" UUID_SUB="55cb220c-b6cb-e4af-94ba-dc3bc64056b0" LABEL="localhost.localdomain:0" TYPE="linux_raid_member"
/dev/md0: UUID="1d15bd0f-d115-4e1c-a237-7d0002cdcec3" TYPE="ext3"
2、[[email protected] ~]# ls -l /dev/disk/by-uuid
总用量 0
lrwxrwxrwx. 1 root root 10 3月 17 23:32 07faac6e-9c1a-45e1-9bc1-cecd2b64642b -> ../../sda3
lrwxrwxrwx. 1 root root 9 3月 17 23:32 1d15bd0f-d115-4e1c-a237-7d0002cdcec3 -> ../../md0
lrwxrwxrwx. 1 root root 9 3月 17 23:32 2014-07-06-17-32-07-00 -> ../../sr0
lrwxrwxrwx. 1 root root 10 3月 17 23:32 24dbd533-2c46-4931-881c-fd7e2e1a0299 -> ../../sda5
lrwxrwxrwx. 1 root root 10 3月 17 23:32 33969a68-0036-40f0-a43a-47cc3c860d5a -> ../../sda2
lrwxrwxrwx. 1 root root 10 3月 17 23:32 3dd50bef-ec33-467d-a249-5aacf78d478c -> ../../sda1
etc/fstab文件
#
# /etc/fstab
# Created by anaconda on Thu Mar 12 09:00:57 2015
#
# Accessible filesystems, by reference, are maintained under ‘/dev/disk‘
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=33969a68-0036-40f0-a43a-47cc3c860d5a / ext3 defaults 1 1
UUID=3dd50bef-ec33-467d-a249-5aacf78d478c /boot ext3 defaults 1 2
UUID=07faac6e-9c1a-45e1-9bc1-cecd2b64642b /home ext3 defaults 1 2
UUID=24dbd533-2c46-4931-881c-fd7e2e1a0299 swap swap defaults 0 0
UUID=1d15bd0f-d115-4e1c-a237-7d0002cdcec3 /mnt/raid ext3 defaults 1 2