VectorLinux
October 31, 2014, 08:24:19 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: Replacing GRUB with LILO  (Read 2347 times)
retired1af
Packager
Vectorian
****
Posts: 1265



« on: January 22, 2011, 09:56:34 am »

I've run into a bit of an issue, and I'm not even sure if I want to do this.

I installed Slackware64 13.1 last night, and thought it would be an easy thing to just run grub-mkconfig to add it to my existing GRUB menu. Lo and behold, it doesn't detect the Slackware installation. Attempts to manually add the entry results in all sorts of fun things, including partition not found (yeah, right) to a runaway loop modprobe error (that one was interesting!).  A bit of searching gives varying opinions regard Slack and GRUB. After fighting with GRUB most of this morning, I thought screw it, and I'll go back to LILO.

Fired up VASM and ran the LILO option. Rebooted and still had GRUB. Niiiiiice, says I. Now what? lilo -v results in the following:

Quote
LILO version 22.8, Copyright (C) 1992-1998 Werner Almesberger
Development beyond version 21 Copyright (C) 1999-2006 John Coffman
Released 19-Feb-2007 and compiled at 02:39:03 on Apr  1 2008.

Warning: LBA32 addressing assumed
Reading boot sector from /dev/sdb1
Warning: /dev/sdb1 is not on the first disk
Warning: Unable to determine video adapter in use in the present system.
Using BITMAP secondary loader
Calling map_insert_data
Mapping bitmap file /boot/bitmap/boot.bmp -> back.bmp
Warning: Video adapter does not support VESA BIOS extensions needed for
  display of 256 colors.  Boot loader will fall back to TEXT only operation.
Calling map_insert_file

Boot image: /boot/vmlinuz -> vmlinuz-2.6.31.11
Added linux *

Boot image: /boot/vmlinuz -> vmlinuz-2.6.31.11
Added linux-tui

Boot image: /boot/vmlinuz -> vmlinuz-2.6.31.11
Added linux-gui

Boot image: /boot/tamu/vmlinuz-slackware-sdb5
Added slackware-sdb5

Writing boot sector.
/boot/boot.0811 exists - no boot sector backup copy made.
4 warnings were issued.

You'd think that would do the trick, right? Reboot and guess what I see? It sure isn't a LILO menu!

Here's the entry I added to GRUB. It doesn't work either.

Quote
menuentry "Slackware 13.1" {
        insmod ext2
        set root=(hd1,5)
        linux /boot/vmlinuz-generic-2.6.33.4 root=/dev/sdb5 ro nosplash rootdelay=10 vga 791
        initrd /boot/initrd
}

So I'm kinda stumped here. Short of the drastic "screw this and nuke the #$)(*@&# drive", I'm open to suggestions on how to get either to work.
« Last Edit: January 22, 2011, 10:22:50 am by retired1af » Logged

ASUS K73 Intel i3 Dual Core 2.3GHz
uelsk8s
Administrator
Vectorian
*****
Posts: 2504



« Reply #1 on: January 22, 2011, 12:38:32 pm »

run "vliloconf-fixmbr"
choose the ms-sys option the choose the drive and finally write a zero mbr.
from there you should be able to install lilo
Logged
newt
Vectorian
****
Posts: 1132



« Reply #2 on: January 22, 2011, 01:53:24 pm »

I don't know the exact setup your after but it sure seems that lilo is installing itself to your /dev/sdb1 partition, rather than the primary hard drive location for your system (e.g. /dev/sda or /dev/sdb)
Quote
Reading boot sector from /dev/sdb1
Warning: /dev/sdb1 is not on the first disk

You may want to have a look at your lilo.conf file and adjust the installation location to your primary hard drive (assuming that's what you want).
« Last Edit: January 22, 2011, 01:59:10 pm by newt » Logged
retired1af
Packager
Vectorian
****
Posts: 1265



« Reply #3 on: January 22, 2011, 03:04:40 pm »

No no no no no.. Primary hard drive can not be touched. It should write to the MBR of SDB rather than SDA. Windows is on the primary drive. The external drive (SDB1) is the Linux drive. I have the notebook set to boot from the external if it's plugged in, and if it isn't, it defaults to the internal hard drive and boots windows.
Logged

ASUS K73 Intel i3 Dual Core 2.3GHz
newt
Vectorian
****
Posts: 1132



« Reply #4 on: January 22, 2011, 03:31:53 pm »

Fine, but you're still attempting to install lilo to the first PARTITION (sdb1) on your external device (sdb).  Thus, the only way you'll ever access that lilo installation is via a chainload.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!