I'm struggling to install a new OS on an M.2 drive after upgrading from Windows 7. I didn't realize that having my old boot drive plugged in could cause problems. During the installation, my computer keeps booting back to the Windows 7 screen or restarts the installation process. I've disabled other boot processes, but now I just get stuck in a loop at the installation menu. I'm also getting an error that prevents Windows from installing on the M.2 drive. This is my first time attempting to install an OS on an M.2 drive, and I'm not sure if I'm missing something crucial here.
3 Answers
Are you doing a fresh install or an upgrade from Windows 7? If you're going for a fresh install, I’d recommend completely disconnecting all other drives to make things simpler.
Sounds like you might need to reset your BIOS settings and make sure only the M.2 drive is connected. For Windows 11, ensure UEFI boot mode is enabled instead of CSM. What version of Windows are you trying to install, and what are your CPU and motherboard specs? That info can really help!
It’s likely that your system is trying to boot from the old Windows 7 drive. You can access the boot selection menu, usually by pressing F12, F2, or F10 when starting up. From there, choose the drive with the new OS installation.

I'm doing a fresh install, but I'm still facing issues even after disconnecting everything.