Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 01-17-2003, 11:04 AM   #1
LQ Newbie
Registered: Jan 2003
Location: Atlanta, GA
Distribution: Slackware
Posts: 10

Rep: Reputation: 0
Exclamation so you think you know how lilo works?

fyi - I have searched the forum on this variation of dual boot woes with no luck....

I have been unsuccessful in tracking down the solution to my dual boot problems. I have an IBM(NTFS) drive with a booting win2k install on it (old server). I have a WD(EXT3) drive completely devoted to slack 8.1 (new server). I have reasons for wanting win2k to hang around; so, I'm trying to get them to play nice together. Here are my actions so far in the land of linux:

- partitioned the WD drive into separate /boot (50MB), / (3GB), /usr(7.5GB), /home(25GB), /tmp(1GB), and /var(1GB) partitions to control access and log growth.

- got slack 8.1 + video/sound/eth drivers working and booting on WD drive installed as /dev/hda (IBM drive unplugged, using mainboard IDE channel) -- thanks to this forum

- lilo was installed and working on MBR of WD drive

BEGIN problems...

- since MB only has ATA33 I pop in my Promise U66 controller and plug both drives in - IBM(Win2k) as PriMast and WD(Linux) as SecMast -- I did this because I read that Win2k boot loader complained when not on PriMast

- the drives are now IBM (/dev/hde) and WD (/dev/hdg)

- rerun lilo to install to super block of /boot (/dev/hdg1)

- I can boot to Win2k fine and have tried multiple times to copy the first 512b of my /boot partition to a floppy and then onto c:\ of /dev/hde (IBM) for the win2k boot loader to use

- I have managed to successfully get L 01 01 etc (and L 80 80 etc once) oh, about 10 times now trying different locations of the root= , map=, and install= in my lilo.conf

- I can boot linux via the slack8.1 iso and pass "bare.i root=/dev/hdg3" at the boot prompt to get to my WD drive and linux install.

- yes I do run lilo after I change lilo.conf and I do recopy the appropriate 512b of boot partition to floppy (as bootsect.lnx)

I've lost quite a bit of sleep on this one as i'm stubborn and a sucker for a challenge (ie linux fan). But I'm querying the forum now as I really just want this server back linux...

Any of you gurus have an example lilo.conf for something like this? or maybe something new to try?

many thanks,

Last edited by ab42; 01-17-2003 at 04:55 PM.
Old 01-18-2003, 01:30 AM   #2
LQ Addict
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
It could be that since you installed slack while the drive was connected as hda, the entries in the /etc/fstab file would refer to hda instead of hdg.
Old 01-18-2003, 03:46 AM   #3
Registered: Dec 2002
Location: Plains
Distribution: Slackware 13
Posts: 465

Rep: Reputation: 30
Don't know whether this will help but here's my lilo.conf and I use the ntldr (only one splash screen).

# LILO configuration file
# generated by 'liloconfig'
# Start LILO global section
boot = /dev/hdb6
#message = /boot/boot_message.txt
#timeout = 200
default = Slack
# Override dangerous defaults that rewrite the partition table:
# Normal VGA console
vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# End LILO global section
# DOS bootable partition config begins

# DOS bootable partition config ends
# Linux bootable partition config begins
image = /vmlinuz
root = /dev/hdb6
label = Slack
# Linux bootable partition config ends
Old 01-18-2003, 07:06 AM   #4
Grim Reaper
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Rep: Reputation: 30
Ok, I'm not totally following.

How exactly are you booting into windows? Your using the Windows boot loader? Yet you want to still use LILO to boot into Linux? ummm, didn't the OLD lilo only do you had to hit tab to boot into linux, otherwise if its left it boots into windows...or is this the sort of setup you have/want?

What i do is just let lilo be my main, and only, bootloader. I install lilo into the MBR of the first HDD, and select either Windows or Linux from the menu...

Which of these setups are you after?
Old 01-18-2003, 07:34 AM   #5
Registered: Dec 2002
Location: Plains
Distribution: Slackware 13
Posts: 465

Rep: Reputation: 30
Try this all as root.

dd of /dev/hdg1 if /bootsect.lnx sb=512 count=1

Copy the file /bootsect.lnx to the same directory as your ntldr. There will be a boot.ini (hidden) in the same directory. Add this line to it. C:\bootsect.lnx="Linux" If you comment out the lines as in my lilo.conf it will cycle through lilo and load the kernel.
Old 01-19-2003, 12:33 PM   #6
LQ Newbie
Registered: Jan 2003
Location: Atlanta, GA
Distribution: Slackware
Posts: 10

Original Poster
Rep: Reputation: 0
Answers to questions:

1) linuxcool - I have an updated fstab to reflect the hda->hdg change...guess i should have listed that above

2) grim - I am using the ntldr to load the system and would like to use it to boot into linux as it is working at the moment. I was under the impression I still needed to use lilo to set the first 512b of the boot partition (the part I copy to a file and reference in my boot.ini file)

3) Allen614 - I have tried the dd command before. And I get the L 10 or L 80 messages. In your lilo.conf, why is your vmlinuz in / rather than /boot ?

What it comes down to I guess is when I copy the 512b of the boot partition (bootsect.lnx) does that come from /boot or /. As I have seperate partitions for those I'm thinking that may be my problem. Ideas?

Right now using lilo, the main settings I have in lilo.conf are:

image = /boot/vmlinuz
root = /dev/hdg3

Thanks for the feedback everyone. I have confidence this will work eventually.
Old 01-19-2003, 01:26 PM   #7
Registered: Dec 2002
Location: Plains
Distribution: Slackware 13
Posts: 465

Rep: Reputation: 30
My "vmlinuz" was placed in the on the original kernel install.(Slackware} My /boot is not a partition but a directory. Those error messages indicate that lilo is not installed in the first 512 but that they're not set. IMHO making /boot a partition just complicates the process. Is your /boot partition the first partition? Try "fdisk -l hdg" and see what it returns.

Here's a thought. You're trying to copy bootsect.lnx to a NTFS partition. I believe the ntldr creates the MBR as FAT to be compatible with dual booting FAT32. Unless you've a FAT32 partition to copy the bootsect.lnx on you may be forced to use Lilo. All my Windows OSs as FAT32.

Last edited by Allen614; 01-19-2003 at 01:39 PM.


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
complex question help needed ropeboardCEO Linux - Newbie 4 12-25-2004 12:02 AM
Help needed configuring lilo unicef2k Linux - General 3 07-22-2004 11:55 AM
Complex setup with linux terminal LinuxBlackBox Linux - Networking 6 09-23-2003 03:33 PM
is lilo or grub needed? roofy Linux - Software 4 05-06-2003 08:23 AM
Setup help needed RecoilUK Linux - Networking 7 09-01-2001 03:45 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:57 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration