SlackwareThis Forum is for the discussion of Slackware Linux.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I woke up this morning feeling brash, so I decided to try to compile a 2.6.0 kernel for my new Slackware laptop. You've gotta learn sometime, right? So after a bit of researching, I went through all of the motions, rebooted, and now I'm faced with:
VFS: Cannot open root device "305" or hda5
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs
I had absolutely no error messages at any other point in the process of compiling the new kernel.
I'm ashamed to say that I didn't read the guide that is up on these forums first. I didn't even think to check here (I just googled stuff like 'compiling a new kernel' etc.).
Can anybody help me troubleshoot this?
Edit: to clarify, my linux partition *is* located on hda5.
Looks like you need some modules to access the partition (fs supported as a module?) but you didn't include them in your initrd image...
Actually I never needed initrd, I've always statically included drivers for /, so I can't help you much...
Can you boot back in your 2.4 kernel (should be vmlinuz.old) to fix things or if needed recompile? With grub you'll have no problems, just go to command prompt ("c") and type
Yep, I can boot back into 2.4.22 (I just added a lilo entry for the new kernel). Any idea as to what exactly is causing my problem? You alluded to initrd, but I'm completely lost, so you'll have to start from square 1.
Well, that's a sort of hen&egg problem: you may need kernel modules to access some filesystems, but the modules are on these filesystems...
There are 2 ways to get out of this:
1. (recommended) statically build into your kernel support for the filesystem you need (ext3? raisefs?)
2. make lilo "blindly" load into memory a chunk of data which actually is a disk image containing required modules
I never did the latter, you can find more info in the kernel-compile-howto
PS: I'm going to sleep now, I'll check for news tomorrow CET
I'm almost positive that I compiled in support for ext3. I can verify tomorrow by checking the .config file in my 2.6.0 src directory, right? I'll post the results tomorrow afternoon (I'm going out tonight -- EST here). So you're assuming I accidentally compiled ext3 support as a module, and the module can't be loaded, because the filesystem can't be loaded. Crap.
Any other takers on this one? With perhaps a more optimistic evaluation of the problem?
EDIT: I checked my .config file. It turns out that I did build EXT3 and EXT2 support into the kernel (I think). Here are the relevant lines:
what kind of hard drive do you have? im not to sure about this judging by the error but it could be possable that you copiled the hard drive driver as a module.
It took me 5 compiles to finally get it down to a fully functional kernel, and two compiles to get a bootable kernel. a good idea for a starter is to use the default config file from slackware and just taylor it to your needs, it works better when going between 2.4 versions, but I sucessfully made a 2.6 kernel with my default slackware config file (after heavy modification, and I didnt use it cause I have a 2.4 winmodem driver)
lastly, if you dont know all your system specs, search around and try to find all your chipsets for all your hardware if you can.