LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 09: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, 09: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, 10: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, 10: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, 10: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, 10: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, 10: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-18-2003, 11:26 PM   #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 09:37 PM
Switching from grub to lilo, messed up Lilo.conf, rescuing via Knoppix. SonicGT Debian 2 08-21-2005 01:15 PM
Getting to Lilo prompt to type commands Old Hat Linux Linux - Newbie 1 02-11-2004 05:17 AM
create lilo.conf or grub.conf through commands newpenguin Linux - Software 1 11-28-2003 08:22 PM
commands work with interactive grub, but not in grub.conf richardg Linux - Newbie 2 11-23-2003 04:36 AM

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

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