How to Remove Linux Boot Loader from Startup After Deleting Linux Partitions?

If you have a dual-boot computer system with Linux and Windows operating systems, you probably know that when you start your computer, it shows Linux boot loader at startup which contains Linux and Windows boot entries. If you select Windows from the OS list, it starts Windows and if you select Linux, it boots into Linux distro.

Imagine a situation when you want to remove/uninstall Linux from your system and want to use only Windows operating system, how will you do it?

Many times people directly delete or format the hard disk partitions which contain Linux operating system but it doesn't completely remove Linux. The Linux boot loader still appears at system startup but since you deleted Linux partitions, the boot loader gets corrupted and your system becomes unbootable.

If you are also facing this problem or if you have faced this problem in past and could not get a working solution, then this tutorial will definitely help you.

This tutorial will help you in completely removing or uninstalling Linux operating system and its boot loader from a dual-boot computer:

STEP 1: Remove Linux Boot Loader from Startup

Before deleting or formatting Linux partitions, you'll need to remove Linux boot loader from system startup.

You'll need to boot using Windows setup disc. You can use setup disc of any Windows version such as Windows 98, 2000, XP, Vista, 7, 8/8.1 or later.

Using Windows Vista and Later Windows Versions DVD:

Boot using setup disc and DO NOT click on "Install now" button. Look for a link "Repair your computer" present in bottom-left corner of the window, click on it.


It'll open a new window, do not change anything and click on Next button. Now setup will show "System Recovery Options" screen where you can perform startup repair, system restore, etc. Click on "Command Prompt" link given at the bottom of the list.


It'll open Command Prompt window, now run following command:

bootsect /nt60 SYS /mbr

Exit from Command prompt and restart your system.

Using Windows 2000, Windows XP or Windows Server 2003 CD:

Boot using setup disc and enter into "Recovery Console" by pressing "R" key, select your Windows installation and enter Administrator password. If you don't have any password, press Enter key. Now run following command:


Press "Y" to confirm and type Exit to exit from recovery console.

Using Windows 98 CD:

Boot into Command Prompt and run following command:

fdisk /MBR

Exit from command prompt by typing Exit and press Enter.

Above steps will remove the Linux boot loader from startup and you'll directly boot into Windows operating system.

STEP 2: Delete or Format Linux Partitions

Now you can safely delete or format hard disk partitions which contained Linux operating system. You can delete/format them using "Disk Management" tool in Windows as mentioned in following tutorial:

How to Restrict / Hide / Remove Drives in Windows Explorer?

Share this article: Facebook | Twitter | Google+ | Reddit | Tell a friend

Posted in: Troubleshooting, Windows 7, Windows Vista, Windows XP

