LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   how to get back lilo (https://www.linuxquestions.org/questions/slackware-14/how-to-get-back-lilo-580970/)

thebiggiantmouse 08-30-2007 10:05 AM

how to get back lilo
 
I am using two hardrives slack 12 on hdb winxp on hda. I had to reinstall winxp after a crash. Now my system boots directly into windows without the lilo prompt.Is there anyway to get back lilo? thanx for any help. and a good xp activation crack would be nice too.....just kidding not really

willysr 08-30-2007 10:24 AM

boot your system using Slackware's CD 1
mount your root partition on some mount points, and ran chroot to that directory
next, ran /sbin/lilo and you will have your lilo back

Okie 08-30-2007 03:42 PM

did you get your LILO back?

when you boot your Slackware CD type in as follows:

bare.i root=/dev/hdb1 noinitrd ro (then press enter)

assuming slackware is on the first partition of /dev/hdb (adjust accordingly if needed)

if you have an initrd.img then leave the noinitrd out,

once slackware is booted logon as root and type in /sbin/lilo and you should get your lilo bootloader back...

Road_map 08-30-2007 04:21 PM

Quote:

Originally Posted by Okie (Post 2876147)
when you boot your Slackware CD type in as follows:

bare.i root=/dev/hdb1 noinitrd ro (then press enter)

assuming slackware is on the first partition of /dev/hdb (adjust accordingly if needed)

if you have an initrd.img then leave the noinitrd out

And for Slackware 12.0
Code:

hugesmp.s root=/dev/hdb1 rdinit= ro

Okie 08-30-2007 04:30 PM

lol, roadmap i guess i am behind the times for booting an installed system with Slackware-12, i have not actually had to do it in a long long time, Thanks...

Road_map 08-30-2007 04:41 PM

Quote:

Originally Posted by thebiggiantmouse (Post 2875778)
I am using two hardrives slack 12 on hdb winxp on hda. I had to reinstall winxp after a crash. Now my system boots directly into windows without the lilo prompt.Is there anyway to get back lilo? thanx for any help. and a good xp activation crack would be nice too.....just kidding not really

Quote:

Originally Posted by Okie (Post 2876191)
lol, roadmap i guess i am behind the times for booting an installed system with Slackware-12, i have not actually had to do it in a long long time, Thanks...

Your command is for 11.0, mine is for Slackware 12.0. If I made a mistake, I beg you pardon, but it's not necessary to be ironic.

geek745 08-31-2007 09:54 AM

might want to save your master boot record that contains the xp loader just in case.. i think it's 512kb - copy it out like this, from a linux prompt:

dd if=/dev/hda bs=1024 count=512 of=/root/hda.mbr.20070831

or something like that. assuming hda is the hard drive with the xp boot record on it.

read other posts about saving the master boot record, and arguments about the partition table if you want to restore it in the future.

but the instructions given above should get your lilo loader up and running - using the install cd.

thebiggiantmouse 09-01-2007 01:12 PM

ok thanx for your help. I loaded up my slack dvd booted into root and typed in the command /sbin/lilo and voila lilo is back in effect. thanx for your help everyone.


All times are GMT -5. The time now is 12:59 PM.