Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
<solved> Grub "Error 2" ??
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
appleshampoo
Tux's lil' helper
Tux's lil' helper


Joined: 26 Sep 2004
Posts: 116

PostPosted: Tue Aug 29, 2006 9:39 am    Post subject: <solved> Grub "Error 2" ?? Reply with quote

I've been futzing around with the hard disk configuration on one of my boxen, and now grub won't boot my kernel, failing with the mysterious "error 2." According to the grub manual (http://www.linuxselfhelp.com/gnu/grub/html_chapter/grub_13.html), error 2 means "a file requested is not a regular file, but something like a symbolic link, directory, or FIFO."

I have booted from a live CD and checked the the drive with the boot partition on it, and it looks fine, and the kernel file is there and grub.conf looks good....any ideas what might be wrong?

Also I just ran e2fsck -cc on the boot partition and it came back okay....so it seems like the drive is okay. I really don't want to start from scratch here as I have a perfectly good gentoo install on this stupid drive....


Last edited by appleshampoo on Tue Sep 05, 2006 7:00 pm; edited 1 time in total
Back to top
View user's profile Send private message
batistuta
Veteran
Veteran


Joined: 29 Jul 2005
Posts: 1384
Location: Aachen

PostPosted: Tue Aug 29, 2006 12:16 pm    Post subject: Reply with quote

have you tried running boot in iteractive mode? Most likely you are passing a wrong location or command, and running in iterative mode could help you to track this problem.
What have you exactly changed in your HD configuration?
Back to top
View user's profile Send private message
appleshampoo
Tux's lil' helper
Tux's lil' helper


Joined: 26 Sep 2004
Posts: 116

PostPosted: Tue Sep 05, 2006 12:17 am    Post subject: Reply with quote

Okay figured this out...in case anyone else is getting random "Error 2" grub errors when all of your directories and hard drives are set up correctly and everything. The problem is that I had been messing with the IDE HDD autodetection settings in my BIOS earlier, and honestly I don't know exactly what I did to make it work again, but tweaking them made grub work again.
Back to top
View user's profile Send private message
batistuta
Veteran
Veteran


Joined: 29 Jul 2005
Posts: 1384
Location: Aachen

PostPosted: Tue Sep 05, 2006 7:01 am    Post subject: Reply with quote

probably your BIOS reported the order of your HD in a different way, so your HD0 and HD1 got swapped or something. The grub command line usually allows you to find out the order, but if you've solved it, then cool! 8)

Please mark the issue as [solved] in the subject
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