Quote:
When I try to run the generic it starts to load and after a while shows this: Code:
Mounting /dev/sda3 failed Code:
Warning: unable to open an initial console. |
I managed to edit lilo.conf so i am back to normal but sill don't understand why it gave the errors shown in the previous post. Any suggestions how to fix it so i can use the generic kernel?
|
For the generic kernel, that error looks like your initrd was incorrect. Post your attempted lilo.conf and the command you used to create the initrd. As for the huge kernel error, that's an odd one and I don't know how to explain it. Once again, post your lilo.conf file here. It would also be helpful if you posted the output of `mount` so we know that the naming of your hard drive is consistent with your lilo.conf file (I'm not calling you an idiot, just trying to get all of the info just in case you or I missed something in the setup). You may also wish to search the forums about creating an initrd to get a better guide than mine.
|
Quote:
Code:
# LILO configuration file Code:
/dev/sda3 on / type ext2 (rw) Code:
mkinitrd -c -k 2.6.21.5-smp -m reiserfs |
Your problem is your `mkinitrd` command. You set it up to load the reiserfs module, but according to `mount` your / partition is ext2-formatted. Your command should be (I think) `mkinitrd -c -k 2.6.21.5-smp -m ext2`. If that doesn't work you may have to specify the / partition (although you shouldn't have to if you're already booted into your system, regardless of the kernel). To do that, try this: `mkinitrd -c -k 2.6.21.5-smp -m ext2 -f ext2 -r /dev/sda3`. Be sure to delete /boot/initrd.gz and /boot/initrd-tree before creating a new initrd (`rm /boot/initrd.gz` and `rm -rf /boot/initrd-tree` as root should do the trick).
Also, before creating the initrd you should make sure that the following packages are installed: kernel-generic-smp-2.6.21.5_smp-i686-2.tgz kernel-modules-smp-2.6.21.5_smp-i686-2.tgz kernel-huge-smp-2.6.21.5_smp-i686-2.tgz mkinitrd-1.1.2-i486-3.tgz If the packages are installed, they should have an entry in /var/log/packages (type `ls /var/log/packages | grep kernel-generic-smp-2.6.21.5_smp-i686-2` [WITHOUT the .tgz] -- if you receive a result, it's installed. If not, it's not. Do the same for the other packages). As for your huge kernel not working when you edited lilo.conf, just to make sure everything works I would keep the current, working lilo entry the same and just add the new generic entry. That way, your huge kernel should still work because you haven't changed it. REMEMBER to run /sbin/lilo as root to update your MBR BEFORE rebooting into the new kernel. NOTE: This whole time I have assumed you are using the smp kernel and not the uniprocessor, non-smp kernel. To check, type `uname -r`. It should say something about smp. If it doesn't, then report back and I'll fix my above instructions. I'm really making this sound 100 times harder than it is (it all takes under a minute to do once you know what you're doing), so sorry if my explanation is poor. Good luck. |
It is all working now :) I didn't have mkinitrd-1.1.2-i486-3.tgz installed so after installing it i run the command and everything working :) It is just that I don't see any difference. Well anyway the first thing I do when i have some spare time is compiling new kernel and KDE:). At least now I feel safe If I get it wrong. You have been great help!!! Thank you
|
As far as I know the only place you'll REALLY notice a difference, if at all, is during bootup. A custom kernel may run faster than the huge kernel because fewer modules are loaded, but it won't run any faster than the generic kernel (because the same modules will be loaded -- although they may be compiled into the kernel itself, they're still taking up the same amount of memory). Basically a custom kernel may shorten bootup time (plus it may improve hardware interfacing if you use a newer version). I usually stick with the original kernel until a newer release comes out (however, a new kernel release is usually out before I can download the ISOs. ;)).
|
Quote:
Any suggestion? G |
All times are GMT -5. The time now is 12:40 AM. |