Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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?
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).
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.