Linux (14) CentOS 7 View the UUID of the partition

Source: Internet
Author: User
Tags uuid

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
Total dosage 0
lrwxrwxrwx. 1 root root 10 March 23:32 07faac6e-9c1a-45e1-9bc1-cecd2b64642b. /.. /sda3
lrwxrwxrwx. 1 root root 9 March 23:32 1d15bd0f-d115-4e1c-a237-7d0002cdcec3. /.. /md0
lrwxrwxrwx. 1 root root 9 March 23:32 2014-07-06-17-32-07-00. /.. /sr0
lrwxrwxrwx. 1 root root 10 March 23:32 24dbd533-2c46-4931-881c-fd7e2e1a0299. /.. /sda5
lrwxrwxrwx. 1 root root 10 March 23:32 33969a68-0036-40f0-a43a-47cc3c860d5a. /.. /sda2
lrwxrwxrwx. 1 root root 10 March 23:32 3dd50bef-ec33-467d-a249-5aacf78d478c. /.. /sda1

Etc/fstab file

#
#/etc/fstab
# Created by Anaconda on Thu Mar 12 09:00:57 2015
#
# Accessible filesystems, by reference, is maintained under '/dev/disk '
# See mans 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

Linux (14) CentOS 7 View the UUID of the partition

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.