"Turn" Linux e2label command

Source: Internet
Author: User

Transferred from: http://www.th7.cn/system/lin/201311/46743.shtml

Objective

The E2label command, which gets or sets the volume label for the partition corresponding to the ext2, ext3 file system.

Label: A simple indication of a partition. Generated at the time of formatting or set by the E2label command

Instructions for use
Viewing a partitioned volume label

E2label PartitionName

E2label can only manipulate the partition information that is located on the ext2, ext3 file system.

   1: [[email protected] ~]# DF
   2:filesystem           1k-blocks      used Available use% mounted on
   3:/dev/sda1             10006104   4942840   4546776  53%/
   4:tmpfs                   129640         0    129640   0%/DEV/SHM
   5:/root/data               19827      1202     17601   7%/data
   E2label/root/data
   7:root
Set the volume label

E2lable PartitionName NewName

As below,/root/data just started without setting the label, setting its new name to the target of the modification or setting

   1: [[email protected] ~]# E2label/root/data
   
   E2label/root/data data
   4: [[email protected] ~]# E2label/root/data
   5:data
Summarize

Use the E2label command to view or set the volume label of the partition where the ext2, ext3 file system resides.

"Turn" Linux e2label command

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.