Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use the Linux e2label command

2025-02-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces "how to use the Linux e2label command". In the daily operation, I believe many people have doubts about how to use the Linux e2label command. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about how to use the Linux e2label command. Next, please follow the editor to study!

The Linux common command e2label command is used to set the volume label of the second extended file system.

E2label sets the volume label of the second extended file system

Add that the e2label command is used to set the volume label of the second extended file system.

Syntax e2label (parameter) parameter file system: specifies the device file name corresponding to the file system

New volume label: specify a new volume label for the file system.

For example, many people who have used Linux for many years may not have used the e2label command. But this order is quite effective. Before introducing it, let's take a look at the / etc/fstab file:

The second line of label=//ext3 defaults 1 1 / dev/hda7 / usr ext3 defaults 1 1 is easy to understand, which is to put / dev/hda7 mount on / usr. The first line does not specify the partition, which means to mount the partition whose label (volume label) is /. The advantage of writing this is that even if you change the hard drive from ide0 (hda) on the motherboard to ide2 (hdc), the system can still mount the correct partition automatically. Usually the volume label is assigned automatically when Linux is installed. If it is a new partition that is added manually, you can assign a volume label to it with the following command:

E2label / dev/hdax / new mkdir / new and then add to / etc/fstab:

Label=/new / new ext3 defaults 11 the next time the machine is rebooted, the partition labeled / new will be attached to / new.

At this point, the study of "how to use the Linux e2label command" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report