I have windows XP installed and recently i have installed, in a partition, Linux OS.
Now i have uninstalled the linux OS and removed the partition but when i open my computer, a list appears asking me what OS would i want to work with, Windows or Linux...
How can i remove the selection and get it to boot windows automatically as Linux are removed?

Dani AI

Generated

This is almost always a leftover bootloader issue after removing Linux. is on the right track: the machine is still handing control to the Linux bootloader (or to a leftover Windows boot menu) instead of the native Windows start code. The fix is to identify which boot manager is showing and then restore or edit the Windows boot configuration.

If the screen shows text like "GNU GRUB" or a grub prompt, GRUB is still in the MBR. If it shows "Which operating system would you like to start?" or a plain text list of OS names, that is the Windows/NTLDR menu (XP). For the Windows menu case, remove the stray Linux entry from the boot configuration (edit boot.ini or use msconfig's Boot tab) and set Windows as the default so it boots automatically. For GRUB, overwrite the MBR with Windows' boot code so the PC boots straight into Windows.

Options when doing the repair:

  • Use your Windows XP install CD repair/recovery environment to restore Windows boot code (this is the straightforward method hinted at).
  • If you do not have the CD, a Windows PE or bootable rescue disc (or tools like EasyBCD from inside Windows) can also restore a proper Windows bootloader.
  • From a Linux live image you can repair the MBR or use tools that write a Windows-compatible MBR — do this only if comfortable, and only after backing up the existing MBR.

Precautions: back up important data first and, if possible, save the current MBR to a file before overwriting it. If the system fails to boot after changes, boot from Windows media and use the repair tools to restore startup.

Recommended Answers

All 2 Replies

Boot off your Windows install disk into the recovery console, then run .

thanks ill try it and ill get back to you

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.