LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-30-2006, 02:26 AM   #1
kosmonaft
Member
 
Registered: Mar 2005
Location: Illinois, US
Posts: 38

Rep: Reputation: 15
Installing LILO


I installed Slackware 10.2 and then installed Windows. Windows completely overwrote the MBR, so I don't get a lilo menu anymore - it just goes straight to Windows. How do I install lilo into the MBR again? I still have my Slackware 10.2 CD.
 
Old 08-30-2006, 02:35 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
You'll need to boot your installation from the CD, first of all. When you boot from CD 1, just before the "boot:" prompt, it tells you how (I can't remember off the top of my head). After that, edit your lilo.conf (found in /etc) to add an entry for Windows, similar to the following:

other = /dev/hda1 # Obviously replace with the partition Windows resides on
label = Windows

You'll finally need to run "/sbin/lilo" (as root) to restore LILO to the MBR.
 
Old 08-30-2006, 08:12 AM   #3
krussell
Member
 
Registered: Jul 2003
Location: dhaka
Distribution: Slackware 11 (fixed), MEPIS
Posts: 241

Rep: Reputation: 30
Hello :-)
Quote:
Originally Posted by kosmonaft
I installed Slackware 10.2 and then installed Windows.
Well. the convention is to install window$ and then linux. if you boot with installation cd you must know in which partition you installed slackware (like windows in /dev/hda1 and slackware in /dev/hda2). you first mount the slackware installtion partition (mkdir /mnt/hda2 && mount /dev/hda2 /mnt/hda2) go into /etc/ and edit lilo.conf and run /sbin/lilo as per Nylex's instructions.
 
Old 08-30-2006, 08:32 AM   #4
Orangutanklaus
Member
 
Registered: May 2006
Posts: 93

Rep: Reputation: 15
Correct me if I am wrong, but afaik you have to go to (with your example) to
/mnt/hda2/etc/lilo.conf & /mnt/hda2/sbin/lilo.

If not, I am a
 
Old 08-30-2006, 08:54 AM   #5
nykey
Member
 
Registered: Nov 2003
Posts: 360

Rep: Reputation: 30
Just insert your Slackware CD 1. Then at the "boot:" prompt type this "bare.i root=/dev/hda2 noinitrd ro" ( replace /dev/hda2 with the partition number slackware is installed to ) press enter, it will boot your local slackware system using the kernel from the install CD. Just login as root using the password specified when you installed slackware and type "liloconfig" and from there on I presume you know what to do to add both Linux and Windows ! Then reboot your computer, take out your CD and you should be prompted by the new lilo menu.
 
Old 08-31-2006, 07:58 AM   #6
krussell
Member
 
Registered: Jul 2003
Location: dhaka
Distribution: Slackware 11 (fixed), MEPIS
Posts: 241

Rep: Reputation: 30
hello :-)
Orangutanklaus, yes you are right!!
nykey, nice solution.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
installing lilo fatenabu Linux - Software 8 01-06-2006 04:23 PM
installing xp with lilo jonnyblinux Slackware 9 12-20-2005 05:30 AM
Installing LILO undeadpenguin Arch 2 11-09-2003 08:32 AM
Installing LILO mcd Linux - Software 4 08-25-2003 12:32 AM
Installing Lilo Daniel Linux - Newbie 4 06-22-2001 12:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration