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