SlackwareThis Forum is for the discussion of Slackware Linux.
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.
Well, I guess all the studying I did prior to trying to compile and configure a new 2.5.15 kernel was not enough. Not sure what I have done, but I cannot boot even into the original kernel. I have somehow changed the system map and boot information for everything and it will not boot. I can still boot with the floppy, so my question is: is there any way I can restore the original boot files (to the 2.4.31 kernel) or am I looking at a complete reinstall?
Fear not! Boot from the install CD (#1). When you get the "Welcome to slackware...." welcome screen with the "boot:" prompt, enter:
Code:
boot: bare.i root=/dev/hda1 noinitrd ro
Substitute whatever kernel you used during the origial install (IIRC you have SATA disks, so you'll probably want the sata.i kernel) and the correct root= option and hit enter. (These instructions are on the screen, but it may time out before you get it all)
Once again, thank you for your reply. You are right, this instruction does boot me back into Slackware, but it does it primarily the same way the floppy does. I guess I not thoroughly understand the instructions you were referreing to (I didn't actually see any instructions). Once passed the original screen, it booted into the OS to a normal prompt. Nothing really changed. On reboot, it does the same thing, goes to a blank screen. The boot file shows
vmlinuz as it did before, but also shows vmlinuz.old and systemmap.old. I guess this is where I have screwed it up. It is these boot files that seem to be corrupted.
Is it possible to restore this to the original condition so that it will boot from grub as it did originally?
I am going to try to rename the vmlinuz.old to vmlinuz and remove the current vmlinuz and do the same for System.map old to see if that restores it. If it doesn't, looks like a complete reinstall. Disappointing, because it took quite a while to get verying configured (hardware) the way I needed. But, I guess that's the way it goes sometimes when you are learning.
Don't remove current vmlinuz. Just move it to another directory. When you manage to boot properly again, you could check why it (current vmlinuz) was not booting correctly.
(not entirely sure what the SATA kernel package is called as I have no SATA stuff, I guessed based on the name of the ide one, substitute as appropriate)
Then you can run pkgtool and use the "Setup Choose Slackware installation scripts to run again" option, and then re-run the kernel installation script to re-install your 'default' kernel (if you booted from the CD, it should already be mounted, if not you'll have to cancel and mount it).
Hopefully that'll get you back to square one, as it were.
I am going to try to rename the vmlinuz.old to vmlinuz and remove the current vmlinuz and do the same for System.map old to see if that restores it. If it doesn't, looks like a complete reinstall. Disappointing, because it took quite a while to get verying configured (hardware) the way I needed. But, I guess that's the way it goes sometimes when you are learning.
I will try this tonight. Off to work..
Thanks for your help.
Bob
Hi,
Bob, use the cd1 to boot then;
#mkdir /bob
#mount /dev/sda1 /bob #use you device
#chroot /bob
Now edit your lilo or grub to point to your original configuration. In the future you should leave the working stanza in the configuration. When you did a make install the script changed your configuration to point to the new image configuration after copying files.
I like to manually install my new image then edit the lilo.conf to reflect the change therefore keeping a known working configuration that I can get back into if a problem exists with the new image.
You could look at Shilo's web site, reference #11 in my sig. He has some good pointers/procedures that will help you.
"Does not boot" and "all I see is a blank screen"are two different errors.
Having a quick skim around for information on Grub (like most Slackers, I use lilo), I've pulled up this site (http://wiki.antlinux.com/pmwiki.php?n=HowTos.VgaModes). You should check to make sure that you are passing vga=normal to grub otherwise you're probably trying to use a VESA framebuffer. Have a look around for "blank screen boot" problems and you'll see that actually your kernel is fine, you've just messed up the framebuffer options in the kernel.
Try waiting for it to boot then logging in blindly and typing `startx` - if you have a working xorg.conf file then you should get your window manager up, where you can recompile your kernel and try and fix the framebuffer problems.
Can I ask why you are using the 2.5 kernel series, and not 2.6?
A few last words:
1. Check Shilo's guide out for kernel recompiles - it is awesome.
2. Backing up vmlinuz and System.map and restoring the .old versions should work just fine. Under lilo you have to rerun `lilo`, but i understand grub doesn't need to do that.
3. You can save your kernel configuration from place to place - it's just a text file and is located, typically, in /usr/src/linux/.config
Finally the big one:
There is (almost) nothing in Linux that cannot be fixed. Reinstalls are so rarely required, the primary reasons for a reinstall being a) it's faster to reinstall than to fix and b) your security has been compromised and you don't know what you can trust.
Having a broken kernel is not the end of the world, and by using the "bare.i root=/dev/hda1" boot lines from a disk, you are effectively booting your system with a different kernel. If you can do that, then you can repair the "damage" done by your installed kernel not booting.
Let us know how you do and if you need more info =)
- Piete.
How do I go about reinstalling the kernel 2.4.31. I followed your instructions, removed the packages, re-ran the setup scripts from pkgtool,,,same result, will not boot.
UPDATE: I fixed the boot problem by renaming the vmlinuz.old file in boot to vmlinuz and just overwrote it. System booted to the original kernel after doing that. This restored the original vmlinux file that grub looked for to boot. I am sure this was not the desired way to repair this problem, but it worked.
I am going to do a lot more research before I attempt to install an updated kernel again. Also, when I do attempt it again, I want to find a way to be able to boot the different kernels (old and new) so that I can avoid these problems in the future.
As always, thanks to everyone who came to my aid. I must say, the help I have received in this forum is superb. I look forward to the time I can serve others as well.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.