Deleting linux from dual boot
Original Post: https://www.narenvadapalli.com/blog/deleting-linux-from-dual-boot/
Fixing bootrec before deleting linux partitions
- Restart the machine if not in Windows OS
- Select Windows (/dev/sda) from the menu
- No need to login
- Just hold SHIFT and press the power icon at the bottom right to see Restartin the pop up menu
- Keep on holding SHIFT (might have to leave it for a couple of seconds in the middle) until Restartingslowly transitions toPlease Wait
- Hit TroubleShootoption from the list
- Hit Advanced Optionsfrom the list
- Hit Command Promptfrom the list
- System reboots to the grub boot loader menu
- Select Windows (/dev/sda) from the menu
- Select your user account
- Login with your password
- Type the following sequence of commands
bootrec /fixmbr
bootsect/nt60 sys
bootrec /fixboot
bootrec /scanos
bootrec /rebuildbcd
exit
Deleting linux partitions
- Hit Turn off your PC
- Power up the host again
- Select Windows (/dev/sda) from the menu
- Press Windows Key + Xon keyboard
- Select Disk Management
- Delete the partitions related to the Linux OS (leave EFI partition)
- Press Windows Key + Xon keyboard
- Select Power Shell Administrator
- Type the following commands
diskpart
list disk
select disk 0    # this would be the hard disk
list partition
select partition 2
assign letter=X
exit
X:
cd EFI
rd fedora        # or whatever linux os

