Fórum Ubuntu CZ/SK
Ubuntu pro osobní počítače => Obecná podpora => Téma založeno: Microo 09 Prosince 2007, 17:08:17
-
Cafte... spravil som si pekne GRUB menu podla navodu:
http://www.zapisnicek.info/2006072601-kodenie-a-linux-ubuntu-a-gfxboot-alebo-grub-v-style-suse.html (http://www.zapisnicek.info/2006072601-kodenie-a-linux-ubuntu-a-gfxboot-alebo-grub-v-style-suse.html)
spominane je to aj v teme:
http://forum.ubuntu.cz/index.php?topic=2548.0 (http://forum.ubuntu.cz/index.php?topic=2548.0)
Pekne to bezi a je to fakt elegantne. No problem je ten ze uz pred tym som mal problem s bootovanim WinXP.
Ale pomohlo mi pridanie:
title Windows XP Professional
root (hd0,0)
makeactive
chainloader +1
No teraz ked v GRUBe vyberiem WinXP len akoby sa restartovalo GRUB menu. nechce mi nabootovat z tej particie.
pomozte mi prosim...vopred dik :P
-
Tak nikto mi nevie poradit? Ludia...musim to rychlo porobit. nemozem si dobvolit nefunkcnost.
-
A zkoušel jsi tam dát to původní nastavení grubu?
A to sa ako robi? takto?:
sudo update-grub
lebo to som teraz vyskusal, ale len mi to vsetko vymazalo a je to tak ako to bolo na zaciatku. Len namiesto Ubuntu tam mam Debian GNU/Linux, kernel 2.6.22-14-generic. Pridal som tam znovu to co som mal tam pred tym a robi toto to iste.
-
No spravil som to, ale teraz vypisal Error18...neviem co to je
-
pokud to potrebujes napriklad kvuli rodine aby mohli jit do winu tak si z CD od winu obnov MBR a BOOT, bude tam windowsackej zavadec a pak az zase budes moct jit na PC ty tak si to z lajv ceda treba Kubuntu oprav ;)
-
Nevim jestli to muze necemu pomoct, ale pridavam svuj /boot/grub/menu.lst:
default 0
timeout 5
gfxmenu /new.menu
## ## End Default Options ##
title Debian lenny, 2.6.23-9
root (hd0,7)
kernel /2.6.23.9/bzImage root=/dev/hda5 ro loglevel=3 init=/sbin/bootchartd
title Debian lenny, 2.6.22-3 (failsafe)
root (hd0,7)
kernel /vmlinuz-2.6.22-3-686 root=/dev/hda5 ro single
initrd /initrd.img-2.6.22-3-686
savedefault
### 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 MS Windows
root (hd0,0)
savedefault
makeactive
chainloader +1
Funguje tam i bootovani do XP i gfxboot.
Akorat si samozrejme musite zkontrolovat pomoci vypisu souboru /etc/fstab jestli je spravne ten radek root (hdx,y).
-
pokud to potrebujes napriklad kvuli rodine aby mohli jit do winu tak si z CD od winu obnov mbr a boot, bude tam windowsackej zavadec a pak az zase budes moct jit na pc ty tak si to lajv ceda treba kubuntu oprav ;)
Jak sa obnovuje z CD win MBR? Take som este nerobil? A mam MBR ked na win mam FAT32?
-
MBR mate urcite. Opravit by to melo jit takto:
Kdyz nabiha instalacka XP tak na chvili ve spodnim radku naskoci neco jako Stisknete F2 - Konzole zotaveni. Samotna oprava bootovaciho sektoru se pak provadi prikazem fixboot a oprava MBR (necekane) prikazem fixmbr.
Kazdopadne ja mam s temito prikazy jenom tu nejhorsi zkusenost - driv me oddelali celou tabulku oddilu. Takze preju vic stesti ;)
Jo a jinak todle tema uz asi nepatri do Ubuntu fora.
-
MBR mate urcite. Opravit by to melo jit takto:
Kdyz nabiha instalacka XP tak na chvili ve spodnim radku naskoci neco jako Stisknete F2 - Konzole zotaveni. Samotna oprava bootovaciho sektoru se pak provadi prikazem fixboot a oprava MBR (necekane) prikazem fixmbr.
Kazdopadne ja mam s temito prikazy jenom tu nejhorsi zkusenost - driv me oddelali celou tabulku oddilu. Takze preju vic stesti ;)
Jo a jinak todle tema uz asi nepatri do Ubuntu fora.
No konecne som si na to nasiel cas. napisal som tam fixboot aj fixmbr, ale teraz mi pri spusteni pocitaca vypise len "Disk error, press any key..., Insert bootable disk and press ENTER."
uz ani GRUB neide. Co s tym?
-
Pokud nepomohla obnova grubu z win tak budes muset z Linuxu. Najdi si na wiki clanek: Obnova GRUB po instalaci Windows
Podle toho clanku postupuj. Az si obnovis GRUB aspon pro Ubuntu tak sem hod vypis prikazu
sudo fdisk -l
a pak jeste ten cat /boot/grub/menu.lst
-
Pokud nepomohla obnova grubu z win tak budes muset z Linuxu. Najdi si na wiki clanek: Obnova GRUB po instalaci Windows
Podle toho clanku postupuj. Az si obnovis GRUB aspon pro Ubuntu tak sem hod vypis prikazu
sudo fdisk -l
a pak jeste ten cat /boot/grub/menu.lst
fdisk -l:
Disk /dev/sda: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000e000e
Device Boot Start End Blocks Id System
/dev/sda1 * 1 4462 35840983+ c W95 FAT32 (LBA)
Partition 1 does not end on cylinder boundary.
/dev/sda2 4463 9964 44194815 f W95 Ext'd (LBA)
Partition 2 does not end on cylinder boundary.
/dev/sda5 4463 4501 313236 82 Linux swap / Solaris
/dev/sda6 4502 9964 43881516 83 Linux
menu.lst:
micro@micro-PC:~$ cat /boot/grub/menu.lst
# 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 use 'savedefault' or your
# array will desync and will not let you boot your system.
default 3
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 15
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu
# Pretty colours
color white/blue cyan/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=eb640f5d-d26b-4d93-aef6-a7764669955f ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,5)
## 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 locale=sk_SK vga=791
## 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
gfxmenu /boot/grub/message.blusplash
## ## End Default Options ##
title Ubuntu GNU/Linux, kernel 2.6.22-14-generic
root (hd0,5)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=eb640f5d-d26b-4d93-aef6-a7764669955f ro quiet splash locale=sk_SK vga=791
initrd /boot/initrd.img-2.6.22-14-generic
boot
title Ubuntu GNU/Linux, kernel 2.6.22-14-generic (recovery mode)
root (hd0,5)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=eb640f5d-d26b-4d93-aef6-a7764669955f ro single
initrd /boot/initrd.img-2.6.22-14-generic
boot
title Ubuntu GNU/Linux, kernel memtest86+
root (hd0,5)
kernel /boot/memtest86+.bin
boot
### END DEBIAN AUTOMAGIC KERNELS LIST
title Windows XP Profesional
root (hd0,0)
savedefault
makeactive
chainloader +1
-
Ted si nejsem jist kde mas win ale predpokladam ze to bude C:a sda1. Takze nahradte konec souboru menu.lst konkretne toto:
### END DEBIAN AUTOMAGIC KERNELS LIST
title Windows XP Profesional
root (hd0,0)
savedefault
makeactive
chainloader +1
timto (zmena oznaceni oddilu root hd0,0 -> hd0,1):
### END DEBIAN AUTOMAGIC KERNELS LIST
title Windows XP Profesional
root (hd0,1)
savedefault
makeactive
chainloader +1