View previous topic :: View next topic |
Author |
Message |
_dook_master_ Apprentice

Joined: 16 Sep 2003 Posts: 295 Location: Isla Vista, CA
|
Posted: Wed May 26, 2004 4:54 am Post subject: Big GRUB problem..... |
|
|
This is the first time I've EVER had a problem with GRUB. I installed the system just fine, everything went well. I rebooted, and I get a GRUB Error 2. I assume this means something wrong with the file system, but I set it up again and again and it doesn't work. Does anyone have ideas? Its just an old Maxtor HD in a K6 box. |
|
Back to top |
|
 |
farrioth Apprentice


Joined: 23 Nov 2003 Posts: 282 Location: Auckland
|
Posted: Wed May 26, 2004 5:00 am Post subject: |
|
|
Error 2 means bad file or directory type. Give me the complete output produced by grub, and your grub.conf file. |
|
Back to top |
|
 |
_dook_master_ Apprentice

Joined: 16 Sep 2003 Posts: 295 Location: Isla Vista, CA
|
Posted: Wed May 26, 2004 5:03 am Post subject: |
|
|
Thats the complete output, here's my file.
Code: | default 0
timeout 5
splashimage=(hd0,0)/grub/splash.xpm.gz
title=Gentoo
root (hd0,0)
kernel /bzImage root=/dev/hda3 |
|
|
Back to top |
|
 |
_Nomad_ Guru


Joined: 11 Apr 2003 Posts: 571
|
Posted: Wed May 26, 2004 5:13 am Post subject: |
|
|
the kernel line should look something like this instead
Code: | kernel (hd0,0)/bzImage ...... |
|
|
Back to top |
|
 |
_dook_master_ Apprentice

Joined: 16 Sep 2003 Posts: 295 Location: Isla Vista, CA
|
Posted: Wed May 26, 2004 5:24 am Post subject: |
|
|
_Nomad_ wrote: | the kernel line should look something like this instead
Code: | kernel (hd0,0)/bzImage ...... |
|
Still doesn't work.  |
|
Back to top |
|
 |
farrioth Apprentice


Joined: 23 Nov 2003 Posts: 282 Location: Auckland
|
Posted: Wed May 26, 2004 5:34 am Post subject: |
|
|
Here's my grub.conf:
Code: |
default 0
timeout 10
splashimage=(hd0,0)/grub/splash.xpm.gz
password --md5 $1$T6pUM0$PVgPhTf9BxeVa1teTb1w3.
title=Linux
root (hd0,0)
kernel /kernel-2.6.5-gentoo-r1 root=/dev/ram0 init=/linuxrc real_root=dev/hde3 vga=0x31a video=vesafb:1280x1024 splash=silent
initrd /initrd-2.6.5-gentoo-r1-splash-default
|
Note that i'm using genkernel.
I think you need a root line. (root refers to your /boot partition, usually /dev/hda1) Also, give me the output `ls -l /boot/bzImage`. Does your splash work, and do you get the 5 second timeout before the error? |
|
Back to top |
|
 |
_dook_master_ Apprentice

Joined: 16 Sep 2003 Posts: 295 Location: Isla Vista, CA
|
Posted: Wed May 26, 2004 5:52 am Post subject: |
|
|
I've got a root line. Here is the ouput of...
Code: | -rw-r--r-- 1 root root 1885892 May 25 12:44 /boot/bzImage |
|
|
Back to top |
|
 |
darksbane n00b

Joined: 15 Apr 2004 Posts: 28 Location: Fredonia, NY
|
Posted: Wed May 26, 2004 6:02 am Post subject: |
|
|
One thing that caught me once was that I forgot to mount /boot when I copied over the kernel. Is the kernel just sitting in the /boot dir on (hd0,2)?
Also, what filesystem is (hd0,0)? _________________ :wq |
|
Back to top |
|
 |
_dook_master_ Apprentice

Joined: 16 Sep 2003 Posts: 295 Location: Isla Vista, CA
|
Posted: Wed May 26, 2004 6:03 am Post subject: |
|
|
It's ext2, and nope, its actually in the dir. |
|
Back to top |
|
 |
farrioth Apprentice


Joined: 23 Nov 2003 Posts: 282 Location: Auckland
|
Posted: Wed May 26, 2004 6:11 am Post subject: |
|
|
_dook_master_ wrote: | I've got a root line. Here is the ouput of...
Code: | -rw-r--r-- 1 root root 1885892 May 25 12:44 /boot/bzImage |
|
My mistake. By "Actually in the dir," what do you mean? |
|
Back to top |
|
 |
darksbane n00b

Joined: 15 Apr 2004 Posts: 28 Location: Fredonia, NY
|
Posted: Wed May 26, 2004 6:14 am Post subject: |
|
|
From the grub manual, An Error 2 is a "Bad file or directory type. This error is returned if a file requested is not a regular file, but something like a symbolic link, directory, or FIFO."
It doesn't seem to be any of these from the ls -l you posted earlier. If formatting the partition and setting it all up again doesn't fix the problem, then I'm stumped. _________________ :wq |
|
Back to top |
|
 |
_dook_master_ Apprentice

Joined: 16 Sep 2003 Posts: 295 Location: Isla Vista, CA
|
Posted: Wed May 26, 2004 6:30 am Post subject: |
|
|
This thing is so slow, that if it comes to formatting again its not worth it. I turned it all the way off, and the BIOS just beeps at me and it won't post, so something's def wrong with it. |
|
Back to top |
|
 |
|