Титла: Update grub-как става
Публикувано от: aladin в Aug 05, 2007, 12:11
Примерен код | aladin@aladin-desktop:~$ sudo fdisk -l
Disk /dev/sda: 300.0 GB, 300069052416 bytes 255 heads, 63 sectors/track, 36481 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System /dev/sda1 * 1 2550 20482843+ c W95 FAT32 (LBA) /dev/sda2 2551 36481 272550757+ f W95 Ext'd (LBA) /dev/sda5 2551 36481 272550726 7 HPFS/NTFS
Disk /dev/hda: 82.3 GB, 82348277760 bytes 255 heads, 63 sectors/track, 10011 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System /dev/hda1 * 1 1275 10241406 c W95 FAT32 (LBA) /dev/hda2 1276 10011 70171920 5 Extended /dev/hda5 1276 3354 16699536 83 Linux /dev/hda6 3355 5313 15735636 83 Linux /dev/hda7 5314 10011 37736653+ 7 HPFS/NTFS
|
/dev/hda1 е ХР /dev/hda5 ми е Кубунту /dev/hda6 е Sabayon ,но GRUB-а захапва само Кубунтото и ХР.
Примерен код | # 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=f7654099-e6c1-4649-8fbb-a6e4f30396a5 ro
## Setup crashdump menu entries ## e.g. crashdump=1 # crashdump=0
## default grub root device ## e.g. groot=(hd0,0) # groot=(hd0,4)
## 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=bg_BG
## 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-15-generic root (hd0,4) kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=f7654099-e6c1-4649-8fbb-a6e4f30396a5 ro quiet splash locale=bg_BG initrd /boot/initrd.img-2.6.20-15-generic quiet savedefault
title Ubuntu, kernel 2.6.20-15-generic (recovery mode) root (hd0,4) kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=f7654099-e6c1-4649-8fbb-a6e4f30396a5 ro single initrd /boot/initrd.img-2.6.20-15-generic
title Ubuntu, memtest86+ root (hd0,4) 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 Microsoft Windows XP Professional root (hd0,0) savedefault makeactive chainloader +1
|
Идея какво да направя!
Титла: Update grub-как става
Публикувано от: trip в Aug 05, 2007, 12:51
Еми айде направи един запис и за втория ти линукс виж имаш записан хп и затова го фаща груба
Титла: Update grub-как става
Публикувано от: Kalin в Aug 05, 2007, 12:56
Отговора на търсачката за update AND grub. Нито една тема няма отговор за теб, така ли?
Титла: Update grub-как става
Публикувано от: gizi_ в Aug 05, 2007, 13:33
Примерен код | default 0
timeout 10
title Ubuntu, kernel 2.6.20-15-generic root (hd0,4) kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=f7654099-e6c1-4649-8fbb-a6e4f30396a5 ro quiet splash locale=bg_BG initrd /boot/initrd.img-2.6.20-15-generic quiet savedefault
title Ubuntu, kernel 2.6.20-15-generic (recovery mode) root (hd0,4) kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=f7654099-e6c1-4649-8fbb-a6e4f30396a5 ro single initrd /boot/initrd.img-2.6.20-15-generic
title Ubuntu, memtest86+ root (hd0,4) kernel /boot/memtest86+.bin quiet
title Sabayon root (hd0,5) kernel /boot/vmlinuz-$(uname -r) root=/dev/hda6 ro initrd /boot/initrd.img-$(uname -r) 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
title Microsoft Windows XP Professional root (hd0,0) savedefault makeactive chainloader +1 |
Това е моето предложение като трябва да обърнеш внимание на "uname -r" това трябва да го смениш с версията на ядрото ти.Въпреки че ако не си я знаеш не знам как да я откриеш ако не можеш да боотнеш Sabayona.Останалата част трябва да работи.Но разбира се името на нещо може да се по разминава малко което означава че трябва да си ги по промениш може би.Ама като се разгледаш из форума със сигурност ще ти стане ясно какво трябва да по промениш.
P.S. arda_kj благодаря за поправката.Просто преписах от горе грешно.
Титла: Update grub-как става
Публикувано от: aladin в Aug 05, 2007, 14:05
Цитат (Kalin @ Авг. 05 2007,13:56) | Отговора на търсачката за update AND grub. Нито една тема няма отговор за теб, така ли? |
От сутринта чета и съм до никаде
Примерен код | grub-install /dev/hda |
ne mи закача Sabayona
Титла: Update grub-как става
Публикувано от: aladin в Aug 05, 2007, 15:43
Тъпа работа е тоя Sabayon. Как ли не го инсталирах-със суаб,без,на различни хардове-не става.уж има груб след края на инсталацията-не ще да се стартира.Сега махнах и ХР и кубунту и го инсталнах на чист хард-пак не ще/.аз му задавам партишъните/.Пак уж си инсталира груба и пак не ще да се боотне Само не съм пробвал автоматично да се инсталне,но тогава на 80-ка хард иска той да си го дели-2 гига суап и на 78 инсталация.ъпа работа.
Титла: Update grub-как става
Публикувано от: arda_kj в Aug 05, 2007, 15:56
Добре ве човек хората ти казаха да си го добавиш ръчно в menu.lst на grub-a, по-точно gizi_ ти го каза, даже ти каза и как: Примерен код | title Sabayon root (hd0,5) kernel /boot/vmlinuz-$(uname -r) root=/dev/hda5 ro initrd /boot/initrd.img-$(uname -r) savedefault |
Аз само ще го коригирам, че това "root=/dev/hda5 ro " трябва да стане root=/dev/hda6 ro", т.е. в груба добавяш това:
Примерен код | title Sabayon root (hd0,5) kernel /boot/vmlinuz-$(uname -r) root=/dev/hda6 ro initrd /boot/initrd.img-$(uname -r) savedefault |
Та това горното направи ли го? Ако не, го направи и кажи резултата, а ако не стане по-подробно кажи какво си направил и резултата от него, че да не гадаем. Айде действай
А и да добавя как точно е името на това vmlinuz-$(uname -r)
и това
initrd.img-$(uname -r)
влез и виж в директорията /boot/ на Sabayon
Титла: Update grub-как става
Публикувано от: arda_kj в Aug 05, 2007, 16:05
Абе небиваше да затриваш другите дистрибуции , ся не може да пробваме горното. Моля ти се ако искаш да ти помогнем по-бързо и по-добре казвай по-подробно какво точно си направил и резултата от него във вид на логове, съдържание на файлове и всичко, което смяташ, че ще ни улесни да ти помогнем. Също като тръгнем да ти помогаме ако може да не променяш кардинално картината, т.е. да затриваш всичко на харда и да обезмисляш по-този начин помоща ни. Добре де тоя Sabayon няма ли документация как се инсталира и какви са изискванията откъм хардуер, за да ти тръгне и т.н.? Също, което мога да ти препоръчам е да прочетеш man страницата на grub и сродните му, за да видиш дали не пропускаш нещо.
Титла: Update grub-как става
Публикувано от: aladin в Aug 05, 2007, 18:00
arda_kj,и преинсталирах груба и редактирах-пак не става.
дяла бях го писал 6 а не 5
Титла: Update grub-как става
Публикувано от: arda_kj в Aug 05, 2007, 18:21
Ама то хубаво, ама поне покажи какво, къде и как точно си редактирал и покажи какво е станало, какво ти изписва, т.е. дай по-подробно. Според мен ако всичко се е инсталирало правилно не може е да не стане, т.е. имам чувството, че нещо не правиш както трябва, ама с тея отговори, които даваш не мога да се ориентирам И сега какво е текущото състояние на нещата? Да продължаваме ли да се мъчим да ти помагаме
Титла: Update grub-как става
Публикувано от: ivo1204 в Aug 05, 2007, 19:22
Всичко ,което започва с "#" е коментар за GRUB , прескача го. (Иначе може някой скрипт да го ползва , та го остави ). Командната линия на Sabayon е доста сложна: title Sabayon Linux x86-64 3.4 root (hd0,6)
kernel /boot/kernel-genkernel-x86_64-2.6.22-sabayon root=/dev/ram0 ramdisk=8192 real_root=UUID=20f9c8b9-e05d-4ab9-b5fd-4d8c67bd614d quiet init=/linuxrc splash=silent,theme:sabayon vga=791 CONSOLE=/dev/tty1 dodmraid pci=nomsi ( това отгоре е на един ред ) initrd /boot/initramfs-genkernel-x86_64-2.6.22-sabayon
Та би трябвало да я намериш в дяла на Sabayon /boot/grub/menu.lst и да я копираш в "menu.lst" -ta на убунту
Титла: Update grub-как става
Публикувано от: aladin в Aug 05, 2007, 20:28
Примерен код | # 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=dfe8265b-7083-4419-a8c8-5eed4656a186 ro
## Setup crashdump menu entries ## e.g. crashdump=1 # crashdump=0
## 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=bg_BG
## 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-15-generic root (hd0,5) kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=dfe8265b-7083-4419-a8c8-5eed4656a186 ro quiet splash locale=bg_BG initrd /boot/initrd.img-2.6.20-15-generic quiet savedefault
title Ubuntu, kernel 2.6.20-15-generic (recovery mode) root (hd0,5) kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=dfe8265b-7083-4419-a8c8-5eed4656a186 ro single initrd /boot/initrd.img-2.6.20-15-generic
title Ubuntu, memtest86+ root (hd0,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 Microsoft Windows XP Professional root (hd0,0) savedefault makeactive chainloader +1
# This entry automatically added by the Debian installer for an existing # linux installation on /dev/hda5. title Sabayon Linux x86 3.4 (on /dev/hda5) root (hd0,4) kernel /boot/kernel-genkernel-x86-2.6.22-sabayon root=/dev/ram0 ramdisk=8192 real_root=UUID=49d3ad4a-733c-4177-acd0-fa0ff78269b0 quiet init=/linuxrc splash=silent,theme:sabayon vga=791 CONSOLE=/dev/tty1 dodmraid pci=nomsi initrd /boot/initramfs-genkernel-x86-2.6.22-sabayon savedefault boot
|
така е след преинсталацията Кубунтуту автоматик го сложи,всичко бачка
|