Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Big GRUB problem.....
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
_dook_master_
Apprentice
Apprentice


Joined: 16 Sep 2003
Posts: 295
Location: Isla Vista, CA

PostPosted: Wed May 26, 2004 4:54 am    Post subject: Big GRUB problem..... Reply with quote

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
View user's profile Send private message
farrioth
Apprentice
Apprentice


Joined: 23 Nov 2003
Posts: 282
Location: Auckland

PostPosted: Wed May 26, 2004 5:00 am    Post subject: Reply with quote

Error 2 means bad file or directory type. Give me the complete output produced by grub, and your grub.conf file.
Back to top
View user's profile Send private message
_dook_master_
Apprentice
Apprentice


Joined: 16 Sep 2003
Posts: 295
Location: Isla Vista, CA

PostPosted: Wed May 26, 2004 5:03 am    Post subject: Reply with quote

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
View user's profile Send private message
_Nomad_
Guru
Guru


Joined: 11 Apr 2003
Posts: 571

PostPosted: Wed May 26, 2004 5:13 am    Post subject: Reply with quote

the kernel line should look something like this instead
Code:
kernel (hd0,0)/bzImage ......
Back to top
View user's profile Send private message
_dook_master_
Apprentice
Apprentice


Joined: 16 Sep 2003
Posts: 295
Location: Isla Vista, CA

PostPosted: Wed May 26, 2004 5:24 am    Post subject: Reply with quote

_Nomad_ wrote:
the kernel line should look something like this instead
Code:
kernel (hd0,0)/bzImage ......

Still doesn't work. :P
Back to top
View user's profile Send private message
farrioth
Apprentice
Apprentice


Joined: 23 Nov 2003
Posts: 282
Location: Auckland

PostPosted: Wed May 26, 2004 5:34 am    Post subject: Reply with quote

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
View user's profile Send private message
_dook_master_
Apprentice
Apprentice


Joined: 16 Sep 2003
Posts: 295
Location: Isla Vista, CA

PostPosted: Wed May 26, 2004 5:52 am    Post subject: Reply with quote

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
View user's profile Send private message
darksbane
n00b
n00b


Joined: 15 Apr 2004
Posts: 28
Location: Fredonia, NY

PostPosted: Wed May 26, 2004 6:02 am    Post subject: Reply with quote

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
View user's profile Send private message
_dook_master_
Apprentice
Apprentice


Joined: 16 Sep 2003
Posts: 295
Location: Isla Vista, CA

PostPosted: Wed May 26, 2004 6:03 am    Post subject: Reply with quote

It's ext2, and nope, its actually in the dir.
Back to top
View user's profile Send private message
farrioth
Apprentice
Apprentice


Joined: 23 Nov 2003
Posts: 282
Location: Auckland

PostPosted: Wed May 26, 2004 6:11 am    Post subject: Reply with quote

_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
View user's profile Send private message
darksbane
n00b
n00b


Joined: 15 Apr 2004
Posts: 28
Location: Fredonia, NY

PostPosted: Wed May 26, 2004 6:14 am    Post subject: Reply with quote

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
View user's profile Send private message
_dook_master_
Apprentice
Apprentice


Joined: 16 Sep 2003
Posts: 295
Location: Isla Vista, CA

PostPosted: Wed May 26, 2004 6:30 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum