Sign in to follow this  
Followers 0
Dr. Z2A

grub messed up

7 posts in this topic

ok im in the process of installing Gentoo right now and decided on this install to put the /boot within the main / partition and not have a separate /boot partition. I have compared my grub.conf with other peoples and it seems right but it obviously must not be because its screwing up. Whenever I run grub-install i get

Could not find device for /boot: Not found or not a block device

here is my grub.conf:

default 0

timeout 30

title=Gentoo Linux 2.6.14-r2

root (hd0,2)

kernel (hd0,2)/boot/kernel-2.6.14-gentoo-r2 root-/dev/hda3

#for windows dualboot

title=Windows XP

rootnoverify (hd0,0)

makeactive

chainloader +1

The way my partitions are set up is hda1 is win xp, hda2 is linux swap, hda3 is /, and hda4 is /home. Can anyone help me out with this.

0

Share this post


Link to post
Share on other sites

did you use genkernel? if you did grub

 [CODE]sometimes has issues booting a kernel created by genkernel without an initrd statement.

also I noticed a typo. though in a manually configed kernel I usually just leave the statement out.



[CODE]kernel (hd0,2)/boot/kernel-2.6.14-gentoo-r2 root-/dev/hda3

should be

kernel (hd0,2)/boot/kernel-2.6.14-gentoo-r2 root=/dev/hda3

edit:

whoops, didnt see the error grub spit out. How did you install grub. If you only have one hard drive its pretty simple to do a manula install. Try this.


grub> root (hd0,2)
grub> setup (hd0)  
grub> quit

Edited by chillmaster
0

Share this post


Link to post
Share on other sites

oh yeah i did not use genkernel

0

Share this post


Link to post
Share on other sites

kernel (hd0,2)/boot/kernel-2.6.14-gentoo-r2 root-/dev/hda3

Should read:


kernel (hd0,2)/boot/kernel-2.6.14-gentoo-r2 root=/dev/hda3

This might not be it, just making sure you realize this.

0

Share this post


Link to post
Share on other sites

w00t i rebooted and it worked all good. Thanks for the help all

0

Share this post


Link to post
Share on other sites
what was the solution?

After I changed the root=/dev/hda3 to have an = instead of a -, I typed in grub (or w/e the command was I'm kinda tired right now) at the command line then at that prompt:

grub> root (hd0,2)

grub> setup (hd0)

grub> quit

0

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  
Followers 0