LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-03-2005, 08:38 PM   #1
zeroz52
Member
 
Registered: Feb 2005
Distribution: Slackware 10.2
Posts: 121

Rep: Reputation: 15
How to Replace Grub w/ LILO


Here is the thing.... I have UBUNTU loaded which uses GRUB on the MBR. I want to reinstall Slack which uses LILO. Last time I had to do this type of thing GRUB was still trying to load after I installed SLACK. I was in a hurry and need to reformat XP anyways so I reformatted reinstalled XP then Slack. I need to do this again but don't really want to format and reinstall XP. How can I get LILO to boot Slack instead of GRUB trying to load an UBUNTU that isn't there any longer. Thanks all.
 
Old 10-03-2005, 08:49 PM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
When you get the install done, don't forget to run:
/sbin/lilo -v

This *should* replace grub in the MBR, assuming you have specified the same drive that grub is install to. For example, one of the first lines in your lilo.conf will have:
install=/dev/hda

As long as that's the drive where grub had a similar entry, you should be fine.

Good Luck!

Cool
 
Old 10-03-2005, 09:53 PM   #3
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
Quote:
Originally posted by MasterC
When you get the install done, don't forget to run:
/sbin/lilo -v

This *should* replace grub in the MBR, assuming you have specified the same drive that grub is install to. For example, one of the first lines in your lilo.conf will have:
install=/dev/hda

As long as that's the drive where grub had a similar entry, you should be fine.

Good Luck!

Cool
when someone is making a fresh installaition and is installing lilo/grub into MBR then why
does he need to run:
/sbin/lilo -v
???????

won't it replace the lilo/grub automatically which was initially there ???

regards
 
Old 10-04-2005, 12:26 PM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Grub places a small 're-direct' in the MBR which points to the grub.conf So when you edit your grub.conf there is no need to re-run grub-install as all that does is place the re-direct in the MBR or the root of whatever partition you have specified.

Lilo places the whole shebang in the MBR, booting directly from that image, not the lilo.conf file in /etc So, you have re-run /sbin/lilo every time you make changes, which includes the first time.

HTH

Cool
 
  


Reply



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
Switching from grub to lilo, messed up Lilo.conf, rescuing via Knoppix. SonicGT Debian 2 08-21-2005 01:15 PM
how can i replace "lilo" with "grub"....... b0nd Linux - Newbie 5 04-18-2005 04:52 AM
How to replace Lilo with Grub? pwaring Linux - Software 2 03-26-2004 10:04 AM
Replace Lilo with Grub acjt Linux - General 2 04-28-2003 07:20 AM
Replace Grub by LILO uttamsaxena Linux - General 1 06-19-2002 03:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:06 AM.

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