Delete Grub and OpenSuse but keep Windows 7
Solution 1
OK I managed to solve my problem.
I chose to repair my computer, then chose to let Windows to it all automatically. By choosing the first option. It worked. Strangely it didn't work before when using bootrec tool when it should. Thanks anyway. :)
Solution 2
From Microsoft's support article 927932
To run the Bootrec.exe tool, you must start Windows RE. To do this, follow these steps:
- Put the Windows Vista or Windows 7 installation disc in the disc drive, and then start the computer.
- Press a key when you are prompted.
- Select a language, a time, a currency, a keyboard or an input method, and then click Next.
- Click Repair your computer.
- Click the operating system that you want to repair, and then click Next.
- In the System Recovery Options dialog box, click Command Prompt.
- Type Bootrec.exe, and then press ENTER.
Options are listed on the weblink.
bootrec /fixmbr
bootrec /fixboot
bootrec /rebuildbcd
If the command bootrec /fixboot
returns with message
The volume does not contain a recognized file system. . . . ."
Run the following command
diskpart
listvol
sel vol c <===== make sure C:\Windows exists
act
exit
bootrec /fixboot
bootrec /rebuildbcd
Related videos on Youtube
elvispt
Updated on September 17, 2022Comments
-
elvispt over 1 year
I have OpenSuse installed alongside Windows 7. Grub is the boot loader from where I access OpenSuse and Windows 7.
I want to delete Grub and also the OpenSuse partitions.
My first, failed, approach was to insert the Win7 DVD, choose Repair your computer and then enter the commmand prompt. I then typed "bootrec /fixmbr" and restarted. It didn't worked. Grub was still there, so was Windows7. I then tried using "bootrec /fixboot and /rebuildbcd and neither worked.
So what can I do to fix this? I remember when I was using WinXP this was much simpler. I would just type fixmbr and that was it.
Any clues?
-
elvispt over 14 yearsThat doesn't help because GRUB takes over the boot, and I can't choose which OS to repair. It can't "see" Windows 7. I need to delete Grub2.