Efficient way to query or set the ext3 volume volume name for Linux?

After a bit of digging, I discovered how to install and get the volume name of the ext3 partition in my Linux box:

set volume label

tune2fs -L MY-NEW-NAME / dev / disk / by-path / pci-0000: 00: 1f.2-scsi-2: 0: 0: 0-part1

get current volume level

dumpe2fs -h / dev / disk / by-path / pci-0000: 00: 1f.2-scsi-2: 0: 0: 0-part1 | grep 'volume name'

Those work fine, but I have a few questions:

1) Are these commands the best way to set / get the volume name? Or is there a simpler method that I don't know about?

2) How likely is it to change the volume label to break something? that is, the standard Linux system relies on volumes with specific names? Or can I rename volumes to any names that I like, no problem?

3) - GUI . - ( () - ), ... , , ? , ?

,

+3
1

1) e2label?
2) "mount" , - /etc/fstab.. , . ( , Ubuntu Fedora IIRC)
3) ? , e2label - API..

+1

Source: https://habr.com/ru/post/1712330/


All Articles