View and modify the volume label of Windows partition in Linux

Source: Internet
Author: User

Modify Linux
You can use e2label for the volume label of the partition. For example, you can change the/dev/sda1 volume label to/boot.

$ E2label/dev/sda1/boot
View Linux
Partition file system volume label
$ E2label/dev/sda1
/Boot

In Linux
In Windows partition, how does one modify the volume label? We need to use two tools:
For vfat file systems, you can use dosfslabel from the dosfstools package; For NTFS file systems, you can use ntfslabel from the ntfsprogs package

Dosfslabel (if not installed, fedora users can directly install Yum install-y dosfstools)
Used for vfat partitioning. command usage:
Dosfslabel device [label]

For example, modify the volume label of a vfat partition (both fat16 and FAT32 can ).

$ Dosfslabel/dev/sda5/Windows

View the vfat partition volume label

$ Dosfslabel/dev/sda5

Ntfsprogs (if not installed, fedora users can directly install-y ntfsprogs)

Used for NTFS partition. command usage:
Ntfslabel device [label]
For example, modify the volume label of an NTFS partition.

$ Ntfslabel/dev/sda6/XP

View NTFS partition volume labels

$ Ntfslabel/dev/sda6
/XP

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.