View previous topic :: View next topic |
Author |
Message |
baldomax n00b
Joined: 08 Oct 2005 Posts: 8
|
Posted: Tue Sep 18, 2007 11:29 am Post subject: GRUB error |
|
|
Hi, i've installed gentoo 2007 but...i've a boot error and i don't find any doc about it.
I've one hd p-ata master so it's hda !
my partitions are:
/boot /dev/hda1
/swap /dev/hda2
/ /dev/hda3
I've installed grub with this grub.conf:
default 0
timeout 10
title=Gentoo
root (hd0,0)
kernel /boot/kernel root=/dev/hda3
In grub:
root (hd0,0)
setup (hd0)
All it's ok!
So...i reboot and....my pc is blocked with:
GRUB Loading stage1.5Read Error
There is not the error number ! It's blocked. I've reinstalled gentoo 5 times!! but...i don't resolve
help please! |
|
Back to top |
|
|
Jason5876 n00b
Joined: 06 Sep 2007 Posts: 6
|
Posted: Tue Sep 18, 2007 11:44 am Post subject: |
|
|
baldomax,
Are you sure your kernel's name in /boot is "kernel". It may be something else if you used genkernel to install it. If you are unsure, enter
# ls -l /boot
to see what your kernel is named. |
|
Back to top |
|
|
baldomax n00b
Joined: 08 Oct 2005 Posts: 8
|
Posted: Tue Sep 18, 2007 12:27 pm Post subject: |
|
|
Jason5876 wrote: | baldomax,
Are you sure your kernel's name in /boot is "kernel". It may be something else if you used genkernel to install it. If you are unsure, enter
# ls -l /boot
to see what your kernel is named. |
Yes i'm sure! I have do:
cp arch/i386/boot/bzImage /boot/kernel
and i've verified it!
any suggestion? |
|
Back to top |
|
|
Roman_Gruber Advocate
Joined: 03 Oct 2006 Posts: 3846 Location: Austro Bavaria
|
Posted: Tue Sep 18, 2007 12:49 pm Post subject: |
|
|
baldomax wrote: | Jason5876 wrote: | baldomax,
Are you sure your kernel's name in /boot is "kernel". It may be something else if you used genkernel to install it. If you are unsure, enter
# ls -l /boot
to see what your kernel is named. |
Yes i'm sure! I have do:
cp arch/i386/boot/bzImage /boot/kernel
and i've verified it!
any suggestion? |
I name my kernel like this: cp arch/i386/bzImage /boot/kernel_2_6_20_v_7
I assume you have a mismatch with your /lib/modules directory because of don*t doing my way.
My suggestion for you is to name your kernel proper in the kernel config, make && make modules_install; copy to boot; add a new kernel entry in grub.conf and try again. |
|
Back to top |
|
|
Roman_Gruber Advocate
Joined: 03 Oct 2006 Posts: 3846 Location: Austro Bavaria
|
Posted: Tue Sep 18, 2007 12:51 pm Post subject: |
|
|
Hi,
May you post your /etc/fstab. Check if your boot partition is mounted all the time. Mount it and reinstall grub. |
|
Back to top |
|
|
baldomax n00b
Joined: 08 Oct 2005 Posts: 8
|
|
Back to top |
|
|
baldomax n00b
Joined: 08 Oct 2005 Posts: 8
|
Posted: Tue Sep 18, 2007 1:16 pm Post subject: |
|
|
tw04l124 wrote: | Hi,
May you post your /etc/fstab. Check if your boot partition is mounted all the time. Mount it and reinstall grub. |
/dev/hda1 /boot ext2 noauto,noatime 1 2
/dev/hda3 / ext3 noatime 0 1
/dev/hda2 none swap sw 0 0
/dev/cdrom /mnt/cdrom auto noauto 0 0 |
|
Back to top |
|
|
Roman_Gruber Advocate
Joined: 03 Oct 2006 Posts: 3846 Location: Austro Bavaria
|
Posted: Tue Sep 18, 2007 1:39 pm Post subject: |
|
|
baldomax wrote: | tw04l124 wrote: | Hi,
May you post your /etc/fstab. Check if your boot partition is mounted all the time. Mount it and reinstall grub. |
/dev/hda1 /boot ext2 noauto,noatime 1 2
/dev/hda3 / ext3 noatime 0 1
/dev/hda2 none swap sw 0 0
/dev/cdrom /mnt/cdrom auto noauto 0 0 |
remove the noauto statement from the line with /boot, thx |
|
Back to top |
|
|
Habbit Apprentice
Joined: 01 Sep 2007 Posts: 237 Location: 3.7137 W, 40.3873 N
|
Posted: Tue Sep 18, 2007 1:42 pm Post subject: |
|
|
Did you completely and succesfully install GRUB into your /boot partition? Seems that GRUB is unable to locate its stage2 components in _its_ root filesystem. Try to boot from the CD, chroot into your Gentoo environment as you did during the install and do the following: Code: |
root@machine: ~ # mount /boot
root@machine: ~ # grub-install --recheck /dev/hda1 |
Adjusting the device name as needed to point to your /boot partition _________________
Code: | ~ $ objdump -d ./habbit_mind
90 xchg %rax, %rax
EB FD jmp $-3 |
|
|
Back to top |
|
|
baldomax n00b
Joined: 08 Oct 2005 Posts: 8
|
Posted: Tue Sep 18, 2007 2:14 pm Post subject: |
|
|
I've deleted noauto but i've the same error.
grub-install --recheck /dev/hda1 :
(fd0) /dev/fd0
(hd0) /dev/hda
So...it seem correct.
i can modify grub.conf with
I've also tried with
kernel (hd0,0)/boot/kernel ......
but....error error error
It's possible hd broken? |
|
Back to top |
|
|
baldomax n00b
Joined: 08 Oct 2005 Posts: 8
|
Posted: Tue Sep 18, 2007 3:56 pm Post subject: |
|
|
Any other suggestion? |
|
Back to top |
|
|
Roman_Gruber Advocate
Joined: 03 Oct 2006 Posts: 3846 Location: Austro Bavaria
|
Posted: Tue Sep 18, 2007 7:44 pm Post subject: |
|
|
Is your ide/ sata /pata controller build in the kernel? |
|
Back to top |
|
|
baldomax n00b
Joined: 08 Oct 2005 Posts: 8
|
Posted: Tue Sep 18, 2007 8:04 pm Post subject: |
|
|
tw04l124 wrote: | Is your ide/ sata /pata controller build in the kernel? |
Yes. I've also used genkernel and i've the same error.
Now i've tried with another new disk and .....i've the same error.
I don't know what i can do now.
|
|
Back to top |
|
|
Roman_Gruber Advocate
Joined: 03 Oct 2006 Posts: 3846 Location: Austro Bavaria
|
|
Back to top |
|
|
transient l33t
Joined: 13 Jan 2005 Posts: 759
|
Posted: Wed Sep 19, 2007 3:03 am Post subject: |
|
|
That error is usually caused by the stage 2 files (anything under /boot/grub) not being readable by GRUB. This could be because you don't have a symlink in /boot, or because GRUB can't read the filesystem the stage 2 files are on, or - and this is probably most likely - because you havn't mounted your boot partition before installing grub. |
|
Back to top |
|
|
centaurus n00b
Joined: 12 Aug 2007 Posts: 13
|
Posted: Wed Sep 19, 2007 9:40 pm Post subject: |
|
|
I was going to post about it but was busy with other things. Anyway, last weekend I installed Gentoo, dual boot with other Linux distros in my new AMD64 machine and did a grub-install --no-floppy /dev/hdb. Yet, it seems to be unbootable since grub appeared to have not been installed - I only got my old grub from the other O/S. When I tried to boot Gentoo by adding the portion relevant to Gentoo in the current grub, I received a kernel panic message:
Code: |
title Gentoo Linux 2.6.22-2-gentoo-r5
root (hd1,5)
kernel /boot/kernel-2.6.22-gentoo-r5 root=/dev/hdb6 ro
|
The /boot is in a separate partition (extended logical). I followed the handbook instruction closely, so there shouldn't be any error. |
|
Back to top |
|
|
|