Change Disk Name CentOS: Step-by-Step Guide

In CentOS, you can change the name of a disk by following these steps:

  1. View the disk information in the current system.
lsblk
  1. Find the device path of the disk that needs to be renamed, such as /dev/sdb.
  2. 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
  1. “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.

bannerAds