SlackwareThis Forum is for the discussion of Slackware Linux.
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.
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.
This may sound stupid, but I've never switched bootloaders before. I've set up syslinux to boot USB and CF cards, but obviously never while I was running them. Thus said...
What is the surest (and simplest if possible) way of getting rid of Lilo and installing Grub in its place? I have to take out my drive sort-of frequently and as I was told in my last thread, Lilo doesn't really take kindly to switching hard drives. I end up with 9's all over my screen.
After you have setup GRUB; if you want, you can use my /boot/grub/menu.lst file as a reference to setup your system with some extra options.
Hope this Helps
Cheers
Orbit
menu.lst:
Code:
# GRUB configuration file '/boot/grub/menu.lst'.
# generated by 'grubconfig'. Sat Aug 18 21:37:20 2007
#
# The backup copy of the MBR for drive '/dev/hda' is
# here '/boot/grub/mbr.hda.3954'. You can restore it like this.
# dd if=mbr.hda.3954 of=/dev/hda bs=512 count=1
#
# Start GRUB global section
timeout 2
#color light-gray/blue black/light-gray
# End GRUB global section
color light-gray/blue black/light-gray
## Splash image!
# splashimage (hd0,0)/boot/grub/slackware.xpm.gz
# End GRUB global section
-=-=-=-=-=-=-=-=-=-==-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
# Linux bootable partition config begins
title Crazed-Weasel-Linux
root (hd0,0)
kernel /boot/vmlinuz root=/dev/hda1 ro vga=791 quiet splash=silent #acpi=force
initrd /boot/initrd-2.6.24.5-smp-IDE--[orbit].gz
# initrd /boot/initrd-2.6.24.5-smp-SATA--[orbit].gz
# (use SATA initrd if using a SATA HDD).
# (change /dev/hda* entries to /dev/sda*, here and in /etc/fstab if you change to SATA initrd).
---------------------------------
title Recovery-Mode
root (hd0,0)
kernel /boot/vmlinuz-huge-smp-2.6.24.5-smp root=/dev/hda1 ro vga=791
# Linux bootable partition config ends
-=-=-=-=-=-=-=-=-=-==-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
# Other bootable partition config begins
# ** Use only one of the following multiboot configs, not both.
## This config will enable Dual-Boot with Linux/Win-XP on Two Hard-Drives.
## N.B. Attach Linux HDD as Pri-Master ... and Windows HDD as Pri-Slave.
## Un-Comment (remove #) the following six lines to activate multi-boot.
# title Winwoes XP
# map (hd0) (hd1)
# map (hd1) (hd0)
# rootnoverify (hd1,0)
# makeactive
# chainloader +1
-----------------------------------
## This config will enable Dual-Boot with Linux/Win-XP on the same Hard-Drive.
## N.B. Linux is hda1, linux swap is hda2 .. Windows is hda3
## Un-Comment (remove #) on the following six lines to activate this multi-boot.
# title Winwoes XP
# map (hd0,2) (hd0,0)
# map (hd0,0) (hd0,2)
# rootnoverify (hd0,2)
# makeactive
# chainloader +1
# Other bootable partition config ends
-=-=-=-=-=-=-=-=-=-==-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
## This section has been removed to clean the Grub startup menu, it is not necessary.
#title --- For help press 'c', type: 'help'
#root (hd0)
#title --- For usage examples, type: 'cat /boot/grub/grub.txt'
#root (hd0)
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810
Rep:
Reading you original posts it looks like you are simply swapping one drive for another and then back again. So if you install lilo to drive A and drive B is completely seperate you should be able to remove and replace drive A as much as you like with lilo working fine.
The 99's you are seeing are apparently because the drive geometry doesn't match what the Bios says or a bad map file.
I noticed that you are installing lilo to /dev/hda1 partition rather the MBR (/dev/hda). I've seen reports that installing lilo to the MBR may fix the 99 problem.
Reading you original posts it looks like you are simply swapping one drive for another and then back again. So if you install lilo to drive A and drive B is completely seperate you should be able to remove and replace drive A as much as you like with lilo working fine.
The 99's you are seeing are apparently because the drive geometry doesn't match what the Bios says or a bad map file.
I noticed that you are installing lilo to /dev/hda1 partition rather the MBR (/dev/hda). I've seen reports that installing lilo to the MBR may fix the 99 problem.
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810
Rep:
The lilo.conf you gave :
Quote:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/hda1
#message = /boot/boot_message.txt
prompt
timeout = 1200
# Override dangerous defaults that rewrite the partition table:
The line boot=/dev/hda1 sets lilo to install to the hda1 partition. Something strange happening here. It may be worth trying to install to the MBR to see if this fixes your problem.
I attempted to install grub using the grub package in the /extras directory on the install dvd.
I started by copying the grub*.tgz to the desktop then ran:
Code:
root@Slacklinux:/home/gary/Desktop# installpkg grub*.tgz
Installing package grub-0.97-i486-6...
PACKAGE DESCRIPTION:
grub: grub (GNU GRUB Legacy bootloader)
grub:
grub: This is the legacy (0.9x) version of GNU GRUB, the GRand Unified
grub: Bootloader. GRUB is an alternative to other familiar bootloaders
grub: such as LILO. Unlike LILO, it loads a kernel through direct file-
grub: system support rather than a block list so it does not need to be
grub: updated if a new kernel is installed.
grub:
grub: Also included is Kent Robotti's 'grubconfig' tool (similar to the
grub: Slackware 'liloconfig' setup tool).
grub:
root@Slacklinux:/home/gary/Desktop#
root@Slacklinux:/home/gary/Desktop# grubconfig
ERROR: Can't find 'stage1' from the grub package.
If you have the grub package installed, you should have a
/usr/lib/grub, /usr/share/grub, or /usr/local/share/grub
directory, containing the stage files.
root@Slacklinux:/home/gary/Desktop#
/user/lib/grub exists; /usr/local/share/grub also exists, but it is empty.
I think you have to copy stage1, stage2 and other required *stage* files in /boot/grub
Do you have a /boot/grub directory yet ?
(If you have enough space, you can copy all stage files in /boot/grub)
The doc/articles that I had read failed to mention that the "grub" folder in the /extra folder on the install dvd needed to be copied to /boot. Did it with:
Code:
cp /media/cdrom/extra/grub/*.* /boot/grub
Once I did that everything appeared to work -- except i wasn't able to get grub to replace lilo by using "grubconfig"
I ended up using
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.