For mount operations with the UUID as the unique identification of the hard disk in Fstab

Source: Internet
Author: User
Tags uuid

In Ubuntu, it is found that the system uses a UUID to make a unique representation of the hard disk partition, such as:

#/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 defaults,nls=utf8,umask=000 0 1

One advantage of doing this and using the/dev/sda5 method of direct reference partitioning is that when a new partition is added to the hard disk or the order of the partitions changes, the system is still able to load the partition to the correct mount point.

This is especially important for swap partitions, if the hard disk partitioning sequence changes, and fstab to the swap partition number to respond to the adjustment, will be the other partitions as swap. The result is terrible, and the data on this partition is probably going to be out of the cost.

By/dev/disk/uuid, the list of UUID here is actually some soft link file, which guarantees a unique encoding for each partition and increases the stability of the system.

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.