-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
- HP Community
- Notebooks
- Notebook Hardware and Upgrade Questions
- Diskpart clean - does it set a new uniqueid

Create an account on the HP Community to personalize your profile and ask a question
03-29-2025 10:53 AM
Will diskpart clean set a new uniqueid on the selected disk?
A have a SSD in an external cabinet (USB-C) and when connecting it shows Status Offline (signature collision)
How can I set a new uniqueid - how do I select a new id ? (at random?)
Solved! Go to Solution.
Accepted Solutions
03-29-2025 11:32 AM
Welcome to our HP Community forum!
Yes, using diskpart clean will remove the existing partition table, including the disk signature (unique ID), but it does not automatically generate a new one until a partition is created and formatted.
Steps to Set a New UniqueID:
Option 1: Using diskpart
Open Command Prompt as Administrator
Press Win + X and select Command Prompt (Admin) or PowerShell (Admin).
Run diskpart
Type: diskpart and press Enter.
List available disks
Type: list disk and press Enter.
Select the affected disk
Type: select disk X (replace X with the correct disk number) and press Enter.
Clean the disk (optional, but will remove all data)
Type: clean and press Enter.
Assign a new UniqueID (random or specific)
To generate a random ID:
Type: uniqueid disk and press Enter (Windows will assign a new random ID).
To set a specific ID:
Type: uniqueid disk ID=<NewHexID> (e.g., uniqueid disk ID=12345678) and press Enter.
Exit diskpart
Type: exit and press Enter.
Reconnect the SSD
Safely remove the external drive, unplug it, then reconnect it.
Alternative: Using Disk Management:
Press Win + X → Select Disk Management.
Locate the Offline disk.
Right-click it and choose Online (this may auto-generate a new ID).
If it still shows a signature collision:
Right-click the disk and choose Initialize (WARNING: This erases data).
Format the disk to apply changes.
This ought to resolve the issue. Let me know if you need further clarification!
Kind Regards,
NonSequitur777
03-29-2025 11:32 AM
Welcome to our HP Community forum!
Yes, using diskpart clean will remove the existing partition table, including the disk signature (unique ID), but it does not automatically generate a new one until a partition is created and formatted.
Steps to Set a New UniqueID:
Option 1: Using diskpart
Open Command Prompt as Administrator
Press Win + X and select Command Prompt (Admin) or PowerShell (Admin).
Run diskpart
Type: diskpart and press Enter.
List available disks
Type: list disk and press Enter.
Select the affected disk
Type: select disk X (replace X with the correct disk number) and press Enter.
Clean the disk (optional, but will remove all data)
Type: clean and press Enter.
Assign a new UniqueID (random or specific)
To generate a random ID:
Type: uniqueid disk and press Enter (Windows will assign a new random ID).
To set a specific ID:
Type: uniqueid disk ID=<NewHexID> (e.g., uniqueid disk ID=12345678) and press Enter.
Exit diskpart
Type: exit and press Enter.
Reconnect the SSD
Safely remove the external drive, unplug it, then reconnect it.
Alternative: Using Disk Management:
Press Win + X → Select Disk Management.
Locate the Offline disk.
Right-click it and choose Online (this may auto-generate a new ID).
If it still shows a signature collision:
Right-click the disk and choose Initialize (WARNING: This erases data).
Format the disk to apply changes.
This ought to resolve the issue. Let me know if you need further clarification!
Kind Regards,
NonSequitur777