marți, noiembrie 07, 2006

Grub si Windows ca default

In urma ( pauza sa schimb foantele la Firefox, ca nu vad nimic ce scriu aici ) .... Asa, parca`i mai bine asa. Deci, in urma cererilor numeroase venite la redactie ( parca pot sa le fac putin mai mari ) ... Perfect. Asa, nu mai repet, zic numai ce vreau sa arat : cum pun Windows-ul sa booteze default daca am grub. Siiiiiiiimplu... Deci :
( daca nu aveti root, puneti un sudo inainte de vim, adica sudo vim /boot/ .. )

root@ciocoflendaru:~# vim /boot/grub/menu.lst

In fisierul ala, cautati 'default 0'. Asta inseamna ca porneste prima intrare din grub, aia fiind Linuxu'. Eu am 7 intrari ( Ubuntu ), deci am pus 'default 6', sa porneasca Windows-ul

# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default 6

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 10


[...]


## ## End Default Options ##

title Ubuntu, kernel 2.6.17-10-386
root (hd0,4)
kernel /boot/vmlinuz-2.6.17-10-386 root=/dev/sda5 ro quiet splash vga=795
initrd /boot/initrd.img-2.6.17-10-386
quiet
savedefault
boot

title Ubuntu, kernel 2.6.17-10-386 (recovery mode)
root (hd0,4)
kernel /boot/vmlinuz-2.6.17-10-386 root=/dev/sda5 ro single
initrd /boot/initrd.img-2.6.17-10-386
boot

title Ubuntu, kernel 2.6.17-10-generic
root (hd0,4)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/sda5 ro quiet splash
initrd /boot/initrd.img-2.6.17-10-generic
quiet
savedefault
boot

title Ubuntu, kernel 2.6.17-10-generic (recovery mode)
root (hd0,4)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/sda5 ro single
initrd /boot/initrd.img-2.6.17-10-generic
boot

title Ubuntu, memtest86+
root (hd0,4)
kernel /boot/memtest86+.bin
quiet
boot

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Windows Vista/Longhorn (loader)
root (hd0,0)
savedefault
makeactive
chainloader +1



P.S. Sper ca va pricepeti cu vim-ul, daca nu, cu 'i' intrati in modul de inserare, cu ESC iesiti din modul inserare, si cu :wq iesiti si salvati fisierul ( write and quit ). Daca nu va impacati bine cu astea, folositi pico, nano, whatever va place.

0 comments:

Trimiteți un comentariu

No, da' să nu înjuraţi!