Почетак › Форуми › Линукс › Линукс форе & фазони › Grub loader [sređeno]
- This topic has 8 одговора, 4 гласа, and was last updated 19 years раније by
starac focho.
-
АуторЧланци
-
2. август 2007. у 2:18 pm #8934
starac focho
Учесник. Instalisani su OS:XP,VISTA i UBUNTU 7.04.Kako da promenim redosled (listu) za podizanje OS iz GRUB loadera?Da redosled bude kao što je navedeno, a ne obratno.
2. август 2007. у 2:32 pm #58681RiSK
УчесникMislis na redosled stavki u meniju GRUBa?
Ako na to mislis, podignu Ubuntu i kao root otvori svojim omiljenim editorom fajl
/boot/grub/menu.lst (npr. `sudo gedit /boot/grub/menu.lst` iz shella)
Tu imas spisak stvaki koje se nalaze u meniju. Svakos stavki odgovara blok naredbi. Za Ubuntu ces imati nesto tipa
[php]title Ubuntu
root (disk,particija)
kernel /boot/kako_se_zove
initrd /boot/kako_se_zove[/php]Za windows imas unose tipa
[php]title Windows
root (disk,particija)
makeactive[/php]Moguce je da ima jos po neka komanda. Sve sto treba da uradis je da izmenis redoslede ovim blokovima. Pazi sve komande iz jednog bloka ostanu jedna za drugom.
Znaci samo nekoliko cut/paste da ih poredjas u redosled koji ti odgovara. Sacuvaj izmene, i posle reboota ce biti u tom redosledu.Jesi li razumeo sta sam hteo da ti kazem? Ako nisi, zalepi ‘vamo /boot/grub/menu.lst pa ce da ga prepravimo zajedno 😉
2. август 2007. у 3:01 pm #58682starac focho
Учесник# 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 0## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 10## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu# Pretty colours
#color cyan/blue white/blue## password [‘–md5’] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command ‘lock’
# e.g. password topsecret
# password –md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
##
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=4ab336ba-b74a-4592-8bf8-394ad167b4f9 ro## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,6)## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false## Xen hypervisor options to use with the default Xen boot option
# xenhopt=## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false## ## End Default Options ##
title Ubuntu, kernel 2.6.20-16-generic
root (hd0,6)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=4ab336ba-b74a-4592-8bf8-394ad167b4f9 ro quiet splash
initrd /boot/initrd.img-2.6.20-16-generic
quiet
savedefaulttitle Ubuntu, kernel 2.6.20-16-generic (recovery mode)
root (hd0,6)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=4ab336ba-b74a-4592-8bf8-394ad167b4f9 ro single
initrd /boot/initrd.img-2.6.20-16-generictitle Ubuntu, kernel 2.6.20-15-generic
root (hd0,6)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=4ab336ba-b74a-4592-8bf8-394ad167b4f9 ro quiet splash
initrd /boot/initrd.img-2.6.20-15-generic
quiet
savedefaulttitle Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root (hd0,6)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=4ab336ba-b74a-4592-8bf8-394ad167b4f9 ro single
initrd /boot/initrd.img-2.6.20-15-generictitle Ubuntu, memtest86+
root (hd0,6)
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/sda1
title Windows Vista/Longhorn (loader)
root (hd0,0)
savedefault
makeactive
chainloader +12. август 2007. у 3:04 pm #58683starac focho
УчесникP.S Umesto ovih “smajlija“ su brojevi 8
2. август 2007. у 3:28 pm #58684kosmi
Учесникhttp://www.getdeb.net/ startupmanager :p
2. август 2007. у 3:31 pm #58685RiSK
Учесник# menu.lst – See: grub(Cool, info grub, update-grub(Cool
# grub-install(Cool, grub-floppy(Cool,
# 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 0## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 10## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu# Pretty colours
#color cyan/blue white/blue## password [‘–md5’] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command ‘lock’
# e.g. password topsecret
# password –md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
##
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=4ab336ba-b74a-4592-8bf8-394ad167b4f9 ro## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,6)## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false## Xen hypervisor options to use with the default Xen boot option
# xenhopt=## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false## ## End Default Options ##
title Windows Vista/Longhorn (loader)
root (hd0,0)
savedefault
makeactive
chainloader +1title Ubuntu, kernel 2.6.20-16-generic
root (hd0,6)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=4ab336ba-b74a-4592-8bf8-394ad167b4f9 ro quiet splash
initrd /boot/initrd.img-2.6.20-16-generic
quiet
savedefaulttitle Ubuntu, kernel 2.6.20-16-generic (recovery mode)
root (hd0,6)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=4ab336ba-b74a-4592-8bf8-394ad167b4f9 ro single
initrd /boot/initrd.img-2.6.20-16-generictitle Ubuntu, kernel 2.6.20-15-generic
root (hd0,6)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=4ab336ba-b74a-4592-8bf8-394ad167b4f9 ro quiet splash
initrd /boot/initrd.img-2.6.20-15-generic
quiet
savedefaulttitle Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root (hd0,6)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=4ab336ba-b74a-4592-8bf8-394ad167b4f9 ro single
initrd /boot/initrd.img-2.6.20-15-generictitle Ubuntu, memtest86+
root (hd0,6)
kernel /boot/memtest86+.bin
quiet### END DEBIAN AUTOMAGIC KERNELS LIST
–nema veze za te smajlije. Sve sto pocinje sa # je komentar.
E, sad, ovde imas samo jedan unos za Windows, ne dva kako sam ja razumeo.
Ovo gore je prepravljen fajl. Pre nego sto ga prekopiras, napravi back-up starog za svaki slucaj 😉
Sa ovim:
`sudo cp /boot/grub/menu.lst /boot/grub/menu.lst.bak`3. август 2007. у 8:38 am #58686starac focho
УчесникOK. Hvala. Ima 2 Windowsa.VISTA je instalisana nakon XP i ima svoj ‚‚loader‚‚.
title Windows Vista/Longhorn (loader)
root (hd0,0)
savedefault
makeactive
chainloader +13. август 2007. у 6:03 pm #58687burga
УчесникАко хоћеш само да промениш подразумевани ОС, стави одговарајући број у
[code]default #[/code]
при чему само водиш рачуна да први на списку има редни број 0.
Мени је редослед:
Федора
Убунту
ХР
мемтеста подиже ми се Убунту (default 1)
ПС.
Кад смо код тога шта се коме диже, жали се линуксаш пријатељу
– Не диже ми се…
– Па јеси ли пробао failsafe?
– Ма јесам, и даље ми се не диже…
😉5. август 2007. у 3:41 pm #58688starac focho
УчесникJoš samo ovo. Na predloženom sajtu http://www.getdeb.net pronašao sam programčić Strat-up manager
sa kojim se Grub loader može odlično podesiti ( uz oprez ). -
АуторЧланци
Мораш бити пријављен да би поставио коментар у овој теми.