Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Boot stops at GRUB
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
liqui1101
n00b
n00b


Joined: 31 Aug 2010
Posts: 5

PostPosted: Wed Sep 01, 2010 8:30 pm    Post subject: Boot stops at GRUB Reply with quote

Additional Info:
I followed the installation handbook (x86) and I am at the last step which is to reboot. So I go ahead and reboot and take out my minimal installation CD.

The problem:
The computer boots up GRUB to command line with "GRUB>". So if I am correct, this is not so-pose to happen (Kernel is not booting). I must of done something wrong in the grub.conf file.

My question:
How do I access the grub.conf file again? I understand that I must use the live CD once again. I do not know how to access my harddrive files using the live CD.
Back to top
View user's profile Send private message
denysonique
n00b
n00b


Joined: 17 Apr 2010
Posts: 60
Location: London

PostPosted: Wed Sep 01, 2010 8:35 pm    Post subject: Reply with quote

You probably need to follow the chapter on the installation of GRUB again.
To access your files you need to mount your partition.
For example: mount /dev/sda1 /mnt/gentoo.

/dev/sda1 is the first partition of your first hard drive.

Use fdisk -l to list your partitions.

After you have accessed your partitions please post your /boot/grub/menu.lst.
Back to top
View user's profile Send private message
rh1
Guru
Guru


Joined: 10 Apr 2010
Posts: 501

PostPosted: Wed Sep 01, 2010 8:36 pm    Post subject: Reply with quote

You can just remount them and even chroot back in like when you installed, Example after rebooting livecd:
Code:

mount /dev/sda3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot
mount -t proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
cp /etc/resolv.conf /mnt/gentoo/etc/
chroot /mnt/gentoo /bin/bash
env-update && source /etc/profile


You can of course just stop at mounting your partitions if you don't need to chroot to fix.
Back to top
View user's profile Send private message
liqui1101
n00b
n00b


Joined: 31 Aug 2010
Posts: 5

PostPosted: Thu Sep 02, 2010 3:16 am    Post subject: Reply with quote

Here is what I have in /mnt/gentoo/boot/grub/menu.lst
Code:

default 0
timeout 30
#splashimage=(hd0,0)/boot/grub/splash.xpm.gz

#tittle Gentoo Linux 2.6.24-r5
#root (hd0,0)
#kernel /boot/kernel-genkernel-x86-2.6.24-r5 root=/dev/ram0 real_root=/dev/sda3
#initrd /boot/initramfs-gebkernel-x86-2.6.24-gentoo-r5

#vim:ft=conf:
[/code]
Back to top
View user's profile Send private message
Krisando
n00b
n00b


Joined: 01 Sep 2010
Posts: 7

PostPosted: Thu Sep 02, 2010 4:36 am    Post subject: Reply with quote

liqui1101 wrote:
Here is what I have in /mnt/gentoo/boot/grub/menu.lst
Code:

default 0
timeout 30
#splashimage=(hd0,0)/boot/grub/splash.xpm.gz

#tittle Gentoo Linux 2.6.24-r5
#root (hd0,0)
#kernel /boot/kernel-genkernel-x86-2.6.24-r5 root=/dev/ram0 real_root=/dev/sda3
#initrd /boot/initramfs-gebkernel-x86-2.6.24-gentoo-r5

#vim:ft=conf:
[/code]

I'm no expert but # is commenting out.
Back to top
View user's profile Send private message
digrouz
Tux's lil' helper
Tux's lil' helper


Joined: 19 Feb 2005
Posts: 124
Location: Mouscron, Belgium

PostPosted: Thu Sep 02, 2010 6:08 am    Post subject: Reply with quote

yes remove the # at the beginning of each line and check if it works now.
_________________
There are 10 types of people in the world: those who understand binary, and those who don't.
Back to top
View user's profile Send private message
Slippery Jim
Apprentice
Apprentice


Joined: 08 Jan 2005
Posts: 264

PostPosted: Thu Sep 02, 2010 7:28 am    Post subject: Reply with quote

liqui1101 wrote:
Here is what I have in /mnt/gentoo/boot/grub/menu.lst
Code:

default 0
timeout 30
#splashimage=(hd0,0)/boot/grub/splash.xpm.gz

#tittle Gentoo Linux 2.6.24-r5
#root (hd0,0)
#kernel /boot/kernel-genkernel-x86-2.6.24-r5 root=/dev/ram0 real_root=/dev/sda3
#initrd /boot/initramfs-gebkernel-x86-2.6.24-gentoo-r5

#vim:ft=conf:
[/code]


First, remove the # characters from the four lines starting with tittle, root, kernel, and initrd. Like the previous poster said, they mean that everything after them on a line is a comment, and is ignored by GRUB.

Second, change the spelling of tittle to title. (I.e, lose the extra "t"). It's a keyword, and GRUB will complain if it's spelled wrong.

Third, and optionally, you can uncomment the splashimage line if you want. It just makes the boot menu look nicer, but is not an error if it's commented out with the #.

Hope this helps you.

EDIT:

Oh yeah, and update the paths to your kernel and initrd to match your actual ones in /boot. Same goes for your real_root partition.


Last edited by Slippery Jim on Thu Sep 02, 2010 7:32 am; edited 1 time in total
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Thu Sep 02, 2010 7:28 am    Post subject: Reply with quote

simply removing the comments will be insufficient, as it is unlikely you have a 2.6.24 kernel sitting on /boot

you will need to uncomment AND adjust the paths accordingly.

after you built your kernel, there should have been a step that had you 'cp arch/x86/boot/bzImage /boot/<somefilename>'

did you follow this step?

If so, you will need to update grub.conf to point to whatever file name you gave the copied bzImage.


My grub.conf as an example:

Code:

default 0
timeout 10
splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title Gentoo Hardened (2.6.29)
root (hd0,0)
kernel /boot/kernel root=/dev/sda3


after I built my kernel with make && make modules_install, ensuring /boot is mounted, I:

Code:

cp arch/x86/boot/bzImage /boot/kernel
vi /boot/grub/grub.conf
<edit it to look like the above, and save>


So your problem is twofold:

-you have everything commented out
-the commented portions need to be updated to point at your kernel, and optionally, your initramfs if you used one.

Have a re-read of the "configuring your kernel" portion of the handbook, as well the "configuring a boot loader" section, seems ya missed a few spots!
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
Slippery Jim
Apprentice
Apprentice


Joined: 08 Jan 2005
Posts: 264

PostPosted: Thu Sep 02, 2010 7:37 am    Post subject: Reply with quote

cach0rr0 wrote:
after you built your kernel, there should have been a step that had you 'cp arch/x86/boot/bzImage /boot/<somefilename>'

did you follow this step?



He might have used genkernel to build and install his kernel. It's in the handbook. Either way, yeah, he needs to edit the paths to match.
Back to top
View user's profile Send private message
liqui1101
n00b
n00b


Joined: 31 Aug 2010
Posts: 5

PostPosted: Thu Sep 02, 2010 6:36 pm    Post subject: Reply with quote

Thank you all for the replies. Yup, I did use genkernel.
Back to top
View user's profile Send private message
Slippery Jim
Apprentice
Apprentice


Joined: 08 Jan 2005
Posts: 264

PostPosted: Fri Sep 03, 2010 3:55 am    Post subject: Reply with quote

liqui1101 wrote:
Thank you all for the replies. Yup, I did use genkernel.


So, did you get it working?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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