LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 07-18-2003, 10:40 PM   #1
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
Converting GRUB commands to LILO


i want to convert the following info from a grub.conf file into something LILO can understand (this is from redhat9)

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,3)
# kernel /vmlinuz-version ro root=/dev/hda6
# initrd /initrd-version.img
#boot=/dev/hda
default=1
timeout=10
splashimage=(hd0,3)/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-18.9)
root (hd0,3)
kernel /vmlinuz-2.4.20-18.9 ro root=LABEL=/ hdc=ide-scsi
initrd /initrd-2.4.20-18.9.img
 
Old 07-18-2003, 10:46 PM   #2
grym
Member
 
Registered: Jun 2003
Location: Texas
Distribution: Gentoo/Slackware/Debian/Mandrake
Posts: 285

Rep: Reputation: 30
why would you want to use lilo?
 
Old 07-18-2003, 11:01 PM   #3
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Original Poster
Rep: Reputation: 30
i don't know how to change back to grub (i've already posted a thread with no results) so i have to switch to lilo now
 
Old 07-18-2003, 11:01 PM   #4
grym
Member
 
Registered: Jun 2003
Location: Texas
Distribution: Gentoo/Slackware/Debian/Mandrake
Posts: 285

Rep: Reputation: 30
use something along these lines, everything commented out you would want to check and see if they actually exist on your system. also this is assuming that your hard drive is on /dev/hda. since grub works different mine in lilo would show up as /dev/hde but in GRUB it's still hd0

boot=/dev/hda
#map=/boot/map
#install=/boot/boot.b
vga=normal
default=Red Hat Linux (2.4.20-18.9)
#keytable=/boot/us.klt
lba32
prompt
nowarn
timeout=100
#message=/boot/message
#menu-scheme=wb:bw:wb:bw
image=/boot/vmlinuz-2.4.20-18.9
label=Red Hat Linux (2.4.20-18.9)
root=/dev/hda4
initrd=/boot/initrd-2.4.20-18.9.img
append="hdc=ide-scsi"
read-only


Good luck to you
 
Old 07-18-2003, 11:02 PM   #5
grym
Member
 
Registered: Jun 2003
Location: Texas
Distribution: Gentoo/Slackware/Debian/Mandrake
Posts: 285

Rep: Reputation: 30
what is the issue with grub you have i may could help
 
Old 07-18-2003, 11:04 PM   #6
grym
Member
 
Registered: Jun 2003
Location: Texas
Distribution: Gentoo/Slackware/Debian/Mandrake
Posts: 285

Rep: Reputation: 30
o just saw the install thread just a min and i'll give you the commands
 
Old 07-18-2003, 11:41 PM   #7
grym
Member
 
Registered: Jun 2003
Location: Texas
Distribution: Gentoo/Slackware/Debian/Mandrake
Posts: 285

Rep: Reputation: 30
what i would do is use rescue mode from a cd then mount and chroot over to your old filesystem that had grub from there run:

grub

you will now have the grub prompt

grub > find /boot/grub/stage1

this will give you your root device (substitute your results for hd0,3)

grub > root (hd0,3)

the next command installs to the MBR

grub > setup (hd0)

at this point grub should be installed correctlly

this is the new way (I have never done it this way)

grub-install install_device

in your case install_device would be called /dev/hda or hd0
so either of these commands should work

grub-install /dev/hda

or

grub-install '(hd0)'

good luck to you
 
Old 07-19-2003, 12:26 AM   #8
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Original Poster
Rep: Reputation: 30
wow, thx, i'll have to try in the morning though

it seems that it should work, but i think i can work my way through with the commands u gave me
 
  


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
Booting of raw ISO from GRUB/LILO (though preferably GRUB) Orkie Linux - Software 28 12-15-2013 10:37 PM
Switching from grub to lilo, messed up Lilo.conf, rescuing via Knoppix. SonicGT Debian 2 08-21-2005 02:15 PM
Getting to Lilo prompt to type commands Old Hat Linux Linux - Newbie 1 02-11-2004 06:17 AM
create lilo.conf or grub.conf through commands newpenguin Linux - Software 1 11-28-2003 09:22 PM
commands work with interactive grub, but not in grub.conf richardg Linux - Newbie 2 11-23-2003 05:36 AM

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

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