How to modify the hard drive Mount name label

Source: Internet
Author: User

? ~ df-h
Filesystem Size used Avail use% mounted on
/dev/sda2 114G 97G 12G 90%/media/brian/4ef34b75-9381-4e31-a721-74444c6f9960
/DEV/SDB3 152G 46G 99G 32%/media/brian/new

? ~ sudo blkid
/dev/sda2:uuid= "4ef34b75-9381-4e31-a721-74444c6f9960" type= "ext3"
/dev/sdb3:uuid= "88ed7e97-8edb-4e7c-a87f-1d866e288642" type= "Ext4" label= "NEW"
The difference between the two lines is label= "NEW", you can modify the label with E2label

sudo e2label/dev/sda2 study

Restart your computer

or manual Umount/dev/sda2
Mount/dev/sda2/media/brian/study

? ~ df-h

Filesystem Size used Avail use% mounted on
/dev/sda2 114G 97G 12G 90%/media/brian/study
/DEV/SDB3 152G 46G 99G 32%/media/brian/new

You can also modify the attached volume label by modifying the/etc/fstab

How to modify the hard drive Mount name label

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.