Removal of GRUB

2 réponses [Dernière contribution]
niyasc
Hors ligne
A rejoint: 07/12/2011

How can I remove grub boot loader completely and make windows 7 as default OS without any recovery disk?

Rubén Rodríguez
Hors ligne
A rejoint: 12/03/2011

> How can I remove grub boot loader completely and make windows 7 as
> default OS without any recovery disk?

By definition, you can't. If you remove the current boot loader
-whichever it may be-, you need to put a different one in place or
the system will not boot. So, to replace GRUB with the Windows loader,
you need a Windows installation cd, and the other way around.

What you can easily do, though, is set GRUB to load Windows by default,
if that is your concern. There are several graphical configuration
programs for grub you can install for that, like "startupmanager".

Magic Banana

I am a member!

I am a translator!

Hors ligne
A rejoint: 07/24/2010

Without any additional utility, it is not that hard to change the default OS to boot on. It is only about knowing, in GRUB's menu, which line is the one you want to boot on, then editing, with administrators privileges (your password will be prompted), /etc/default/grub:
$ sudo gedit /etc/default/grub
You only have to change the variable GRUB_DEFAULT (it probably is the first one in the file). For instance, if you want to boot, by default, on the third listed OS, it should be GRUB_DEFAULT=3. Then save, exit, and execute:
$ sudo update-grub
At the next restart, the default will be as desired.