Three ways to view UUID under Linux and the role of using UUID

Source: Internet
Author: User

Three ways to view the UUID of a device are summarized below:

1 Command view: Blkid
2 file Views: Ls-l/dev/disk/by-uuid
3 Command view: VOL_ID/DEV/SDA1


The role and significance of UUID

1: It's really the only sign

The UUID provides a unique identification string for the storage device in the system, regardless of the type of device. If you start up in the system and use a drive letter mount, you may not find the device and the load fails, and when you use the UUID mount, there is no such problem.

2: Device name is not always the same

Automatically assigned device names are not always consistent, and they depend on the order in which the kernel loads the modules at startup. If you start the system when you plug in a USB drive and then unplug it the next time you start it, you may have inconsistent device name assignments.

Using the UUID is also good for mounting a mobile device, which supports a wide variety of cards, while the use of UUID always allows the same card to be mounted in the same place.
Many of the key features in 3:ubuntu are now dependent on UUID

This article from "Tiger's Technical Homeland" blog, declined reprint!

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.