Fórum Ubuntu CZ/SK
Ostatní => Archiv => Téma založeno: snop 05 Října 2006, 21:57:35
-
Ked mate nekdo nainstalovany win i linux prilepte mi sem nekdo tento subor /boot/grub/menu.lst.
-
ta cast s win vyzera preto tak ako vyzera lebo je na druhom disku, bolo to myslim niekde tu na fore.
timeout 3
default 0
title Ubuntu, kernel 2.6.15-27-k7
root (hd0,1)
kernel /boot/vmlinuz-2.6.15-27-k7 root=/dev/hda2 ro quiet splash
initrd /boot/initrd.img-2.6.15-27-k7
savedefault
boot
title Ubuntu, kernel 2.6.15-27-k7 (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.6.15-27-k7 root=/dev/hda2 ro single
initrd /boot/initrd.img-2.6.15-27-k7
boot
title Ubuntu, kernel 2.6.15-27-386
root (hd0,1)
kernel /boot/vmlinuz-2.6.15-27-386 root=/dev/hda2 ro quiet splash
initrd /boot/initrd.img-2.6.15-27-386
savedefault
boot
title Ubuntu, kernel 2.6.15-27-386 (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.6.15-27-386 root=/dev/hda2 ro single
initrd /boot/initrd.img-2.6.15-27-386
boot
title=Windows XP
rootnoverify (hd1,0)
map (hd1) (hd0)
map (hd0) (hd1)
chainloader +1
title Ubuntu, memtest86+
root (hd0,1)
kernel /boot/memtest86+.bin
boot
-
Tak tady to je. Prvně jsem instaloval win a potom Kubuntu.
# 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=/dev/sda2 ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,1)
## 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
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery mode) 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.15-27-386
root (hd0,1)
kernel /boot/vmlinuz-2.6.15-27-386 root=/dev/sda2 ro quiet splash
initrd /boot/initrd.img-2.6.15-27-386
savedefault
boot
title Ubuntu, kernel 2.6.15-27-386 (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.6.15-27-386 root=/dev/sda2 ro single
initrd /boot/initrd.img-2.6.15-27-386
boot
title Ubuntu, kernel 2.6.15-26-386
root (hd0,1)
kernel /boot/vmlinuz-2.6.15-26-386 root=/dev/sda2 ro quiet splash
initrd /boot/initrd.img-2.6.15-26-386
savedefault
boot
title Ubuntu, kernel 2.6.15-26-386 (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.6.15-26-386 root=/dev/sda2 ro single
initrd /boot/initrd.img-2.6.15-26-386
boot
title Ubuntu, memtest86+
root (hd0,1)
kernel /boot/memtest86+.bin
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 Microsoft Windows XP Professional
root (hd0,0)
savedefault
makeactive
chainloader +1
-
jo diky..uz mam co potrebuji zajimalo mne presne toto
# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root:)
-
Stacilo se zeptat, jak se udela divider (oddelovaci radek).
-
Ja mám winXP na fyzickom hdd nastavenom ako slave a kubuntu na fyzickom hdd nastavenom na master. Grub je nainštalovaný na master hdd, preto mi neukáže ponuku windows a automaticky spusti kubuntu. Nahodiť winXP som sa pokúsil tak, že som prepísal súbor /boot/grub/menu.lst pomocou kate tak ako ste to popísali - vložil som do neho toto:
title=Windows XP
rootnoverify (hd1,0)
map (hd1) (hd0)
map (hd0) (hd1)
chainloader +1
ale nepomohlo to. Môžem sa spýtať, ako na to? Som začiatočník
-
Toz to nevim...mas tam nastavenej timeout? Standardne sice nastavenej je, ale co ja vim :) ...
-
poslete sem nejlepe cely vypis menu.lst
-
Takto som to prepísal:
# 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 3
## 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=a23b6930-9160-470a-8f6a-38490a088a43 ro
# kopt_2_6=root=/dev/hda3 ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,2)
## 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
## 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.17-10-generic
root (hd0,2)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hda3 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,2)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hda3 ro single
initrd /boot/initrd.img-2.6.17-10-generic
boot
title=Windows XP
rootnoverify (hd1,0)
map (hd1) (hd0)
map (hd0) (hd1)
chainloader +1
title Ubuntu, memtest86+
root (hd0,2)
kernel /boot/memtest86+.bin
quiet
boot
### END DEBIAN AUTOMAGIC KERNELS LIST
-
hiddenmenu -> #hiddenmenu
timeout 3 -> timeout 10
-
Pomohlo, už mi nabehne výber aj s winXP, ale po vybere windowsu mi naskočí chybové hlásenie:
NTLDR chyba
Restartujte slačením ctrl alt del
Čo s tým?
Ďakujem
-
Nepíše to NTLDR ještě něco víc?
protože NTLDR errorů je spousta...
-
Nie nepíše nič iné. Čo by tomu mohlo byť?
-
1. Sezente si foppy image quick boot XP, nakopirujte to na disketu, nabootujte do win$
2. Klinete v Ubuntu na Mista/sda1/ Kdyz tam soubor NTLDR vidite, mate to spravne zapsane v GRUB a nefunguje to ani tak, soubor je poskozeny. Chce to spustit opravu z CD nebo jiny fix. Ten ale jak jinak znici GRUB. Pak pouzijte jeden z mnoha navodu na opravu GRUB. Pak to bude fungovat.
3. Kdyz na sda1 NTLDR neni, hledejte na sda2, 3.... a samo. nastavte spravny disk (cestu) v GRUB.
-
Ďakujem, pôjdem to vyskúšať.
-
Ešte jedna otázka. Pozeral som na oboch hdd ale na žiadnom som nenašiel súbor NTLDR. Znamená to, že mám zle nakonfigurovaný grub?
-
Soubor NTLDR by se mel nachazet v rootu oddilu s Windows. Tento soubor nijak nesouvisi s konfiguraci GRUBu, jedna se o zavadec MS Windows 2000/XP.
-
Lenže on tam nieje (mám nastavené zobrazenie skrytých súborov). Ako ho tam dostanem?
-
http://support.microsoft.com/kb/320397/cs
Sakra lidi pouzivejte google !!!
-
Ďakujem veľmi pekne, už to ide. Nakoniec som to opravil tak, že som spustil winxp bootovacie cd, stlacil som "r" aby som sa dostal do "repair modu" tam som stlacil 1 aby som sa dostal do stareho windows. Potom som skopíroval subory ntldr a ntdetect.com na hdd s windowsom a je to. Navod som našiel na adrese: http://www.computerhope.com/issues/ch000465.htm "- pre winXP users".
Mrzí ma, že som vás toľko otravoval. Chcem vám poďakovať za trpezlivosť.
S pozdravom a prianím pekného dňa
Milan Opáth
-
to lukas.svoboda:
Lukáši, prosím tě, dopiš ještě do názvu vlákna NTLDR, při hledání se to může hodit
-
lukas.svoboda:
No fuj, odkazy z Microsoft support :D...
BTW: Kdyby vsichni pouzivali google, tak je tady docela prazdno, protoze vetsinou vsechno, co tady kdo poradi, lze najit v googlu. Naopak to co tam najit nelze, na to tady odpoved vetsinou nikdo nedostane :)
Kazdopadne nenutil bych tak moc k pouzivani googlu, stacilo by vyhledavani tady ve foru. Naopak tim, ze sem nekdo da dotaz (dobre polozenej, s dobrym nadpisem) vlastne pomaha tem, co neumej anglicky (tragedie) a tim padem ani googlovat (dalsi tragedie) a muzou si to najit tady...horsi ale je, kdyz je tady ten dotaz polozenej uz 20x, to je v tom pak peknej bordel :)
-
Ne ne nutit ne.. Jde o pristup.. Proc bez ochkani nepostnout link na vlakno kde se to resilo + klicove slovo ktere to (napr. zde) "najde"?, kdyz uz nemohu? cloveka alespon nastartovat.. Ozvlast kdyz nekdo nevi co nema a ma hledat.. Toto osobne chapu lepe jako "bez a hledej.."
Nechapu nac zakladat forum a pak lidi v nem posilat na google.. nebo vyvolavat v lidech pocit, ze obtezujou.
Stejne se nikdy neprestanou ptat.. a ne kazdy chape a umi cist tak jako profi uzivatel..
Asi je (stejne) tezke pochopit, ze kdyz chce Peta 13 hrabnout do bootloaderu, pomuze mu prosty zajem vic nez nezajem.
Kdo pred lety psal a ptal se sam, na to extremne brzo zapomene. Pravidlo? :-)
Kazde vlakno jde smazat, zmoderovat, spojit..
-
Mozna by taky bylo ok, vyresit to treba jako linuxquestions.org
1) Maj tam pri delani novyho threadu napsany takovy mensi pravidla jak se to dela...
Bad: "Help Me!!" or "URGENT"
Good: "Why is my mouse pointer wrong?"
Best: "Mouse pointer distorted on XFree86 4.3 with Geforce FX 5200"
2) Uz pri vytvareni threadu tam je tlacitko vyhledavani, ktery rika neco ve smyslu: "nez to tema zalozis, tak sem klikni, treba uz to nekdo resil :D "
Nechci tohle forum kritizovat, naopak je super, jen treba ty linuxquestions.org jsou trochu napred...:)