How can i set the C: partition active without using CMD or windows installation media

djolebre2003

Prominent
Dec 28, 2017
11
0
510
I have accidentally set the D: partition active as my boot drive,and now everytime i start up my pc,there is a message saying:
An operating system wasn't found,try disconecting any drives that don't contain an operating system
Press Ctrl+alt+delete to restart
I know i need to instert an USB drive or an installation disc with windows on it to open command promt and set the C: partition active from there,but my DVD drive doesn't work and i don't have any USBs with windows on them
What should i do?
 
Solution
You need to buy a usb flash drive and create a recovery drive from a friends / neighbor's computer.

https://www.howtogeek.com/131907/how-to-create-and-use-a-recovery-drive-or-system-repair-disc-in-windows-8/

Once that has been created you simply issue a few commands in cmd prompt to change the boot / active drive.


diskpart

list disk

select disk 0
"or whatever number is your hard drive"

list partition

select partition 1
"the number of partitions shouldn't have changed since you only changed the boot drive
if given a choice choose the system partition"

active


This should make the system partition the active / boot partition.

Edited for clarity.
You need to buy a usb flash drive and create a recovery drive from a friends / neighbor's computer.

https://www.howtogeek.com/131907/how-to-create-and-use-a-recovery-drive-or-system-repair-disc-in-windows-8/

Once that has been created you simply issue a few commands in cmd prompt to change the boot / active drive.


diskpart

list disk

select disk 0
"or whatever number is your hard drive"

list partition

select partition 1
"the number of partitions shouldn't have changed since you only changed the boot drive
if given a choice choose the system partition"

active


This should make the system partition the active / boot partition.

Edited for clarity.
 
Solution