Fórum Ubuntu CZ/SK
Ubuntu pro osobní počítače => Instalace, aktualizace a spouštění => Téma založeno: mafeeu 01 Června 2009, 21:07:23
-
Hezký den, hrál sjem si s GRUBem, přidal jsem pozadí barvy. Bylo to krásné až na to že se mi místo linuxu ted zobrazují jakési znaky a jde spustit pouze Windows. Pokoušel jsem se o obnovu GRUBu podle WIKI, to ale nepomohlo, grub totiž funguje, špatně ukazuje na linux
Děkuji za pomoc
Martin
-
Ukaž výpisy z
cat /boot/grub/menu.lst | egrep -v '^#|^$' a sudo fdisk -l
-
ubuntu@ubuntu:~$ cat /boot/grub/menu.lst | egrep -v '^#|^$'
cat: /boot/grub/menu.lst: No such file or directory
ubuntu@ubuntu:~$ sudo fdisk -l
Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xbedcbedc
Device Boot Start End Blocks Id System
/dev/sda1 * 1 6375 51200000 7 HPFS/NTFS
/dev/sda2 6375 6630 2048000 82 Linux swap / Solaris
/dev/sda3 6630 7650 8192000 83 Linux
/dev/sda4 7650 14594 55777280+ f W95 Ext'd (LBA)
/dev/sda5 7650 14594 55777280 7 HPFS/NTFS
Disk /dev/sdb: 1010 MB, 1010826752 bytes
255 heads, 63 sectors/track, 122 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00089b69
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 123 987104 b W95 FAT32
Partition 1 has different physical/logical endings:
phys=(121, 254, 63) logical=(122, 227, 40)
ubuntu@ubuntu:~$
-
ještě dodám, že mám ted Ubuntu spuštěné z Flash disku. Dale když se pokusim spustit Ubuntu z GRUBu tak to vrátí hlášku: error 11 unrecognized device string
-
Tak potřebuju obsah souboru menu.lst na tom disku, kde máš nainstalováno Ubuntu. Vím co to je za chybu, ale potřebuju ten výpis :)
-
kde ten soubor najdu?
-
Připoj si ten disk, kde to máš nainstalovaný, možná se ti připojí automaticky. Pak to najdeš v /boot/grub/menu.lst
-
splashimage (hd0,2)/boot/grub/splashimages/97109-bam.xpm.gz
default 9
timeout 10
### 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=0b445c1b-7b24-43f3-9ec9-d503ce4ff1cb ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=0b445c1b-7b24-43f3-9ec9-d503ce4ff1cb
## 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=(single-user) 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
## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false
## ## End Default Options ##
title Chainload into GRUB 2
root 0b445c1b-7b24-43f3-9ec9-d503ce4ff1cb
kernel /boot/grub/core.img
title ���������������������������������������������������������������������
root
title When you have verified GRUB 2 works, you can use this command to
root
title complete the upgrade: upgrade-from-grub-legacy
root
title ���������������������������������������������������������������������
root
title Debian GNU/Linux, kernel 2.6.28-11-generic
root 0b445c1b-7b24-43f3-9ec9-d503ce4ff1cb
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=0b445c1b-7b24-43f3-9ec9-d503ce4ff1cb ro quiet splash
initrd /boot/initrd.img-2.6.28-11-generic
title Debian GNU/Linux, kernel 2.6.28-11-generic (recovery mode)
root 0b445c1b-7b24-43f3-9ec9-d503ce4ff1cb
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=0b445c1b-7b24-43f3-9ec9-d503ce4ff1cb ro single
initrd /boot/initrd.img-2.6.28-11-generic
title Debian GNU/Linux, kernel memtest86+
root 0b445c1b-7b24-43f3-9ec9-d503ce4ff1cb
kernel /boot/memtest86+.bin
### END DEBIAN AUTOMAGIC KERNELS LIST
title Other operating systems:
root
title Windows Vista (loader)
root (hd0,0)
chainloader +1
savedefault
makeactive
-
Co je tohle ?
title ���������������������������������������������������������������������
rootTy máš Grub 2 nebo co je to teď ten novej ? Protože vůbec nevím co znamená tohle celý title Chainload into GRUB 2
root 0b445c1b-7b24-43f3-9ec9-d503ce4ff1cb
kernel /boot/grub/core.img
title ���������������������������������������������������������������������
root
title When you have verified GRUB 2 works, you can use this command to
root
title complete the upgrade: upgrade-from-grub-legacy
root
title ���������������������������������������������������������������������
root
-
já nevim, je to možné
-
No řekl bych, že problém bude v těch
���������������������������������������������������������������������
-
vymazat to bude stačit? příde mi dovná i ta cesta k ununtu, a taky by tam mělo být ubuntu a né debian
-
Nevidím tam žádnej záznam pro Ubuntu
-
no to je právě divný, nemam debian
-
Tak to nevím potom co jsi s tím dělal ? ;D
-
to by mě taky zajímalo, no a co tam teda napíšem?? aby se to rozjelo?
-
No moje záznamy pro Ubuntu ve virtuálce vypadají takhle
title Ubuntu 9.04, kernel 2.6.28-11-generic
uuid 5f72f1e1-c12b-41f4-a03d-8b4c0ed8c788
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=5f72f1e1-c12b-41f4-a03d-8b4c0ed8c788 ro quiet splash
initrd /boot/initrd.img-2.6.28-11-generic
quiet
title Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
uuid 5f72f1e1-c12b-41f4-a03d-8b4c0ed8c788
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=5f72f1e1-c12b-41f4-a03d-8b4c0ed8c788 ro single
initrd /boot/initrd.img-2.6.28-11-generic
title Ubuntu 9.04, memtest86+
uuid 5f72f1e1-c12b-41f4-a03d-8b4c0ed8c788
kernel /boot/memtest86+.bin
quiet
Takže si jen změň UUID disků a verzi jádra a snad to pojede.
No v podstatě můžeš přepsat ty Debianí, jen title a zkontrolovat UUID disků a ty jádra a smaž nebo zakomentuj si ty řádky s těma otazníkama.
-
ok, tak jsem to přepsal a jdu to zkusit, tak zatim díky
-
ještě malej detail, nemam práva pro zápis
-
ještě malej detail, nemam práva pro zápis
http://wiki.ubuntu.cz/Root%20sudo
-
ok, tak jsem to přepsal a jdu to zkusit, tak zatim díky
Neříkej hop, dokud nepřeskočíš ;D
-
moc vám všem děkuju, konečně sem se dostal do mého krásného ubuntu
opravdu díky , jste super ;)
-
opravdu díky , jste super ;)
To mi víme ;D, není zač :).