Remove xp or ubuntu from dual boot in windows 7

October 12th, 2011

If you install your windows 7 dual boot with windows xp or ubuntu and you want to remove xp or ubuntu now,you can use bcdedit to remove xp or ubuntu from boot loader of windows 7,then remove the OS folders even format the partition (Please backup useful data before removing / formating action).Below is a step by step guide to remove xp or ubuntu from dual boot in windows 7

1.Open an Elevated Command Prompt in windows 7    (Go to StartAll Programs – Accessories, then right click Command Prompt and click on Run as administrator)

2.Type command bcdedit then press Enter ,we can see the identifier of xp is {ntldr} ,the same way you can find your ubuntu’s identifier

3.Using below command to remove xp or ubuntu from your boot loader

bcdedit /delete {identifier} /f

Eg:
a) Remove xp from dual boot in windows 7

bcdedit /delete {ntldr} /f


b)Remove ubuntu from dual boot in windows 7

bcdedit /delete {identifierofubuntu}

4.Reboot,you will find xp or ubuntu has been removed from boot loader,and then you can format xp’s or ubuntu’s parition to remove it completely.

Note:Please make sure you have backup all useful data before formatting the partition

2 Responses to “Remove xp or ubuntu from dual boot in windows 7”

  1. adril bari nursalam says:

    TY

    Seep n Work.. ^_^

  2. Faris B says:

    hi thank you for the good job

    i have question. i have installed ubuntu and then uninstalled it, and now i’m trying to recover my laptop to factory settings, but when i clicked alt + f10 i got this

    http://s24.postimg.org/4qyw48r4l/20150801_180555.jpg

    and i don’t know if your method will help me but let me show you when i enter bcdedit:

    http://s7.postimg.org/4qo0c0ox7/fff.png

    what do you think i should do?

Leave a Reply