Originally Posted by 915086731
How can I change the label of one partition on linux without formatting it.
Ext, ntfs, fat32 and so on.
Like command: mkfs.vfat - n
It wll format the partition, and all content disappears.
Thanks! I am Chinese, and my English is poor。
/sbin/e2label device [newlabel]
which will display, or change the label on a ext2, ext3, or ext4 filesystem located on device.
I do not know, or remember, which utility to use on vfat, ntfs, etc. systems.
If you have Gparted (Gnome Parition Editor) installed, you can use it to label other file systems.