Grub2 to Windows default startup on ubuntu 10.04

Grub 2 is the default boot loader on Ubuntu 10.04 Lucid Lynx.
The new grub grub2 is managed dynamically by the program as opposed to the old man was enough to change edit the file / boot / grub / menu.lst.
I have created for you a universal command line to put Windows as the default system boot.
Just open the terminal and give;
sudo mv / etc/grub.d/30_os-prober / etc/grub.d/10_os-prober && sudo mv / etc/grub.d/10_linux / etc/grub.d/20_linux && sudo mv / etc / grub.d / 20_memtest86 + / etc/grub.d/30_memtest86 +
and then;
sudo update-grub2
Now we will see in particular what we did.
The / etc / grub.d contains these files:
00_header 10_linux 30_os-prober README 05_debian_theme 20_memtest86 + 40_custom
From geek doc we realize that each filename is preceded by a number, which is used to grub to sort and its procedures do not conflict.
We are interested in 3 rows (we see them in reading order by grub):
10_linux, who runs the boot of the kernel
20_memtest86 +, manages the boot memory test
30_os-prober, manages to boot other operating systems installed
Now to the point, the code that I have given above allows us to reverse the numbers preceding the names of files, with this result:
10_os-prober
20_linux
30_memtest86 +
I hope I was clear.
To restore it just to enter terminal resistor:
sudo mv / etc/grub.d/10_os-prober / etc/grub.d/30_os-prober && sudo mv / etc/grub.d/20_linux / etc/grub.d/10_linux && sudo mv / etc / grub.d / 30_memtest86 + / etc/grub.d/20_memtest86 +
and
sudo update-grub2

2 Comments »

You can leave a response , or make a trackback from your own site.


2 Responses to "Grub2, make Windows default startup on Ubuntu 10.04"

  1. Top diggita.it says:

    Grub2 to Windows default startup on ubuntu 10.04 ...

    Grub 2 is the default boot loader on Ubuntu 10.04 Lucid Lynx. The new grub grub2 is managed dynamically by the program as opposed to the old man was enough to change edit the file / boot / grub / menu.lst. I have created for you a command line u ...

  2. Top Claudio says:

    Thank you ...
    Simple and effective.

Leave a comment




Your comment:

can not get enough?