LinuxQuestions.org
Help answer threads with 0 replies.
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 04-08-2003, 09:52 AM   #1
lewnom
LQ Newbie
 
Registered: Apr 2003
Posts: 4

Rep: Reputation: 0
LILO to GRUB convert?


I have a (remote) RedHat 7.2 system I inherited that uses LILO.

I like to convert it to use GRUB (primarily so kernel RPM updates can go a bit smoother for a new admin).

Can anyone tell me how to achive the conversion? Apparently,
grub-install --root-directory=/boot '(hd0,0)'
was not persuasive enough. I'm guessing some mbr fiddling is needed since
dd if=/dev/hda count=1 |strings
still shows LILO. Comments, how-to, ?
Thanks
 
Old 04-08-2003, 09:55 AM   #2
bentz
Member
 
Registered: Mar 2003
Distribution: Fedora, Mac OSX
Posts: 362

Rep: Reputation: 30
How about 'grub-install /dev/hda' and/or 'grub-install /dev/hda1'?
 
Old 04-08-2003, 10:07 AM   #3
lewnom
LQ Newbie
 
Registered: Apr 2003
Posts: 4

Original Poster
Rep: Reputation: 0
thanks, tried that but I still see LILO in the 'dd' output -

# grub-install /dev/hda1
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

# this device map was generated by anaconda
(fd0) /dev/fd0
(hd0) /dev/hda

# dd if=/dev/hda count=1 |strings
1+0 records in
1+0 records out
|lbaLILO <====
0<:r
VVWQ
D[YSRWQ

since this is a -remote- box...I have limited ways to "see" things.
 
Old 04-08-2003, 10:24 AM   #4
bentz
Member
 
Registered: Mar 2003
Distribution: Fedora, Mac OSX
Posts: 362

Rep: Reputation: 30
To get it installed on the MBR, you have to use 'grub-install /dev/hda' (NOT hda1).
 
Old 04-08-2003, 10:34 AM   #5
lewnom
LQ Newbie
 
Registered: Apr 2003
Posts: 4

Original Poster
Rep: Reputation: 0
that may have worked! at least GRUB now shows up in the 'dd' output. Now I have to find a way to reboot with a monitor and some body watching. Thanks!

# grub-install /dev/hda
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

# this device map was generated by anaconda
(fd0) /dev/fd0
(hd0) /dev/hda

# dd if=/dev/hda count=1 |strings
1+0 records in
1+0 records out
lbaLILO
ZRrI
D|f1
GRUB <========
Geom
Hard Disk
Read
Error
 
  


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
Booting of raw ISO from GRUB/LILO (though preferably GRUB) Orkie Linux - Software 28 12-15-2013 09:37 PM
Switching from grub to lilo, messed up Lilo.conf, rescuing via Knoppix. SonicGT Debian 2 08-21-2005 01:15 PM
Lilo vs Grub - PROBLEM with lilo nelsonnery Linux - Software 2 09-09-2004 11:09 AM
Grub and LiLo Squall Linux - Software 12 03-16-2004 12:58 AM
Lilo and Grub wolffmanl7 Linux - Newbie 7 11-22-2002 07:19 PM

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

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