The SSD is likely failing.
The strongest indicator is the Windows Setup warning: "Windows cannot be installed to this disk. The disk may fail soon." The behavior described also matches a failing drive or a controller that has entered a read-only or unstable state:
-
diskpart cleanappears to work temporarily. - After refresh or partition creation, the old partitions reappear.
-
attributes disk clear readonlyfails. - Windows Setup cannot create a new partition.
A CRC/data error or disk problems during setup are associated with hardware issues, and the documented guidance is to run Chkdsk.exe to check for disk problems and replace the hard disk if it is damaged.
What can still be tried:
- Verify the correct disk is selected
On systems with multiple drives, disk numbers can change and may not match SATA channel numbering.
- In Windows Setup, press Shift+F10.
- Run:
diskpart list disk - Confirm the target by size before doing anything else.
- Try a full clean install path one more time
This is destructive and permanently removes all partitions and data on the selected disk.
- In Windows Setup, press Shift+F10.
- Run:
diskpart list disk select disk <disk number> clean convert gpt exit - Close Command Prompt.
- Back in Setup, click Refresh.
- Select the unallocated space and click Next.
- If
cleanor partition creation still fails, stop using that SSD for the install The documented guidance is to replace the disk if it is damaged. - Check BIOS/firmware detection If needed, verify that the system BIOS correctly detects the hard disk and check for firmware or BIOS updates through the hardware manufacturer.
Important risk note:
- Using
clean,clean all, deleting partitions, or converting the disk permanently removes data. - If any files still matter, avoid further write attempts to that SSD.
Based on the symptoms provided, this is not a normal partition-table issue. If the old partitions keep reappearing after clean, and Setup warns the disk may fail soon, replacement is the correct next step.
References:
- You cannot select or format a hard disk partition when you try to install Windows
- Windows Setup: Installing using the MBR or GPT partition style
- Hard drives and partitions
- Disk drive numbers may not correspond to the SATA channel numbers when you install Windows on a computer that has multiple SATA or RAID disks
- Can't reinstall Windows 10 after crash - Microsoft Q&A
- Diskpart utility utility throws error "The media is write protected" when executing a clean override on a clean drive - Microsoft Q&A