TechBuzzPro

Change Disk UUID Windows: Step-by-Step Guide

· 4 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Changing a disk's UUID in Windows is not directly supported through standard tools because the UUID (Universally Unique Identifier) is typically assigned at partition or volume creation and is used by the operating system and boot loaders to reliably identify storage devices. However, in advanced scenarios—such as cloning drives or resolving UUID conflicts—it may be necessary to modify it. This can be achieved using the built-in diskpart utility or third-party tools that manipulate partition metadata. Be aware that altering a disk UUID can affect system stability, break boot configurations, or disrupt mounted drives, so proceed with caution and ensure you have backups.

What You'll Need

  • Administrative access to the Windows machine
  • Backup of all important data on the target disk
  • Windows installation media (recommended for recovery access)
  • Third-party partition tool (optional, such as TestDisk or GParted Live)
  • Command Prompt or PowerShell with elevated privileges

Step-by-Step

  1. Open Command Prompt as Administrator: Press Windows + X, then select Command Prompt (Admin) or Windows Terminal (Admin) from the menu. If prompted by UAC, click Yes.
  2. Launch DiskPart: Type diskpart and press Enter. Wait for the utility to initialize.
  3. List Available Disks: Enter list disk to display all physical disks connected to the system. Identify the disk you want to modify by its size and disk number.
  4. Select the Target Disk: Type select disk X (replace X with the correct disk number) and press Enter. Confirm the selection by checking the message that appears.
  5. Clear the Disk's Signature (for MBR) or GUID (for GPT): For MBR disks, enter uniqueid disk to view the current disk signature. Then, use uniqueid disk id=XXXXXXXX (replace X with a new 8-character hexadecimal value) to assign a new signature. For GPT disks, the GUID is tied to the partition table and cannot be changed via diskpart directly—this requires third-party tools.
  6. Verify the Change: Run uniqueid disk again to confirm the new identifier has been applied.
  7. Exit DiskPart: Type exit twice—once to leave diskpart, once to close Command Prompt.
  8. Reboot the System: Restart your computer to allow Windows to recognize the change and re-enumerate disk volumes.
  9. (Optional) Use Third-Party Tools for GPT Disks: If working with a GPT disk, boot from a Linux live USB (e.g., GParted Live) and use sgdisk with the command sgdisk /dev/sdX --randomize-guids to regenerate GUIDs. Replace sdX with the correct device identifier.
  10. Check Drive Letters and Mount Points: After reboot, open File Explorer or diskmgmt.msc to ensure all volumes are correctly mounted. Reassign drive letters if necessary.

Common Mistakes

  • Confusing disk UUID with volume serial number: The volume serial (visible via dir command) is different from the disk’s unique identifier and cannot be used interchangeably.
  • Selecting the wrong disk in diskpart: Always double-check the disk size and current usage before making changes.
  • Modifying the system disk without backup: Changing the boot disk’s identifier can prevent Windows from starting.
  • Assuming diskpart can change GPT disk GUIDs: It cannot—GPT uses a globally unique GUID per disk and partition, which diskpart does not support modifying.
  • Failing to reboot after changes: Windows may not recognize the new identifier until after a restart.

Tips

  • Use hexadecimal values only when assigning new MBR signatures—avoid letters beyond A–F and ensure the string is exactly 8 characters long.
  • Document the original disk identifier before making changes, in case you need to revert.
  • For cloned disks, changing the UUID helps avoid conflicts when both the original and clone are connected simultaneously.
  • Use third-party tools like TestDisk cautiously and only from trusted sources; always verify checksums.
  • Consider using symbolic links or mount points instead of altering UUIDs if the goal is drive organization.

Troubleshooting

If Windows fails to boot after changing the disk UUID, especially on the system drive, use Windows installation media to access Advanced Startup Options. From there, launch Command Prompt and run bootrec /rebuildbcd, bootrec /fixmbr, and bootrec /fixboot to repair boot records. If volumes do not appear, open diskpart, list disks and volumes, and assign missing drive letters using assign letter=X. If the disk is not recognized, ensure the UUID change did not corrupt the partition table. In such cases, restore from backup or use data recovery tools. For GPT-related issues, verify integrity using mbr2gpt or gdisk if available.

Frequently Asked Questions

Can I change the UUID of a GPT disk in Windows?

No, Windows diskpart does not support modifying the GUID of a GPT disk. You must use third-party tools like sgdisk from a Linux environment.

What is the difference between disk UUID and volume serial number?

The disk UUID (or signature on MBR) identifies the physical disk, while the volume serial number identifies a formatted partition. They serve different purposes and are managed separately.

Will changing the disk UUID delete my data?

Not directly, but improper use of tools or incorrect commands can corrupt the partition table, leading to data loss. Always back up before proceeding.

Why would I need to change a disk UUID?

Common reasons include resolving conflicts between cloned drives, fixing boot issues after disk duplication, or configuring multi-boot systems with identical disk signatures.

Can I revert the UUID change?

Yes, if you recorded the original identifier, you can reapply it using the same diskpart command with the original value.

Does this work on dynamic disks?

No, uniqueid disk only works on basic disks. Dynamic disks use a database for volume management and do not support manual UUID changes via diskpart.