Ubuntu Suomen keskustelualueet
Ubuntun käyttö => Asentaminen ja käyttöönotto => Aiheen aloitti: Jyrki L - 15.05.10 - klo:08.55
-
Pystyykö Grub2:n oletuskäynnistysrivin vaihtamaan jotenkin? vanhalla grubillahan se onnistui muokkaamaalla tiedostoa.
-
Kokeile start-up manageria.
-
Kokeile start-up manageria.
Tai sitten muokkaamalla tiedostoa. /etc/default/grub ja sieltä rivi
GRUB_DEFAULT=0
Tuon numero määrittää mones rivi käynnistyy oletuksena, hassua vain
etteivät ole tuota muuttaneet niin, että ensimmäinen on 1, toinen 2 vaan edelleen 0 on ensimmäinen, 1 on toinen jne. Tuossa voi myös käyttää arvoja saved ja koko nimitystä jollekin käynnistysoptiolle, mutta se on aina sama kernelin versio. Windowsin tai ketjulatauksen kohdalla se ei tietenkään haittaa.
http://ubuntuforums.org/showthread.php?t=1195275
GRUB_DEFAULT - Sets the default menu entry. Entries may be numeric or "saved"
- GRUB_DEFAULT=0 - Sets the default menu entry by menu position. As Grub Legacy, the first "menuentry" in grub.cfg is 0, the second is 1, etc.
- GRUB_DEFAULT=saved - (Grub 1.98) Enables the "grub-reboot" and "grub-set-default" commands.
- This setting allows the use of the following commands to set a default OS. The default OS will not be set merely by an interactive selection of an OS from the menu.
- grub-set-default. Sets the default boot entry until changed.
- The format is "sudo grub-set-default X, with X being the menuentry position (starting with 0 as the first entry) or the exact menu string. Examples: sudo grub-set-default 3 or sudo grub-set-default "Ubuntu, Linux 2.6.32-15-generic"
- To obtain the existing menuentry choice number (starting from 0) or the menuentry "string", run "grep menuentry /boot/grub/grub.cfg"
- grub-reboot. This command sets the default boot entry for the next boot only. The format of the command is the same as for "grub-set-default" (see above).
- For an example of how to enable the "saved" option with a custom menu, see the "Custom User Entries" section.
- GRUB_DEFAULT="xxxx" - An exact menu entry, including the quotation symbols, may also be used. In this case, location in the menu will not matter. Example: GRUB_DEFAULT="Ubuntu, Linux 2.6.31-9-generic"
Lainaus saattaa näyttää vähän hassulta, mutten jaksanut tapella listan kanssa enempää.
Lopuksi pitää komentaa sudo update-grub, jotta muutokset tulevat myös /boot/grub/grub.cfg-tiedostoon ja vaikuttavat.
PS. Kyllä sitä StartUpManageriakin kannattaa kokeilla jos ei välttämättä halua asetustiedostoja muokata tai halua olla asentamatta mitään "ylimääräistä".
Muokkaus: Piti vielä siivota sotkua listojen kanssa. Ei taida tulla hyväksi, mutta ihan sama.[/list]
Muokkaus: Lisäsin pätkän update-grubista. Kiitos huomautuksesta kuutiolle ja ubu hui:lle, koska sitä ei ehkä olisi muuten huomattu.
-
Tuotahan ei ole tarkoitettu muokattavaksi:
# The main menu file, ''/boot/grub/grub.cfg'' is not meant to be edited, even by 'root'.
# ''grub.cfg'' is overwritten anytime there is a update, a kernel is added/removed or the user runs `update-grub` *
Tosin ei ole ensimmäinen kerta jos olen väärässä :P
-
Tuotahan ei ole tarkoitettu muokattavaksi:
# The main menu file, ''/boot/grub/grub.cfg'' is not meant to be edited, even by 'root'.
# ''grub.cfg'' is overwritten anytime there is a update, a kernel is added/removed or the user runs `update-grub` *
Tomppelin ohje ei muokkaa suoraan "/boot/grub/grub.cfg" tiedostoa vaan "/etc/default/grub" tiedostoa, jossa noita grubin asetuksia pääsee käpistelemään. update-grub komennolla tehdään sitten uusi grub.cfg asetusten mukaan.
-
Tuotahan ei ole tarkoitettu muokattavaksi:
# The main menu file, ''/boot/grub/grub.cfg'' is not meant to be edited, even by 'root'.
# ''grub.cfg'' is overwritten anytime there is a update, a kernel is added/removed or the user runs `update-grub` *
Tomppelin ohje ei muokkaa suoraan "/boot/grub/grub.cfg" tiedostoa vaan "/etc/default/grub" tiedostoa, jossa noita grubin asetuksia pääsee käpistelemään. update-grub komennolla tehdään sitten uusi grub.cfg asetusten mukaan.
Joo juurikin niin. Piti mainita tuo update-grub, mutta unohtui. :)
-
Toimii hienosti kiitoksia. Tein sen tiedostoa muokkaamalla, Siksi että grub on 9.10 ubuntun asentama. eikä mulla ole siihen sitä alternate-cd levyä, josta tuo startup-manager kai piti löytyä.