Change Disk Name CentOS: Step-by-Step Guide
In CentOS, you can change the name of a disk by following these steps:
- View the disk information in the current system.
lsblk
- Find the device path of the disk that needs to be renamed, such as /dev/sdb.
- Change the label name of a disk using the e2label command, for example, changing the label name of /dev/sdb to new_label:
e2label /dev/sdb new_label
- “Label command for ext2 filesystems”
e2label /dev/sdb
Please note that the above operation needs to be executed with administrator privileges, you can use the sudo command or switch to the root user to perform the operation.