The UUID in fstab is used as the unique identifier of the hard disk for mounting and other operations.

Source: Internet
Author: User

In ubuntu, we found that the system uses UUID to uniquely represent the hard disk partition, for example:

#/Dev/sda1
# UUID = 45f8-9147/Media/sda1 vfat defaults, utf8, umask = 000 0 1
/Dev/sda1/Media/sda1 vfat defaults, utf8, umask = 000 0 1
#/Dev/sda5
UUID = 5668d81168d7edad/Media/sda6 ntfs-3g ults, NLS = utf8, umask = 000 0 1

One advantage of using/dev/sda5 to directly reference a partition is that when a new partition is added to the hard disk or the partition sequence changes, still ensure that the system loads partitions to the correct loading point.

This is especially important for swap partitions. If the order of Hard Disk Partitions is changed, and fstab makes a response to swap partition numbers, will it use other partitions as swap? The result is terrible. The data in this partition may not be guaranteed.

The UUID list in/dev/Disk/UUID is actually some soft link files. The system can generate a unique encoding for each partition and increase the system stability.

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.