LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 03-03-2007, 11:28 AM   #1
draggin
Member
 
Registered: Jan 2004
Location: Bournemouth UK
Distribution: Debian & Mepis
Posts: 108

Rep: Reputation: 15
Remove Lilo install grub


The title says it all, when I first installed debian testing I installed it with Lilo, now as all my other boxes are grub I want to remove lilo and install grub, is there a simple howto anywwhere??

Tim
 
Old 03-03-2007, 12:30 PM   #2
Vincent_Vega
Member
 
Registered: Nov 2003
Location: Jacksonville, FL
Distribution: Slackware & Arch
Posts: 825

Rep: Reputation: 31
Download GRUB, edit your configuration file (menu.lst) and do:
grub-install /dev/hda or whatever device name your drive has.
 
Old 03-03-2007, 02:46 PM   #3
draggin
Member
 
Registered: Jan 2004
Location: Bournemouth UK
Distribution: Debian & Mepis
Posts: 108

Original Poster
Rep: Reputation: 15
apt-get install grub ok

Edit configuration file (menu.lst), what do I add, remove of adjust??

hda1 is my current boot partition so is it grub-install /dev/hda or /dev/hda1

Should I remove Lilo, before after or not bother??

Sorry about the questions, I want to get this right, don't like PC's that don't boot

Tim
 
Old 03-04-2007, 08:39 AM   #4
Vincent_Vega
Member
 
Registered: Nov 2003
Location: Jacksonville, FL
Distribution: Slackware & Arch
Posts: 825

Rep: Reputation: 31
Post your menu.lst file so I can see what's in it now. You will install to /dev/hda so that it goes into the MBR and overwrites your LILO. You can just leave LILO if you want. It won't matter. What distro are you using?

Last edited by Vincent_Vega; 03-04-2007 at 08:45 AM.
 
Old 03-04-2007, 08:44 AM   #5
Vincent_Vega
Member
 
Registered: Nov 2003
Location: Jacksonville, FL
Distribution: Slackware & Arch
Posts: 825

Rep: Reputation: 31
The way an entry will look is like this:
title Ubuntu <-- Choose any name you want
root (hd0,0) <-- This is for /dev/hda1, (hd0,1) would be for /dev/hda2, etc.
kernel /boot/vmlinux <-- This is the path to your kernel
initrd /boot/initrd.img <-- This is the path to your initrd file if you use one.
savedefault
boot
 
Old 03-04-2007, 09:19 AM   #6
draggin
Member
 
Registered: Jan 2004
Location: Bournemouth UK
Distribution: Debian & Mepis
Posts: 108

Original Poster
Rep: Reputation: 15
I assume you mean post my lilo.conf as to post menu.lst I would have to have grub installed which is what I am asking about

Here is my lilo.conf (I have removed all the hash statements to save space)



boot=/dev/hda
root=/dev/hda1
map=/boot/map
delay=20
vga=normal
default=Linux

image=/vmlinuz
label=Linux
read-only
# restricted
# alias=1

initrd=/initrd.img

image=/vmlinuz.old
label=LinuxOLD
read-only
optional
# restricted
# alias=2

initrd=/initrd.img.old

So my menu.lst will look like this

title Debian Testing
root (hd0,0)
kernel /boot/vmlinux-2.6.15-1-686
initrd /boot/initrd.img-2.6.15-1-686
savedefault
boot

Will grub automaticly configure menu.lst to the above (assuming the above is correct) or do I have to do it manually??

Tim
 
Old 03-04-2007, 02:53 PM   #7
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 55
upgrade-grub , this should detect or put the above config, seems fine.
and then launch grub-install
 
Old 03-04-2007, 04:32 PM   #8
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
If you do not have an ambition to use Lilo to boot more than 27 images then Lilo is as good as Grub for multi-booting.

Lets say you have 3 other Linux using Grub inside the root partitions of hda7, hda8 and hda9.

You can invoke a Grub shell in any Linux that has Grub, say Debian, by
Code:
sudo grub
You can then restore Grub inside each of the above 3 Linux by commands
Code:
root (hd0,6)
setup (hd0,6) 

root (hd0,7)
setup (hd0,7) 

root (hd0,8)
setup (hd0,8)
The above make the Linux in hda7, hda8 and hda9 "chainloadable"

Edit the lilo.conf of the Lilo controlling the the MBR with the 3 additional booting entries
Code:
other=/dev/hda7
label=Linux_in_hda7

other=/dev/hda8
label=Linux_in_hda8

other=/dev/hda9
label=Linux_in_hda9
Lilo can then boot up the 3 Linux in hda7, hda8 and hda9 after you revalidate Lilo with the command
Code:
lilo -b /dev/hda
You can make Lilo sings and dances no different to Grub!

Last edited by saikee; 03-04-2007 at 04:34 PM.
 
  


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
How to remove lilo and install grub in slackware Joey.Dale Slackware 5 09-04-2009 06:30 PM
#lilo -u to remove lilo.....what for grub ??? b0nd Linux - General 1 05-27-2006 05:09 PM
Remove GRUB or LILO Boot screen CircuitSix Linux - General 4 07-27-2005 08:04 PM
I want to remove grub and use lilo instead bzsleeping Linux - Newbie 4 10-25-2003 06:18 AM
How can I remove GRUB and install LILO? leealfred Linux - Newbie 1 08-04-2003 03:33 AM

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

All times are GMT -5. The time now is 03:17 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration