What to do when you forgot to 'lilo'...(my little guide)
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.
What to do when you forgot to 'lilo'...(my little guide)
Recently I went crazy because I upgraded the kernel, didn't make a backup kernel, and forgot to lilo....then I went and rebooted my box....
So here is my little guide to help if you ever end up in this situation
First, go make sure that linux will not boot...reboot your machine, at lilo boot screen, press enter, and the computer should more or less just hang up. At least this is what happened to me.
Next, find you slackware install cds, yea they are actually useful AFTER the install
Load up the slackware cd, when it asks what kinda kernel to boot, just do that standard (bare.i) by hitting enter.
When your all ready to go, login as root, and mount your hard drive.
Its usually something like:
Code:
mount /dev/hda3 /mnt
hda3 would be your root partition....change it to meet your setup.
next, you gotta 'lilo'...so:
Code:
/mnt/sbin/lilo -C /mnt/etc/lilo.conf
of course make sure that lilo.conf is edited up to whatever you like...
IF by chance you get something like: This will overwrite/destroy - something something
Then DO:
I always keep some known working kernels and keep a choice in my boot menu, then if I mess something up with a new kernel (like making my root filesystem a module - d'oh!), one of the older kernels will still boot. It doesn't take up that much hard disk space and there is no performance penalty.
Cuase my win2k install is being an arsehat and I need to format it. Doing so will override the LILO boot manager, thus loosing access to slackware.
so after I re-installed windows, would I be able to just boot witht he slackware CD and follow the same steps to get lilo installed again?
or would there be a better preferance of steps for my situation? (I don't have an emergency floppy boot disk cause I didn't have a floppy drive installed at the time)
sorry for the hijack. oh and thanks for the tip anyways Shade. it'll come in handy one day
I installed Slackware 9.1, Lilo to my / partition, just added Slackware 9.1 to Lilo and finished the installation of Slackware 9.1 and restarted back into windows.
Ran bootpart as per instructions above ( skiped down to Create dual-booting in NT/2000 ), and it worked
Yes Schrambo when a new windows installation delete lilo of any linux from MBR you don't loose your linux, you just have to reinstall lilo whit the installation CD in the case of slack, just enter CD1 boot it up, push enter to use the default kernel image, login whit a user name you know root, and then instead of go to cfdisk make partitions bla bla, just run setup and select the part of install lilo. =P
Schrambo i'm so so, sorry. i thought that slackware Setup bring how to reinstall lilo which it not. yesterday someone install windows under my box, and i lost slackware lilo of course, i try to reinstall lilo whit the CD1 and setup, didn't find it, in fact i did found lilo setup installation when i prompt the command liloconfig if you loose your lilo, please do the command liloconfig and not setup. sorry for that mistake.
little_ball. I just tried to give this a little shot on my spare boxen which i use for testing and whatnot. Anyways it doesn't have slackware installed and I just tired booting with the CD and going "liloconfig" but it says command cannot be found". So obvioulsy I have to boot into slackware first in order to do the liloconfig. how do you do this from the CD. do i just go /mount /dev/hda2 then run the liloconfig from there or what?
or should i just make a new boot floppy and use that?
Re: What to do when you forgot to 'lilo'...(my little guide)
Quote:
Originally posted by RohanRNS
/mnt/sbin/lilo -C /mnt/etc/lilo.conf
Another thing you can do is booting of that cd and when you come at the prompt type
Code:
bare.i root=/dev/hdxx ro
this way you just boot into your existing system with the kernel from CD. Then you just log on as root and type lilo. I think this way is somewhat easier, but just chose what you like best .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.