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'm running Slackware 10.0 on a Compaq 733MHz with 128 Meg. It is one of the machines that have USB everything except for the video. There are no other ports. Slackware installed fine and was working great with the 2.4.26 kernel. But since I'm trying to learn as much as I can, I decided to try my hand at building a new kernel. Everything seemed to go fine. When I reboot, I get some kernel panic errors and it freezes up.
First I got a kernel panic that pointed to not finding a file system on a USB drive. I don't have a USB drive, so I went back into menuconfig and changed that. I also went thru the other menus and used help to determine if I needed that support. I re-did the make and the modules_install.
Now I get:
UDF-fs: No partittion found (1)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block (3,1)
I don't know how to procede. Any suggestions?
F_M
edit: Forgot to mention that I added the 2.6.11.11 kernel to LILO, so I am able to boot with the old kernel, just not the new.
Last edited by Fritz_Monroe; 06-10-2005 at 01:26 PM.
Distribution: Slackware 11.0; Kubuntu 6.06; OpenBSD 4.0; OS X 10.4.10
Posts: 345
Rep:
Okay, UDF is a file system used on CDROMs and DVDs. I doubt that it is a filesystem that you would want compiled into the kernel as your base file system. The UDF filesystem is under File Systems --> CDROM/DVD Filesystems --> UDF Filesystem support in `make menuconfig`. It is not a file system you would probably want to boot from.
What file system are you using on your root partition? What does `dmesg` say about file systems during boot? My bet is that it is ext2. Do you have ext2 support compiled into the kernel? What does `dmesg` say right after you boot?
If he's running slack 10 then it's more likely to be reiserfs or ext3.
Use menuconfig again and make sure to compile support for ext3 and reiser into your kernel, NOT AS MODULES!
Yes, I'm using reisers. I assume you don't want the entire output of dmesg. The part concerning the filesystem is:
reiserfs: found format "3.6" with standard journal
reiserfs: checking transaction log (device ide0(3,1)) ...
for (ide0(3,1))
ide0(3,1): Using r5 hash to sort names
VFS: Mounted root (reiserfs filesystem) readonly.
Yes, it does because if it is recognising your disk as reiserfs then you must already have those drivers built into the kernel. I would say you're missing something from the kernel build but I can't think exactly what.
The part I posted is from successfully booting up with 2.4.26 and then running dmesg. I'm such a newbie that I didn't know what you were asking for. Is there a way for me to pipe the boot messages into a text file? Right now the lines I'm able to see above the kernel panic are about ALSA and the USB keyboard and mouse. There are a couple network related lines also, but nothing file system related. These are also not error type messages.
Distribution: Slackware 11.0; Kubuntu 6.06; OpenBSD 4.0; OS X 10.4.10
Posts: 345
Rep:
As root, you can look through /var/log/messages to see what was written during your last boot. An easier way, however, would probably be to use cat and grep to find what was written. Try this:
cat /var/log/messages | grep -C 10 panic
That should give you the "Kernel panic" line with ten lines of context. (If you can't find anything in /var/log/messages, look in /var/log/messages.1 or /var/log/messages.2, etc.) That context might yield a clue to what is going on.
Does /etc/lilo.conf show a different root for the 2.6.11.11 kernel than it does for the 2.4.26 kernel? What command did you use to run lilo when you added the new kernel?
I'll dig thru there and see what I can come up with. I don't have access to the workstation right now, so has to wait for me to get on it.
As for lilo.conf, I set it up so that vmlinuz points to 2.6.11.11, then I added an additional section that points to 2.4.26. So, I'm able to boot up into 2.4 fine.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.