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.
I was re-installing my system.. both windows and linux and I realised I screwed up my windows install so I re-installed it and that killed lilo... it just boots straight into windows now... so I tried booting off cd and just reinstalling lilo with the `lilo` command.. It installed and I started booting into slack... until it gave me a kernel panic and sort of died there... any ideas on how to fix it?
I don't know that this is the most practical answer but if I were in your shoes, I'd just format and start over. I prefer to just wipe the drive and make sure I have a clean install. It just seems to save me problems later on down the road. However, if you don't want to start from scratch again, I'd suggest booting a live CD and checking your LILO. You could also try re-installing Slackware. I'm sure you've heard it before, but it's usually easier to install Windows first.
1. Using fdisk recreate the partition table exactly as it was before the accident (In the best possible case, Windows only altered the bootloader and didn't touch the partition table, so this step may not be necessary).
2. Using a rescue disk, mount your linux partition (e.g. mount -t ext3 /dev/hda2 /mnt).
3. Install the boot loader (e.g. lilo -r /mnt).
Edit: The above assumes that Windows just altered the MBR. If, in addition, Windows installed itself on the entire drive, then all is lost and you must reinstall Linux.
well..there's nothing wrong with the partition table,
and re-installing lilo should work.
( i understand that both win and Slack-with-cd can be booted )
so my Q.'s (...if you boot the cd with " mount root=....etc...):
- what's the output when you run lilo ?
-what error messages do you get when you try to boot Slack from the lilo-menu ?
btw:formatting and starting all over is for win-loosers.
btw:formatting and starting all over is for win-loosers.
I guess that makes me a "win-loser"...
I'm certainly not a linux guru, so I'll ask this for my information and possibly someone else's. Can LiLO cause a kernel panic? It seems to me that LiLO worked after it was re-installed and the problem was actually with the Kernel.
yip, it looks like lilo worked ok , but maybe not with the right options.
also i guess reinstalling win will not touch other partitions
( although with win you never can be sure about that ).
but with Linux it's most of the time easier to repair things, than to reinstall all.
( for example.: if the kernel is no good for some reason i wouldn't know,
then installing a standard kernel could solve it )
and in general, it's always better to understand a problem and learn how to repair it,
than just do an all-curing re-install
it's one of the advantages of Linux over win and you don't have to be a guru
or smth. like that.
you learn such things " on the fly " , but only if you put in some effort to learn.
now it's important to know the exact error message that the kernel gives at boot.
IF you use Windows NT/2000/XP, you shouldn't put lilo on your MBR if you want to dual boot Windows and Linux. Install lilo on your linux drive and let windows have the MBR, it will be happier and I think it's even required, and dual boot with windows:
1. Install lilo on your linux drive
lilo.conf:
boot = /dev/hda1
3. copy the file bootlinux.lnx on your windows drive. Don't copy directly to a NTFS drive you might break it. Instead copy the file to a floppy or a vfat drive first.
4. Edit the file C:\boot.img and add c:\bootlinux.lnx
5. In windows go to control panel -> system, look for the boot option and check for a prompt option with a delay and a default boot option. I'm sorry for not being more specific, I'm writing this out of memory.
6. Remember to repeat this process every time you compile a kernel or make any kind of modification to your lilo
Also google "dual boot linux window" there is a lot of good info, even on the MS site..
Originally posted by mixtr IF you use Windows NT/2000/XP... ...let windows have the MBR... ...t's even required
no its not
lilo will boot windows perfectly fine.
If you haven't altered the partition table you should just be able put the slackware setup CD in, fire up your computer then when it gets to the point where you would normally fdisk/ run the setup script, mount your partition with the slackware install on, for example
Code:
mount /dev/hda1 /mnt
then reinstall lilo using your system lilo.conf file like this:
Code:
lilo -C /mnt/etc/lilo.conf
if you had linux and windows dual booting before then the configuration for firing up windows will be in that file
I had a truckload of problems dual booting win+linux before I discovered that method, which is the only one that worked for me. Windows never liked it when I put lilo in MBR. Windows and me were happy to find this compromise.
But now I don't really care, I was generally unahppy with windows and I am now winfree and a happy slacker!
Let's summarize some things here, or correct some others.
If paritioning is done properly, and the installation went okay, there is rarely if ever a reason to reinstall. Sometimes it is easier if you don't know what happened or how to fix it, but it is not necessary.
If lilo is currently set up to look for the kernel in the wrong partition, by the wrong kernel name, or some other problem, the yes you will get a kernel panic.
If you update your kernel, unless you changed its name, you usually just have to rerun lilo to have it recognized and boot normally.
I would say from my experience that most multi boot setups using lilo, have lilo installed to mbr. Certainly not all, but most.
If /etc/lilo.conf is not correct, just rerunning lilo is not going to correct your problem.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.