Author Topic: grub over lilo  (Read 1007 times)

Siplus

  • Member
  • **
  • Posts: 522
  • Kudos: 43
    • http://www.siplus.org
grub over lilo
« on: 3 December 2002, 06:32 »
how can i uninstall lilo and install grub? i looked on my redhat cd1, but it only showed the package manager and there are no boot loaders in there. and, if i install grub now, will it still show my backed up kernal versions for linux?

like in lilo it has my kernal vers:
2.4.18-14
2.4.18-17.8.0 and
2.4.18-18.8.0

will grub let me switch between these (i don't know why i would need to, but i'm guessing that lilo put these in here for a reason)


http://www.siplus.org

"Your computer is already fucked up by having Windows
on it, you can only unfuck it up by installing Linux."
-- void main (old school MES member)


Desktop: Athlon 2600/ 768mb DDR266
--Running: Ubuntu 5.10, FC4, Win2k
 (Also, Unbuntu 6-06:5, 5.04; Fedora Core 5, WinXP, but none of these are used much)
12" Powerbook: 1.5 Ghz G4 PowerPC / 1.25 GB DDR333
--Running: Mac OS X 10.4 Tiger

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
grub over lilo
« Reply #1 on: 3 December 2002, 06:39 »
You don't have to uninstall LILO. Just install GRUB which will overwrite the MBR to point to the GRUB loader. You can set up GRUB to boot between your different kernel versions just like LILO. Here's an example of my grub.conf:

Code: [Select]

As you can see I have 3 different Linux kernels and a Windows boot section. By not uninstalling LILO you can always revert back to it by running "# /sbin/lilo".

[ December 02, 2002: Message edited by: void main ]

Someone please remove this account. Thanks...

Siplus

  • Member
  • **
  • Posts: 522
  • Kudos: 43
    • http://www.siplus.org
grub over lilo
« Reply #2 on: 5 December 2002, 17:37 »
umm, well i just installed grub, but when i reboot, it is still using lilo.

i extracted it using file roller (the nice
graphical unzip thing in GNOME),
Code: [Select]

and i see it in /etc (i think that's the directory), but nothing seemed to change

[ December 05, 2002: Message edited by: Siplus ]



http://www.siplus.org

"Your computer is already fucked up by having Windows
on it, you can only unfuck it up by installing Linux."
-- void main (old school MES member)


Desktop: Athlon 2600/ 768mb DDR266
--Running: Ubuntu 5.10, FC4, Win2k
 (Also, Unbuntu 6-06:5, 5.04; Fedora Core 5, WinXP, but none of these are used much)
12" Powerbook: 1.5 Ghz G4 PowerPC / 1.25 GB DDR333
--Running: Mac OS X 10.4 Tiger

choasforages

  • VIP
  • Member
  • ***
  • Posts: 1,729
  • Kudos: 7
    • http://it died
grub over lilo
« Reply #3 on: 5 December 2002, 17:40 »
try typing as root

grub-install /dev/drivewithmbr

replace drivewithmbr with whatever disk has the mbr. like /dev/hda or something
x86: a hack on a hack of a hackway
alpha, hewlett packed it A-way
ppc: the fruity way
mips: the graphical way
sparc: the sunny way
4:20.....forget the DMCA for a while!!!

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
grub over lilo
« Reply #4 on: 5 December 2002, 20:28 »
Before you configure GRUB to be your boot loader, make sure the GRUB configuration file is correct. You should find the grub.conf (or a link to grub.conf) in /etc/grub.conf. If it appears to be configured properly do as Chaos said and type:

# grub-install /dev/hda

Unlike LILO, this installation only has to be done once. You do not have to run the command again after modifying grub.conf. You certainly want to make a boot disk (and test the boot disk) before doing so. Just in case you have something wrong in the configuration file. See "man mkbootdisk" if your system has that utility.

[ December 05, 2002: Message edited by: void main ]

Someone please remove this account. Thanks...

Calum

  • Global Moderator
  • Member
  • ***
  • Posts: 7,812
  • Kudos: 1000
    • Calum Carlyle's music
grub over lilo
« Reply #5 on: 5 December 2002, 21:04 »
how does GRUB know when you change the .conf file? (i mean does it read it every time you start up?) (i suppose i just answered my own question, sorry!)
visit these websites and make yourself happy forever:
It's my music! | My music on MySpace | Integrational Polytheism

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
grub over lilo
« Reply #6 on: 5 December 2002, 21:06 »
Yep, you just answered your own question.  
Someone please remove this account. Thanks...

Siplus

  • Member
  • **
  • Posts: 522
  • Kudos: 43
    • http://www.siplus.org
grub over lilo
« Reply #7 on: 5 December 2002, 21:08 »
this seems kinda strange. i can type man mkbootdisk, but it doesn't recognise the command mkbootdisk. why would they include information about a command i do not have?

well, anyway. how do i create a linux boot disk if w/o using the command mkbootdisk?


http://www.siplus.org

"Your computer is already fucked up by having Windows
on it, you can only unfuck it up by installing Linux."
-- void main (old school MES member)


Desktop: Athlon 2600/ 768mb DDR266
--Running: Ubuntu 5.10, FC4, Win2k
 (Also, Unbuntu 6-06:5, 5.04; Fedora Core 5, WinXP, but none of these are used much)
12" Powerbook: 1.5 Ghz G4 PowerPC / 1.25 GB DDR333
--Running: Mac OS X 10.4 Tiger

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
grub over lilo
« Reply #8 on: 5 December 2002, 22:21 »
Must be a RedHat specific command. I didn't see mention of what distro you were using and if you had I might have researched the particular advice before giving it.
Someone please remove this account. Thanks...

Siplus

  • Member
  • **
  • Posts: 522
  • Kudos: 43
    • http://www.siplus.org
grub over lilo
« Reply #9 on: 5 December 2002, 22:29 »
well, i have redhat 8.0.....this is what i get:

Code: [Select]


http://www.siplus.org

"Your computer is already fucked up by having Windows
on it, you can only unfuck it up by installing Linux."
-- void main (old school MES member)


Desktop: Athlon 2600/ 768mb DDR266
--Running: Ubuntu 5.10, FC4, Win2k
 (Also, Unbuntu 6-06:5, 5.04; Fedora Core 5, WinXP, but none of these are used much)
12" Powerbook: 1.5 Ghz G4 PowerPC / 1.25 GB DDR333
--Running: Mac OS X 10.4 Tiger

choasforages

  • VIP
  • Member
  • ***
  • Posts: 1,729
  • Kudos: 7
    • http://it died
grub over lilo
« Reply #10 on: 5 December 2002, 22:35 »
ahh, try

/sbin/mkbootdisk

another redhack, for some odd reason redhat doesn't think that /sbin and /usr/sbin should be in roots path
x86: a hack on a hack of a hackway
alpha, hewlett packed it A-way
ppc: the fruity way
mips: the graphical way
sparc: the sunny way
4:20.....forget the DMCA for a while!!!

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
grub over lilo
« Reply #11 on: 5 December 2002, 22:43 »
"/sbin" and "/usr/sbin" *are* in root's path in RedHat. They are not in the normal user's path which if you notice he is logged in as a normal user because of the "$" prompt. And if you "su" from a normal user to root you are not going to get root's PATH or the rest of root's environment on any *NIX system. In order to do that you need to do a "su -" (notice the "-"). Now that does not explain why he didn't have the "man" page installed. To me that would indicate that he does not have the "mkbootdisk" RPM installed. If he does not he should install it from his RedHat CD.

To make a boot disk I would suggest this:

$ su -
(enter root's password)
# mkbootdisk --device /dev/fd0 2.4.18-14

If "2.4.18-14" is not your current running kernel version then use whatever version you are currently running. You can find out by typing "uname -r". Or just use that command as part of the mkbootdisk command like so:

# mkbootdisk --device /dev/fd0 `uname -r`

Notice the "`" is a left tick (or a starting single quote mark, or whatever the name is. I don't know what the "real" name is for that character).

[ December 05, 2002: Message edited by: void main ]

Someone please remove this account. Thanks...

Agent007

  • Member
  • **
  • Posts: 120
  • Kudos: 0
grub over lilo
« Reply #12 on: 5 December 2002, 22:59 »
This is very funny....Cause I'm on  RH8 and the mkbootdisk command works fine...I have not installed anything extra nor have changed the path variables. Maybe u need to login as root?

007

 
quote:
Originally posted by Siplus:
well, i have redhat 8.0.....this is what i get:

Code: [Select]
[/b]
AMD Athlon processor
256MB SDRAM
Linux Distro - RedHat 9.0

Siplus

  • Member
  • **
  • Posts: 522
  • Kudos: 43
    • http://www.siplus.org
grub over lilo
« Reply #13 on: 5 December 2002, 23:40 »
quote:
Originally posted by void main:
Now that does not explain why he didn't have the "man" page installed. To me that would indicate that he does not have the "mkbootdisk" RPM installed. If he does not he should install it from his RedHat CD.



i'm sorry for the misunderstanding void, i said:

"i can type man mkbootdisk, but it doesn't recognise the command mkbootdisk.", what i ment to say was i can type

$man mkbootdisk

and i get the man file, but when i type

$mkbootdisk

it doesn't recognise the command


http://www.siplus.org

"Your computer is already fucked up by having Windows
on it, you can only unfuck it up by installing Linux."
-- void main (old school MES member)


Desktop: Athlon 2600/ 768mb DDR266
--Running: Ubuntu 5.10, FC4, Win2k
 (Also, Unbuntu 6-06:5, 5.04; Fedora Core 5, WinXP, but none of these are used much)
12" Powerbook: 1.5 Ghz G4 PowerPC / 1.25 GB DDR333
--Running: Mac OS X 10.4 Tiger

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
grub over lilo
« Reply #14 on: 6 December 2002, 00:05 »
Then just follow the instructions in my previous note and you should be all set.
Someone please remove this account. Thanks...