How Do I Change the Disk Id in Linux?
Contents

Start fdisk for the disk you want to change volume ID for, and then enter command ‘x’ to get expert mode. In expert mode one can enter the command ‘i’ and fdisk will then display the current volume ID, (a.k.a disk identifier), and also prompt for changing it. Just enter a fairly random hexadecimal number.

How do I change the UUID of a disk in Linux?

Procedure

  1. Log in to the BMS as user root. …
  2. Run the cat /etc/fstab command to open the fstab file. …
  3. Check the disk identifier in the fstab file. …
  4. Run the vi /etc/fstab command to open the fstab file, press i to enter editing mode, and change the disk identifier to UUID.

How do I change the UUID of a drive?

1. Changing UUID using tune2fs

  1. To be able to change the UUID of the filesystem, it must be umounted first. # umount /data.
  2. The tune2fs command allows the UUID to be changed using the -U flag. …
  3. When modifying existing UUIDs, make sure to update any references to the old labels in fstab. …
  4. Mount the filesystem back again.
David Miller

David Miller

Executive Financial & Market Analyst

David Miller brings 15 years of experience in global economics, personal finance strategy, and market dynamics. He specializes in turning complex economic trends into actionable insights for everyday readers.

Share this article
Twitter Facebook Pinterest