Other similar articles that may interest you


  • Thanks a lot.

  • hi,

    i don't have the windows 7 CD because am using Sony vaio, On board OS.. so what to do in this situation.
    if i go with any other OS CD can i reuse the On board OS again....


  • If you have a dual-boot system with Linux and Windows, then you probably know that when you start your system first Linux boot loader appears showing Linux as well as Windows boot entries and if you select Windows from the list, it starts Windows.
    Many times people delete the partitions having Linux installed from "Disk Manager" but it doesn't remove Linux completely. The Linux boot loader still appears at start up but since you deleted Linux partitions, the boot loader gets corrupted and your system becomes unusable.
    So if you are also facing this problem or you faced this problem in past and could not get a working solution, then just do re-install the same version of Linux from the CD/DVD's.This is the only option to You. I can follow it and My System is now working properly as dual -boot system. if you find yourself in a similar situation Just Do It.

  • Many blessings to you my friend.

    I love you very much *kisses*
    After the bootrec /fixmbr commands failed.
    I started to panic.

    Thank very much, this one worked instantly.

  • you are the man!
    thank you from athens greece

  • to anish
    i also run into ths problem with sony vaio win 7 and linux
    grub resque appeared
    followed instructions without restore dvd, just an old win7 copy
    it works

  • Thanx u jst saved me

  • When I use a Windows 7 CD to fix my Windows XP-Ubuntu 12.04 MacBook Pro computer's
    grub rescue problem by issuing the following Command Prompt command:

    bootsect /nt52 SYS /mbr (for Windows older than Windows Vista)

    Windows 7 accepts it all right but the same grub rescue problem persists when I restart the computer.


  • i'm having problem with my laptop. The bootmgr is missing after i perfom the bootsec. why is that? my system is 64bit, and win 7 home premium.

  • Thank you! fixmbr did the trick on my win xp system after removing linux using disk manager.

  • Thanx a lot.....
    windows 7 option worked perfectly....

  • Thank you man great job you saved me thanks again

  • You are awesome man. saved my time.
    Thanks alot!

  • Many Many Thank u sir! For save my time. I used dual os linux and windows 7. But i deleted linux partition there after created grub problem. I had used your command and solved it in few moment. Thanks...

  • I purchased laptop HP dv7 with Linux on it, but originaly it was vista? now how can I delit linux and instal windows 2000 or XP.

  • VG

    ^^ Boot using Windows setup disc and delete Linux partitions. Once you install Windows, it'll automatically overwrite Linux boot loader and you'll get rid of Linux.

  • hi
    i have directly install kali linux in my pc there is no other operating system to operate my pc and i want to uninstall kalilinux and install win 7

    so,how i do it

  • VG

    ^^ Boot using Windows 7 setup disc and delete Linux partitions and install Windows 7. It'll automatically remove Linux boot loader and you'll have a Windows 7 computer.

  • This method works like charm, at least with my ubintu+Win 7 combo
    Thanks and respect

  • In Windows 8.1, the correct thing to enter at the command prompt (in the black box) is:
    bootrec.exe /FixMbr not what's up above.

  • Thanks sachin


  • @Surajit Mondal,

    You must be booted in Windows 8.1 first.

    In UEFI mode, open a command prompt as administrator, and type in without quotes "bcdedit /set {bootmgr} \EFI\Microsoft\Boot\bootmgfw.efi" and press enter. Note that as far as I know, you can no longer boot in Linux.

    In BIOS mode, I don't know. You can try following the steps described in the tutorial.

  • Thanks a lot. Worked 100%.

  • thanks verymach

  • Thank you!! this just saved my behind!
    I just had to borrow windows CD from someone and it worked like a charm.

  • Thanks. Its works.

  • I deleted ubuntu before that grub my computer stuck in grub menu.please help me..

  • VG

    ^^ Just follow the instructions. Boot using Windows setup disc and run the commands.

  • my pc is initially installed with the RHEL-6 now i am trying to install the windows OS to my PC it was not working, the bootable cd is loading while it comes to windows logo the PC start Restating
    what i have to do for please help me.

  • its nice thank you so much

  • thank you it working

  • Thanks. It's work for me....

  • Hi, Since I have deleted linux partition on my dual boot notebook, error 17 occurred. I managed to follow your instructions upto "x:\windows/system32/bootsect /nt60 SYS" and "x:\windows/system32/mbr" and made the system to boot windows7 only. But my trouble is as I inserted installation disc (USB) and hit boot over ride the annoying "linux" menu appeared. HOW SHOULD I REMOVE THIS LOADER MENU??? If I press power on bottom and leave the system, it boots to normal window as I stated above.

  • VG

    ^^ I didnt understand your problem. Please provide more clear details.

  • Thanks to your instructions now I have removed Linux boot loader successfully. I used "bootsect /nt60 SYS /mbr" and "bootrec.exe/FixMbr". Thanks a lot.

  • will this method completely format my window ...if yes then is there any way by which I can save my data ...

  • VG

    ^^ No. It'll not format Windows. It'll only remove Linux boot loader from startup.

  • I used "bootsect /nt60 SYS /mbr".

    Its works !

  • In my lap having dual is...but unfortunately I have dltd tha Linux my lap is stuck by...Grub loading.
    Error: unknown file system..... How to boot my another os or boot windows 7by usb

  • Worked perfectly! THANK YOU!

  • Does this work with Windows 8.1?

  • VG

    ^^ Of course.

  • my pc had win 7 and kalilinux. now i want to install winxp. but when i insert bootable pen drive its not boot from this. it always start with grub loader and start window or linux .
    so how to boot from usb
    i changed boot order from bios but not working.

  • VG

    ^^ Then it seems your USB drive was not made bootable properly. You can try various freeware to create bootable USB drive:

  • Excellent buddy...

    Finally i'm able to fix my issue. Thanks a TON

  • As my beilef I deleted my partiton conataining Linux. but grub stayed there.
    So with the references, I re-installed the OS back again,
    But the problem is that now the windows metro boot loader shows THREE os,
    1. Windows 10
    2. Linux mint
    3. Linux mint
    where 2 & 3 points to the same !!
    Thanks in advance

  • VG

    ^^ First remove Grub bootloader and then format Linux partitions. It should automatically remove linux entries from Windows boot loader.

  • Please help i deleted the partition of kali Linux, via magic partition,..
    And i can log in to win 7 , as it was dual boot with kali.

    and i see this if on my laptop
    GRUB loading.
    Welcome ot DRUB'

    ERROR : no such partation.
    Entering rescue mode...
    grub rescue> _

    Please help to proceed further...

  • VG

    ^^ You just need to run the above mentioned commands by booting your computer with Windows setup disc.

  • choose an operating system to start ,, i wana remove this,..

    Debain GNU/Linux - Continue with install process


  • i was unable to boot after deleting my debian linux partition and with this AMAZING comand bootsect /nt60 SYS /mbr my boot load comeback! Thank you VG! You are great!

Leave a Comment