LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-08-2003, 01:37 PM   #1
Fingel
Member
 
Registered: Feb 2003
Location: 127.0.0.1
Distribution: Latest Ubuntu
Posts: 161

Rep: Reputation: 30
changing from LILO to GRUB


Hi,
I recently installed debain onto my system, along with RH8 and WinXP. The debain install set LILO as the default bootloader, but so far it dosn't recognize RH8. I was wondering if there was an easy way to set the bootloader back to GRUB, so that maybe it will see RH again(if it dosnt see Debian, thats ok, I'm having problems anyway and booting from floppy wont be horrible.) Is it a simple thing to switch them or is it really difficult?
 
Old 03-08-2003, 04:44 PM   #2
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
It's quite easy. I'll give you a quick and dirty guide (for more information please consult the man pages):

apt-get install grub
cp -pr /usr/lib/grub/i386-pc /boot/grub
touch /boot/grub/menu.lst
chmod 640 /boot/grub/menu.lst
grub --no-floppy


Now you are at the grub prompt (takes a while):
find /boot/grub/stage1
root (hd0,7)
setup (hd0)
quit


This should get you set ... almost. You now just need
to customize your /boot/grub/menu.lst file (/etc/grub.conf
in RedHat).


A single boot solution could look like this:
color light-gray/blue yellow/brown
default 3
fallback 0
password --md5 XXX
timeout 5


title Debian/GNU Linux 3.0r1 (stable)
root (hd0,7)
kernel (hd0,7)/boot/vmlinuz-2.4.18-bf2.4 root=/dev/hda8
 
Old 03-08-2003, 05:09 PM   #3
Fingel
Member
 
Registered: Feb 2003
Location: 127.0.0.1
Distribution: Latest Ubuntu
Posts: 161

Original Poster
Rep: Reputation: 30
I already have grub installed, its just a matter of changing the default one, or if thats what you already told me to do...I'm not sure...
 
Old 03-09-2003, 07:48 PM   #4
Fingel
Member
 
Registered: Feb 2003
Location: 127.0.0.1
Distribution: Latest Ubuntu
Posts: 161

Original Poster
Rep: Reputation: 30
I found out that there is a tool called grub-install, but I'm confused about the syntax.
Usage: grub-install [OPTION] install_device
Install GRUB on your drive

-h, --h print out this message and exit.
-v, --version Print version info and exit
--root-directory=DIR install GRUB images under the directory DIR instead of the root directory
--grub-shell=FILE use FILE as the grub shell
--force-lba force GRUB to use LBA mode even for a buggy BIOS
--recheck probe a device map even if it already exists

INSTALL_DEVICE can be a GRUB device name or a system device filename.

I think I kind of understand, would I type something along the lines of --root-directory=MBR?
I know it has to be in the master boot record, but im not sure how to enter that.
 
Old 03-09-2003, 10:18 PM   #5
Fingel
Member
 
Registered: Feb 2003
Location: 127.0.0.1
Distribution: Latest Ubuntu
Posts: 161

Original Poster
Rep: Reputation: 30
it was as easy as /sbin/grub-install /dev/hda
why didnt anyone say so?
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Grub over lilo (Changing distro) PPisHere Linux - Software 3 07-10-2005 12:44 PM
changing grub -> lilo tushar123 Linux - Newbie 1 10-19-2004 12:08 PM
Changing Boot Loader from Lilo to Grub annointed3 Linux - General 7 09-30-2004 11:33 PM
changing GRUB to LILO fragmentI00I0I Linux - Software 2 10-18-2003 11:56 AM
Changing from LILO to GRUB?? TMMO Linux - Newbie 3 08-10-2003 04:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:50 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