Ja mums uz PC vienlaikus ir gan Windows, gan Ubuntu Linux OS, tad būtu nepieciešams sakārtot starta (boot) menu ērtam darbam. Tas, ko GRUB pats izveido - maigi sakot, nav visai ērts, un acij nepavisam nav patīkams.
Situāciju var labot pavisam vienkārši. Darām tā:
1. Katram gadījumam kopējam failu menu.lst
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup
2. Atveram menu.lst ar gedit
gksudo gedit /boot/grub/menu.lst
3. Aizkomentējam liekās title rindas 'memtest' u.c., liekot priekšā (#) simbolu. Rindiņā 'timeout' samazinām menu rādīšanas laiku no 10 uz 3 sek, ar to praksē pilnīgi pietiek. Rindiņā 'default' nosakām, kura OS mums startēsies pēc noklusējuma. Ja default=0, tad primārais būs Ubuntu. Ja default=1, tad Windows.
4. Pārveidojam, ja gribam, 1. un pēdējo (5.) title rindiņu pēc saviem ieskatiem; tās noteiks, ko mēs redzēsim uz ekrāna.
5. Rezultātu saglabājam.
Mans (citiem būs savādāk) fails menu.lst izskatās šādi (vietas taupīšanas nolūkos izgriezta aizkomentētā vidusdaļa):
Code: Select all
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# 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 1
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 3
...........................
...........................
## ## End Default Options ##
title Ubuntu Linux 7.04
root (hd1,5)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=29b3fdd4-264a-4d9c-83a8-a0f562fd839a ro quiet splash locale=lv_LV
initrd /boot/initrd.img-2.6.20-15-generic
quiet
savedefault
#title Ubuntu, kernel 2.6.20-15-generic (recovery mode)
#root (hd1,5)
#kernel /boot/vmlinuz-2.6.20-15-generic #root=UUID=29b3fdd4-264a-4d9c-83a8-a0f562fd839a ro single
#initrd /boot/initrd.img-2.6.20-15-generic
#title Ubuntu, memtest86+
#root (hd1,5)
#kernel /boot/memtest86+.bin
#quiet
### 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/hda1
title Windows XP Professional
root (hd0,0)
savedefault
makeactive
chainloader +1
