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.
Hi all. I need your help!
Some days ago I tried to compile new 2.6.17 kernel. But I can`t boot it. There is a message while booting: "Kernel panic - not syncing: VFS: Unable to mount root fs on unknown block (3,3)".
I`ve started to search for help in google and discovered that in that cases people tell to turn on Reiserfs in the kernel. I don't have any Reiserfs partition, but I did it. My problem was not solved, but I`ve got a new message before kernel panic: "No filesystem could mount root, tried: reiserfs, ext3, ext2, ntfs".
Then I`ve discovered that IDE support was configured as a module. I`ve recompiled a kermel with normal IDE support, but the problem wasn`t solved. The errors are the same.
Lilo.conf is ok (I think), because old kernel boots fine.
I hope somebody would help me. Thanks and sorry for my English if I`ve made some errors.
perhaps you need to update your initrd. on your linux source directory, e.g. /usr/src/linux, do 'mkinitrd -o /boot/initrd kernelversion'. where kernelversion is the version of the new kernel you compiled. only do this after you compiled the kernel or if you haven't yet done 'make clean'.
you must also check that initrd in the boot config points to the new initrd file. e.g initrd = /boot/initrd
That`s ok now. The problem was in initrd. I`ve tried to boot without it and now the kernel loads fine. But now I don`t know, how to load modules. As I understand, mkinitrc have made initrd with errors. So, what should I do now to make it properly?
i don't know what went wrong with your setup but i'll just give you a list of commands to redo the installation of the new kernel.
Code:
cd /usr/src/linux-2.6.17
make clean
make oldconfig OR zcat /proc/config.gz > .config
make menuconfig # make sure that no drivers are missing
make
make modules_install
cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.17
cp .config /boot/config-2.6.17
cp System.map /boot/System.map-2.6.17
cd /boot
ln vmlinuz-2.6.17 vmlinuz -sf
ln System.map-2.6.17 System.map -sf
ln config-2.6.17 config -sf
depmod -ae
<modify lilo>
image = /boot/vmlinuz-2.6.17
label = Linux
root = /dev/hda1
append =
read-only
lilo
if you need to run an initrd:
Code:
cd /usr/src/linux-2.6.17
make clean
make oldconfig OR zcat /proc/config.gz > .config
make menuconfig # make sure that no drivers are missing
make
make modules_install
cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.17
mkinitrd -o /boot/initrd.img-2.6.17 2.6.17
ln vmlinuz-2.6.17 vmlinuz -sf
ln System.map-2.6.17 System.map -sf
ln config-2.6.17 config -sf
depmod -ae
<modify lilo>
image = /boot/vmlinuz-2.6.17
label = Linux
initrd = /boot/initrd.img-2.6.17
root = /dev/ram0
append =
read-only
lilo
Edit: added "append = "
The only problem you have is that the kernel can't find its proper modules. If you're not using initrd before, perhaps you just forgot to do 'make modules_install'.
Last edited by konsolebox; 07-29-2006 at 05:13 PM.
Yes. I made kernel in the way that you described. I can boot without a string about initrd in lilo.conf. But there are no modules, so I need to use initrd. To make it I used mkinitrd -o /boot/initrd.img-2.6.17.6 2.6.17.6. Then I`ve added the string in lilo.conf: initrd=/boot/initrd.img-2.6.17.6. Then I`ve entered "lilo" in command line. And as the result I see the error about kernel panic while booting and it doesn`t boot!!!!!!!!!! I don`t know, what to do. The command "make modules_install" was entered while kernel compilation. May be one of the modules conflicts with something and doesn`t let booting the system???????
Last edited by telepuzikk; 07-30-2006 at 05:51 AM.
the problem's far too complicated though it just seems to be a simple error.
ok now i guess you have no other choice but to compile most of the modules (mostly with the ide and fs drivers) as built-in. sorry but i guess that's the only best solution i can tell.
so then you must recompile the kerel with lesser modules then repeat the process again. i don't know but i guess that should solve your problem now.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.