Jump to content


Photo
- - - - -

grub messed up


  • Please log in to reply
6 replies to this topic

#1 Dr. Z2A

Dr. Z2A

    Dangerous free thinker

  • Members
  • 845 posts
  • Gender:Male
  • Location:San Francisco

Posted 03 December 2005 - 12:11 PM

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.

#2 chillmaster

chillmaster

    SUP3R 31337

  • Members
  • 165 posts

Posted 03 December 2005 - 04:31 PM

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, 03 December 2005 - 04:34 PM.


#3 Dr. Z2A

Dr. Z2A

    Dangerous free thinker

  • Members
  • 845 posts
  • Gender:Male
  • Location:San Francisco

Posted 03 December 2005 - 05:02 PM

oh yeah i did not use genkernel

#4 b8zs

b8zs

    The phorce is with me!

  • Members
  • 76 posts
  • Location:64 Kbps x24

Posted 03 December 2005 - 05:13 PM

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.

#5 Dr. Z2A

Dr. Z2A

    Dangerous free thinker

  • Members
  • 845 posts
  • Gender:Male
  • Location:San Francisco

Posted 03 December 2005 - 05:26 PM

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

#6 chillmaster

chillmaster

    SUP3R 31337

  • Members
  • 165 posts

Posted 03 December 2005 - 05:37 PM

what was the solution?

#7 Dr. Z2A

Dr. Z2A

    Dangerous free thinker

  • Members
  • 845 posts
  • Gender:Male
  • Location:San Francisco

Posted 05 December 2005 - 09:30 AM

what was the solution?

View Post

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




BinRev is hosted by the great people at Lunarpages!