LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Reinstalling LILO (https://www.linuxquestions.org/questions/slackware-14/reinstalling-lilo-484612/)

Andriy 09-18-2006 07:54 AM

Reinstalling LILO
 
Hi! I have a problem concerning one of my babies. This baby of mine has two OS, Slackware and Winbloze. I think one of the system file of my Winbloze got absolutely corrupted and I'm experiencing difficulty at the moment, it frequently freezes after booting. So, I thought it would be best if I format the partition where winbloze is and reinstall it. My dillema is that, if I format that partition and reinstall winbloze, it will overwrite the MBR where lilo resides and I may not be able to boot Slack. I don't want my Slack partition to be lost since I use it for work. Can I just reinstall LILO after installing winbloze? or are there other ways to deal with this thing? My /boot and / resides in the disk where winbloze partition is the other partitions are on another disk.

Randux 09-18-2006 07:59 AM

Quote:

Originally Posted by Andriy
Hi! I have a problem concerning one of my babies. This baby of mine has two OS, Slackware and Winbloze. I think one of the system file of my Winbloze got absolutely corrupted and I'm experiencing difficulty at the moment, it frequently freezes after booting. So, I thought it would be best if I format the partition where winbloze is and reinstall it. My dillema is that, if I format that partition and reinstall winbloze, it will overwrite the MBR where lilo resides and I may not be able to boot Slack. I don't want my Slack partition to be lost since I use it for work. Can I just reinstall LILO after installing winbloze? or are there other ways to deal with this thing? My /boot and / resides in the disk where winbloze partition is the other partitions are on another disk.

Yes, it's no problem to run LILO again. As long as winbloze doesn't do anything stupid (and there is never a guarantee for this :p) you should be fine. Many people install multiple distros on the same drive as winbloze.

After you have reinstalled bloze, boot your Slackware from the installer (follow instructions on screen) or use a live CD. You can chroot into your Slackware system and run lilo from a root console.

lilo -v -b /dev/hda (if hda is your drive)

Rand

Sugarat 09-18-2006 08:00 AM

I normally boot off a boot CD, chroot into the Slack environment and just run lilo

Andriy 09-18-2006 08:02 AM

thanks for the quick reply guys. i almost thought i was desperate. :cry: :tisk:

Randux 09-18-2006 09:44 AM

Don't worry, nothing on Slackware is desperate except my problems :p

Andriy 09-20-2006 06:03 AM

@Randux

hmm unfortunately i still havent fixed my problems. i get these messages after chrooting to /dev/hda2 after booting from the slackware cd:

Warning:'/proc/partitions' does not exist, disk scan bypassed
Warning: Unable to determine video adapter in use in the present system.
Added Windows *
Fatal open /boot/vmlinuz

my partitions are:

/dev/hda1 = winbloze
/dev/hda2 = /
/dev/hda3 = /boot

is there a way to pass a parameter to lilo where it could detect my /boot ?

Alien Bob 09-20-2006 06:17 AM

Quote:

Originally Posted by Andriy
/dev/hda3 = /boot

In the chroot, you will have to run
Code:

mount /dev/hda3 /boot
before you run
Code:

lilo
.
The warnings about proc can be overcome by running
Code:

mount -t proc proc /proc
before running lilo, but the warnings are probably harmless anyway.

Eric

Andriy 09-20-2006 06:20 AM

on a side note. i will be installing lilo into /dev/hda1 which is the mbr. will that be a problem reinstalling lilo?

Alien Bob 09-20-2006 06:30 AM

I hope you meant you'll be installing lilo into /dev/hda which is the mbr? In that case, there won't be a problem.

Eric

Andriy 09-20-2006 06:44 AM

Quote:

Originally Posted by Alien Bob
I hope you meant you'll be installing lilo into /dev/hda which is the mbr? In that case, there won't be a problem.

Eric

yeah. that was a mistake on my part :p

thank you very much, its working now, with the exception of the graphical part being lost, i think its just a minor problem. thank you very much. :D


All times are GMT -5. The time now is 07:49 PM.