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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-18-2003, 09:40 PM
|
#1
|
Member
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987
Rep:
|
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
|
|
|
07-18-2003, 09:46 PM
|
#2
|
Member
Registered: Jun 2003
Location: Texas
Distribution: Gentoo/Slackware/Debian/Mandrake
Posts: 285
Rep:
|
why would you want to use lilo?
|
|
|
07-18-2003, 10:01 PM
|
#3
|
Member
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987
Original Poster
Rep:
|
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
|
|
|
07-18-2003, 10:01 PM
|
#4
|
Member
Registered: Jun 2003
Location: Texas
Distribution: Gentoo/Slackware/Debian/Mandrake
Posts: 285
Rep:
|
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
|
|
|
07-18-2003, 10:02 PM
|
#5
|
Member
Registered: Jun 2003
Location: Texas
Distribution: Gentoo/Slackware/Debian/Mandrake
Posts: 285
Rep:
|
what is the issue with grub you have i may could help
|
|
|
07-18-2003, 10:04 PM
|
#6
|
Member
Registered: Jun 2003
Location: Texas
Distribution: Gentoo/Slackware/Debian/Mandrake
Posts: 285
Rep:
|
o just saw the install thread just a min and i'll give you the commands
|
|
|
07-18-2003, 10:41 PM
|
#7
|
Member
Registered: Jun 2003
Location: Texas
Distribution: Gentoo/Slackware/Debian/Mandrake
Posts: 285
Rep:
|
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
|
|
|
07-18-2003, 11:26 PM
|
#8
|
Member
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 06:25 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|