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 Restart in the pop up menu
  • Keep on holding SHIFT (might have to leave it for a couple of seconds in the middle) until Restarting slowly transitions to Please Wait
  • Hit TroubleShoot option from the list
  • Hit Advanced Options from the list
  • Hit Command Prompt from 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 + X on keyboard
  • Select Disk Management
  • Delete the partitions related to the Linux OS (leave EFI partition)
  • Press Windows Key + X on 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

Latest Blogposts

How to find a linux machine is a VM (Virtual Machine) or a Bare Metal

If you can SSH into a linux machine and want to find out if its baremetal or Virtual Machine

7 November 2023

Storing Github access token in git credential store

Using git credentials store the github access token to avoid the re-prompting of username and pwd

4 April 2023

Token generation for Registering Self Hosted Github Runner via REST API

Explains how to generate a token using github API to be used in turn with Github self hosted runner registration

21 March 2023

Setting up a Self Hosted Github Runner

Explains how to setup a Github self hosted runner and register

20 March 2023

Managing the NodeJS versions on Windows

Node Version Manager (nvm) helps in managing multiple NodeJS versions

13 November 2022

Customizing the Powershell terminal with oh-my-posh

Instructions on customizing the terminal in powershell with oh-my-posh and winget

7 July 2022