Volume label)

Source: Internet
Author: User
In fact, I have long noticed that the first domain of/etc/fstab in Linux has changed from block device (/dev/sda1) to label (Label =/BOOT ), today, I finally checked how label is used. If you still don't understand it, refer to the following.
In man 5 fstab, we explained that using the volume label will make the system more robust: to add or delete a SCSI disk, you only need to change the disk name instead of the volume label of the file system. I am afraid that my translation is not accurate. I have attached the original statement: this will make the system more robust: adding or removing a SCSI disk changes the disk device name but not the filesystem volume label.
E2label is a label used to modify or display the ext2/ext3 file system, but the lable name (I .e. the following/disk3, rather than label =/disk3) cannot exceed 16 characters, if it is exceeded, it will be automatically truncate .. You can also set the volume name in the tune2fs and mkfs. ext2 tools.

If you want to use the volume label in fstab, you can do this.

For example:
1. display the label name of the/dev/sdb1 device:
# E2label/dev/sdb1/mm

2. Set/dev/sdb1 to/disk3.
# E2label/dev/sdb1/disk3

3. Add it to/etc/fstab.
This method is available after lable is set:
Label =/disk3/Disk3 (the loading point can be freely defined)Ext3 defaults 0 0

(Writing without a label:/dev/sdb1/disk3 ext3 defaults 0 0)

Note: view the volume label of the file system:E2label/dev/sdb1

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.