View previous topic :: View next topic |
Author |
Message |
conoscenza Tux's lil' helper
Joined: 25 Dec 2011 Posts: 105 Location: Spinazzola (bt) | Brescia | Parma
|
Posted: Tue Jan 10, 2012 2:44 am Post subject: GRUB error |
|
|
Hi guys!
When I start my pc I see a dark screen and the string:"GRUB _", with flash of the underscore...
What's up?
What can I do?
Which output do you need?
Thank you so much! |
|
Back to top |
|
|
jburns Veteran
Joined: 18 Jan 2007 Posts: 1214 Location: Massachusetts USA
|
Posted: Tue Jan 10, 2012 4:41 am Post subject: |
|
|
The contents of /boot/grub/grub.conf would be a good starting point. |
|
Back to top |
|
|
conoscenza Tux's lil' helper
Joined: 25 Dec 2011 Posts: 105 Location: Spinazzola (bt) | Brescia | Parma
|
Posted: Tue Jan 10, 2012 8:18 am Post subject: |
|
|
Thank you for the answer!
This is the output:
Quote: |
localhost / # cat /boot/grub/grub.conf
# This is a sample grub.conf for use with Genkernel, per the Gentoo handbook
# http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10#doc_chap2
# If you are not using Genkernel and you need help creating this file, you
# should consult the handbook. Alternatively, consult the grub.conf.sample that
# is included with the Grub documentation.
default 0
timeout 10
splashimage=(hd0,4)/boot/grub/splash.xpm.gz
title=Gentoo Linux (2.6.39-gentoo)
root (hd0,4)
kernel /boot/kernel-genkernel-x86_64-2.6.39-gentoo-r3 root=/dev/ram0 real_root=/dev/sda5
initrd /boot/initramfs-genkernel-x86_64-2.6.39-gentoo-r3
title=Gentoo Linux (3.1.4-gentoo)
root (hd0,4)
kernel /boot/kernel-genkernel-x86_64-3.1.4-gentoo root=/dev/ram0 real_root=/dev/sda5
initrd /boot/initramfs-genkernel-x86_64-3.1.4-gentoo
|
and add:
Quote: |
localhost / # eselect kernel list
Available kernel symlink targets:
[1] linux-2.6.39-gentoo
[2] linux-2.6.39-gentoo-r3
[3] linux-3.0-gentoo
[4] linux-3.1.0-gentoo
[5] linux-3.1.4-gentoo *
[6] linux-3.2.0-gentoo-r1
|
Quote: |
localhost / # ls -R /boot/
/boot/:
boot kernel-genkernel-x86_64-2.6.39-gentoo-r3
grub kernel-genkernel-x86_64-3.1.4-gentoo
initramfs-genkernel-x86_64-2.6.39-gentoo System.map-genkernel-x86_64-2.6.39-gentoo
initramfs-genkernel-x86_64-2.6.39-gentoo-r3 System.map-genkernel-x86_64-2.6.39-gentoo-r3
initramfs-genkernel-x86_64-3.1.4-gentoo System.map-genkernel-x86_64-3.1.4-gentoo
kernel-genkernel-x86_64-2.6.39-gentoo
/boot/grub:
default fat_stage1_5 grub.conf.bak menu.lst splash.xpm.gz stage2_eltorito vstafs_stage1_5
device.map ffs_stage1_5 iso9660_stage1_5 minix_stage1_5 stage1 stage2.old xfs_stage1_5
e2fs_stage1_5 grub.conf jfs_stage1_5 reiserfs_stage1_5 stage2 ufs2_stage1_5
|
I have tried to emerge GRUB again and I've received a message of error about kernel:
Quote: |
* Messages for package sys-boot/grub-0.97-r10:
* Could not find a Makefile in the kernel source directory.
* Please ensure that /usr/src/linux points to a complete set of Linux sources
|
Thank you so much! |
|
Back to top |
|
|
jburns Veteran
Joined: 18 Jan 2007 Posts: 1214 Location: Massachusetts USA
|
|
Back to top |
|
|
conoscenza Tux's lil' helper
Joined: 25 Dec 2011 Posts: 105 Location: Spinazzola (bt) | Brescia | Parma
|
Posted: Wed Jan 11, 2012 1:11 am Post subject: |
|
|
Which of that step will I make?
Quote: |
localhost / # cat /boot/grub/grub.conf
# This is a sample grub.conf for use with Genkernel, per the Gentoo handbook
# http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10#doc_chap2
# If you are not using Genkernel and you need help creating this file, you
# should consult the handbook. Alternatively, consult the grub.conf.sample that
# is included with the Grub documentation.
default 0
timeout 10
splashimage=(hd0,4)/boot/grub/splash.xpm.gz
title=Gentoo Linux (3.2.0-gentoo-r1)
root (hd0,4)
kernel /boot/kernel-genkernel-x86_64-3.2.0-gentoo-r1 root=/dev/ram0 real_root=/dev/sda5
initrd /boot/initramfs-genkernel-x86_64-3.2.0-gentoo-r1
title=Gentoo Linux (2.6.39-gentoo)
root (hd0,4)
kernel /boot/kernel-genkernel-x86_64-2.6.39-gentoo-r3 root=/dev/ram0 real_root=/dev/sda5
initrd /boot/initramfs-genkernel-x86_64-2.6.39-gentoo-r3
title=Gentoo Linux (3.1.4-gentoo)
root (hd0,4)
kernel /boot/kernel-genkernel-x86_64-3.1.4-gentoo root=/dev/ram0 real_root=/dev/sda5
initrd /boot/initramfs-genkernel-x86_64-3.1.4-gentoo
|
Quote: |
localhost / # ls -l /boot/grub/menu.lst
lrwxrwxrwx 1 root root 9 16 set 2010 /boot/grub/menu.lst -> grub.conf
|
I will reinstalla GRUB?
Code: | grub-install --root-directory=/boot /dev/sda |
This is my disk:
Quote: |
localhost / # fdisk -l
Disk /dev/sda: 200.0 GB, 200049647616 bytes
255 testine, 63 settori/tracce, 24321 cilindri, totale 390721968 settori
Unità = settori di 1 * 512 = 512 byte
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Identificativo disco: 0x081d791d
Dispositivo Boot Start End Blocks Id System
/dev/sda1 * 63 4096574 2048256 83 Linux
/dev/sda2 4096575 5735204 819315 82 Linux swap / Solaris
/dev/sda3 207874048 390721535 91423744 5 Esteso
/dev/sda4 5735205 207865034 101064915 83 Linux
/dev/sda5 207876096 386623487 89373696 83 Linux
/dev/sda6 386623551 390721535 2048992+ 82 Linux swap / Solaris
|
I've dual-boot with Fedora (sda1/sda2/sda4)... what should I use?
grub-install --root-directory=/boot /dev/sda'?' ? |
|
Back to top |
|
|
jburns Veteran
Joined: 18 Jan 2007 Posts: 1214 Location: Massachusetts USA
|
Posted: Wed Jan 11, 2012 6:03 am Post subject: |
|
|
What version of grub is Fedora using?
Are you using one grub.conf file for both ferora and gentoo or are you chaining to a second grub.conf file for the second OS? |
|
Back to top |
|
|
conoscenza Tux's lil' helper
Joined: 25 Dec 2011 Posts: 105 Location: Spinazzola (bt) | Brescia | Parma
|
Posted: Wed Jan 11, 2012 8:19 am Post subject: |
|
|
Thanks for the answer!
The first OS is Fedora. The version of the GRUB is:
Quote: |
[gianpy@localhost ~]$ rpm -qa | grep grub
grub-0.97-71.fc15.x86_64
|
and this is the grub.conf of Fedora:
Quote: |
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/sda4
# initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.41.4-1.fc15.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.41.4-1.fc15.x86_64 ro root=UUID=19f7925e-d8c4-45bb-aa55-ac1c24d8088d rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=it_IT.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=it rhgb quiet
initrd /initramfs-2.6.41.4-1.fc15.x86_64.img
title Fedora (2.6.41.1-1.fc15.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.41.1-1.fc15.x86_64 ro root=UUID=19f7925e-d8c4-45bb-aa55-ac1c24d8088d rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=it_IT.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=it rhgb quiet
initrd /initramfs-2.6.41.1-1.fc15.x86_64.img
title Fedora (2.6.40.6-0.fc15.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.40.6-0.fc15.x86_64 ro root=UUID=19f7925e-d8c4-45bb-aa55-ac1c24d8088d rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=it_IT.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=it rhgb quiet
initrd /initramfs-2.6.40.6-0.fc15.x86_64.img
title gentoo
rootnoverify (hd0,4)
chainloader +1
|
While the second OS is Gentoo and using:
Quote: |
[I] sys-boot/grub
Available versions:
(0) *0.92-r1 0.94-r1 0.96-r1 0.96-r2 ~0.96-r3 ~0.97 0.97-r2 0.97-r3 0.97-r4 0.97-r5 0.97-r6 ~0.97-r8 0.97-r9 0.97-r10
(2) **1.99-r2 **9999
{custom-cflags debug device-mapper efiemu grub_platforms_coreboot grub_platforms_efi-32 grub_platforms_efi-64 grub_platforms_emu grub_platforms_ieee1275 grub_platforms_multiboot grub_platforms_pc grub_platforms_qemu grub_platforms_qemu-mips grub_platforms_yeeloong ncurses netboot nls sdl static truetype}
Installed versions: 0.97-r10(01:50:13 11/01/2012)(custom-cflags ncurses -netboot -static)
Homepage: http://www.gnu.org/software/grub/
Description: GNU GRUB boot loader
|
and the grub.conf is:
Quote: |
localhost / # cat /boot/grub/grub.conf
# This is a sample grub.conf for use with Genkernel, per the Gentoo handbook
# http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10#doc_chap2
# If you are not using Genkernel and you need help creating this file, you
# should consult the handbook. Alternatively, consult the grub.conf.sample that
# is included with the Grub documentation.
default 0
timeout 10
splashimage=(hd0,4)/boot/grub/splash.xpm.gz
title=Gentoo Linux (3.2.0-gentoo-r1)
root (hd0,4)
kernel /boot/kernel-genkernel-x86_64-3.2.0-gentoo-r1 root=/dev/ram0 real_root=/dev/sda5
initrd /boot/initramfs-genkernel-x86_64-3.2.0-gentoo-r1
title=Gentoo Linux (2.6.39-gentoo)
root (hd0,4)
kernel /boot/kernel-genkernel-x86_64-2.6.39-gentoo-r3 root=/dev/ram0 real_root=/dev/sda5
initrd /boot/initramfs-genkernel-x86_64-2.6.39-gentoo-r3
title=Gentoo Linux (3.1.4-gentoo)
root (hd0,4)
kernel /boot/kernel-genkernel-x86_64-3.1.4-gentoo root=/dev/ram0 real_root=/dev/sda5
initrd /boot/initramfs-genkernel-x86_64-3.1.4-gentoo
|
I don't understand who is the problem...
Thank you so much! |
|
Back to top |
|
|
jburns Veteran
Joined: 18 Jan 2007 Posts: 1214 Location: Massachusetts USA
|
Posted: Thu Jan 12, 2012 6:04 am Post subject: |
|
|
Try Code: | grub-install /dev/sda5 |
This should install Grub into the gentoo partition instead of the MBR. This should allow the chainloader command to work.
If "grub__" occurs before you make the gentoo selection you should reinstall fedora's grub |
|
Back to top |
|
|
conoscenza Tux's lil' helper
Joined: 25 Dec 2011 Posts: 105 Location: Spinazzola (bt) | Brescia | Parma
|
Posted: Thu Jan 12, 2012 7:40 am Post subject: |
|
|
Thank you man! Now all is okay! Gentoo starts
...but what did it happen???
why the grub lost its "configuration"?
thank you again man! |
|
Back to top |
|
|
|