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’...
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
- Log in to the BMS as user root. …
- Run the cat /etc/fstab command to open the fstab file. …
- Check the disk identifier in the fstab file. …
- Run the vi /etc/fstab command to open the fstab file, press i to enter editing mode, and change the disk identifier to UUID.
Must Read
How do I change the UUID of a drive?
1. Changing UUID using tune2fs
- To be able to change the UUID of the filesystem, it must be umounted first. # umount /data.
- The tune2fs command allows the UUID to be changed using the -U flag. …
- When modifying existing UUIDs, make sure to update any references to the old labels in fstab. …
- Mount the filesystem back again.