LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-04-2004, 03:28 PM   #1
jiggywiggy
Member
 
Registered: Aug 2003
Distribution: OS X (Darwin)
Posts: 57

Rep: Reputation: 15
can't boot to gentoo


I installed gentoo with the 2.6.1 kernel and used genkernel to compile. I have grub configured, but when I boot it can't read my root directory. Need help.
 
Old 02-04-2004, 06:06 PM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
To quote one of the moderators here: "We're not mind readers"

We need more information to be able to help. Like, what does your grub.conf look like (or lilo.conf if you swing that way ), and what does your partitioning scheme look like? Do you have support for the file systems you use built in?


Håkan
 
Old 02-04-2004, 06:58 PM   #3
jiggywiggy
Member
 
Registered: Aug 2003
Distribution: OS X (Darwin)
Posts: 57

Original Poster
Rep: Reputation: 15
My grub.conf file is

code:

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

title=Gentoo
root (hd0,1)
kernel (hd0,1)/boot/kernel-2.6.1-gentoo root=/dev/hdb4
initrd (hd0,1)/boot/initrd-2.6.1-gentoo

title=Windows XP
root (hd0,0)
chainloader +1


My partitions are:

1st windows xp
2nd linux boot
3rd linux swap
4th linux root

and I don't know if I have support for the file systems built in.
 
Old 02-05-2004, 05:03 AM   #4
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
Your grub.conf looks fine, although I always keep an option to use my "last" kernel to be able to roll back if something doesn't work right with the new kernel. However I suppose you could be doing your initial installation and if so you won't have an older kernel install.

You *must* have support in the kernel for the file systems you use. If you don't you will probably end up in a situation like this one. If you use reiserfs you will need reiserfs support, and so on.

First, check that you have a symlink /usr/src/linux pointing to the correct directory (the kernel you're currently using). It should point to /usr/src/linux-2.6.1-gentoo or something to that effect. If you have a linux-beta symlink that's not enough, you should always have the "linux" symlink pointing to the current kernel source directory. If you don't have the link, cd over to /usr/src and type ln -s linux-versionblaha-that-you're-using linux or ln -s linux-2.6.1-gentoo linux if that's what you're currentl kernel is called.

Then cd to the linked linux directory: cd /usr/src/linux and type make menuconfig. Select File Systems and make sure these are selected:
* Second extended fs support
* Ext3 journalling file system support
* Reiserfs support
* Stats in /proc/fs/reiserfs
The other options should be OK (you're not likely to use XFS or JFS). Then enter the Pseudo Filesystems subsection. You will want these options there:
* /proc filesystem support
* /dev filesystem support (OBSOLETE but Gentoo doesn't care, heh)
* automatically mount (devfs) on boot
* /dev/pts filesystem
* virtual memory fs (former shm fs)

Exit and save your configuration, then build and install the kernel and modules as per the Gentoo documentation. Then give it another try!

Building kernels is a bit confusing at first but you'll get used to it pretty soon. It's really not that hard once you remember what things to include and what commands to run (which isn't all that many to be honest).

Good luck!

Håkan
 
Old 02-05-2004, 08:44 AM   #5
jiggywiggy
Member
 
Registered: Aug 2003
Distribution: OS X (Darwin)
Posts: 57

Original Poster
Rep: Reputation: 15
I checked the symlinks and didn't really know if I had one then I made one. So I looked a little better and now I have two. I deleted one just using rm. I don't know if that was right or not so I would be happy if you could tell me. About the kernel though I recompiled with your specified items and didn't change anything else. Then recompiled. Now I get a little farther with the boot, but now I'm stuck at mount /proc. I making really small steps, but maybe I'll get there some time.

Last edited by jiggywiggy; 02-05-2004 at 02:25 PM.
 
Old 02-05-2004, 05:08 PM   #6
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
OK then.
Open up your /etc/fstab in an editor (nano -w works fine) and make sure you a line exactly like this in it:
Code:
none                    /proc           proc            defaults                0 0
I don't really know but it's possible that you would get a more verbal error if the kernel can't find where to mount /proc so I don't really know if this is the problem.

As for the symlink - if you emerge the 2.6 Gentoo kernel sources you will get a symlink called linux-beta in /usr/src. It doesn't really do much. The linux link in that same directory is important when building other packages that depend on the kernel source (like device drivers).

You might want to search the Gentoo Forums for information about the kernel stopping at "Mounting /proc". I have never come across it myself. But anyway, bookmark the Gentoo Forums, there is a wealth of knowledge there, both Gentoo-specific and general Linux stuff.


Håkan
 
Old 02-05-2004, 07:15 PM   #7
jiggywiggy
Member
 
Registered: Aug 2003
Distribution: OS X (Darwin)
Posts: 57

Original Poster
Rep: Reputation: 15
I figured I would stop all these different errors by just reinstalling all of Gentoo. I thought maybe I could used all my new found knowledge and do a better job of installing. Instead of installing from stage 3 I've decided to start with 2, because stage 1 looked like a little to much for me to handle. I'll post when I get done installing.
 
Old 02-07-2004, 10:48 AM   #8
jiggywiggy
Member
 
Registered: Aug 2003
Distribution: OS X (Darwin)
Posts: 57

Original Poster
Rep: Reputation: 15
I got Gentoo to work from stage 2. Thanks for all your help.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gentoo : grub: The file /boot/boot/grub/stage1 not read correctly Boudewijn Linux - Software 3 05-21-2008 03:13 AM
Gentoo-Im dumb and deleted /boot/boot Grub Says: Error 26 : Too many symbolic links smehi Linux - Software 5 06-24-2006 06:25 AM
dual boot xp/gentoo (selecting boot for each partition) saif__r Linux - Newbie 8 08-13-2005 10:23 AM
Gentoo Boot mburoff Linux - Newbie 4 08-01-2005 11:55 PM
Dual boot w/ Gentoo/xp pro vs. gentoo-invalid partition table bobbear Linux - Software 3 02-10-2004 04:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration