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

Notices


Reply
  Search this Thread
Old 02-21-2005, 04:56 PM   #1
jnsg
Member
 
Registered: Jan 2005
Location: Kentucky, USA
Distribution: Slackware 13
Posts: 125

Rep: Reputation: 15
Dual boot not presenting LILO


I've just installed Slackware 10.0 on my laptop, configured LILO and everything just like I have already done with a desktop, as a dual-boot with WinXP. For some reason, though, instead of presenting me with the LILO loader screen, it just automatically loads WinXP. I'm new to Linux in general, so I don't really know what to do here.
 
Old 02-21-2005, 05:58 PM   #2
krizzz
Member
 
Registered: Oct 2004
Location: NY
Distribution: Slackware
Posts: 200

Rep: Reputation: 30
Did you set your linux partition bootable? Where did you install LILO? Should be installed in bootsector of linux partition. Do not install the LILO to MBR, you'll corrupt your M$ installation! If you want to boot your linux instalation you have to boot from Slackware CD or bootdisk (if you've made one). To do it:

1. Boot from the Slackware CD
2. In "boot: " prompt type:
Code:
bare.i root=/dev/xxxx noinitrd ro
where xxxx is the partition identifier where you've installed your linux, for example hda2, sdb1,.... If you had used another kernel for instalation, like sata.s or scsi3.s or whatever else then use it in the above command instead of bare.i
3. If you complete above you will be able to login to your Slackware, so login as root.
4. Run cfdisk :
Code:
cfdisk /dev/xxx
where xxx is the identifier of the disk where you have linux partition
5. Check if the linux partition is bootable (don't change it yet)
7. Go to the /etc directory and check lilo.conf file and show me the last part that begins with "# Linux bootable partition config begin"

if you don't know how to browse the directories and files use midnight commander (type mc and press enter)

Last edited by krizzz; 02-21-2005 at 06:00 PM.
 
Old 02-21-2005, 06:03 PM   #3
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
well....i think , if you want a lilo boot-menu ( loader-screen ),
you need to install it in the mbr.

boot your system with the cd, follow onscreen instructions ( like " bare.i mount root=/dev/hd .....etc )
just run " liloconfig "; choose expert mode; add linux and win. ;install in the mbr.

that should do...

egag
 
Old 02-21-2005, 07:16 PM   #4
jnsg
Member
 
Registered: Jan 2005
Location: Kentucky, USA
Distribution: Slackware 13
Posts: 125

Original Poster
Rep: Reputation: 15
Yes, my Linux partition is bootable (I set that when I originally ran cfdisk to partition for Linux), and yes LILO is installed to the bootsector. This is the exact same setup as my desktop (except for the version of Windows), and it does display the loader screen. I will do that boot thing with the Slackware CD, and make sure the Linux partition is bootable, and get that info from lilo.config, then post back here my findings.
 
Old 02-22-2005, 10:44 AM   #5
sovietpower
Member
 
Registered: Jun 2003
Distribution: Slackware64 14.1 and -current
Posts: 209

Rep: Reputation: 30
If you installed Slackware first then WinXP, XP automatically overwrites the boot loader on the MBR. To fix it boot your Slack 10 Disc 1 and load your linux partition. Become root and run the lilo command to rewrite lilo to the mbr. If you didn't install it to the mbr you can make it write to the mbr instead look at lilo -help to see how to do so
 
Old 02-22-2005, 02:36 PM   #6
jnsg
Member
 
Registered: Jan 2005
Location: Kentucky, USA
Distribution: Slackware 13
Posts: 125

Original Poster
Rep: Reputation: 15
WinXP was installed first, and LILO is not installed to the MBR, as I have said. Are you all saying that it needs to be in order for it to work? Why not just have it installed on the Linux bootsector, this works fine for my Win98-Slack10 dual boot, is WinXP different?
 
Old 02-22-2005, 03:14 PM   #7
killerbob
Member
 
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662

Rep: Reputation: 31
That'll definitely make it work, but it does mean that you'll need to fdisk /mbr or lilo -m if you ever get rid of Linux. Also, you'll need to install to the MBR if you ever reinstall Linux or switch distros.

I would suggest that installing it to the root block is better, and that you should look at your partition tables in cfdisk to make absolutely sure that the Linux partition is the *only* partition flagged as bootable. If the Windows partition is bootable, and appears before the Linux partition, then the BIOS will boot that first. It does not need to be flagged bootable for LILO to boot Windows from it.
 
Old 02-22-2005, 03:21 PM   #8
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
no....unless you install lilo in the mbr, you won't be presented with a dual boot menu.
lilo is capable of booting xp just as well as linux.
and for the old mbr........lilo will create a file called /boot/boot.0300, which is a copy of the old mbr.

also in xp, to rebuild the bootsector you must use " fixmbr " ( just incase of prob's )

EDIT: nice joke killerbob

egag

Last edited by egag; 02-22-2005 at 03:27 PM.
 
Old 02-22-2005, 03:23 PM   #9
jnsg
Member
 
Registered: Jan 2005
Location: Kentucky, USA
Distribution: Slackware 13
Posts: 125

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by egag
no....unless you install lilo in the mbr, you won't be presented with a dual boot menu.
Is this something specific to a WinXP dual-boot? Because I know for a fact that it will present a menu when it's installed to the root block, with Win98.
 
Old 02-22-2005, 03:33 PM   #10
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
well...to be honest, i never used win98 dual boot.
with winxp i once used the xp-bootloader to start lin/win, but since i learned
lilo can boot xp, i simply use lilo for both.
and i don't think setting the bootable flag for the lilo-bootblock will work with xp. ( ??? )

and these days i really trust lilo...

egag
 
Old 02-22-2005, 03:42 PM   #11
jnsg
Member
 
Registered: Jan 2005
Location: Kentucky, USA
Distribution: Slackware 13
Posts: 125

Original Poster
Rep: Reputation: 15
Well, I just checked and the Linux partition is the only one bootable...
 
Old 02-22-2005, 04:33 PM   #12
killerbob
Member
 
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662

Rep: Reputation: 31
It will, egag. That's how both my laptop and my desktop are configured... LILO will boot XP no problem. XP takes a civilized approach to it, and stays where it's put.


... And in response to the above... in that case, you've got something weird going on. Try lilo -m to rebuild the mbr, and that may work. Otherwise, just install lilo to the mbr and be done with it.
 
Old 02-22-2005, 04:34 PM   #13
sovietpower
Member
 
Registered: Jun 2003
Distribution: Slackware64 14.1 and -current
Posts: 209

Rep: Reputation: 30
I have lilo installed to the MBR and partitioned as follows

/dev/hda1 Linux Swap
/dev/hda2 Slack10
/dev/hda3 WinXP

writing lilo to the mbr won't ruin your windows partition at all, I always install Linux first when redoing everything and afterwards I go back and run lilo again to overwrite the Windows Boot Loader
 
Old 02-22-2005, 04:44 PM   #14
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
yip, lilo works ok.

---------
Otherwise, just install lilo to the mbr and be done with it
---------

my idea

and that bootable flag.....i didn't know that, but there's allways more than just one solution.

egag
 
Old 02-22-2005, 08:11 PM   #15
krizzz
Member
 
Registered: Oct 2004
Location: NY
Distribution: Slackware
Posts: 200

Rep: Reputation: 30
In my opinion you don't have lilo there. How did you checked it?
Try this:

dd if=/dev/xxxx of=/tmp/boosector.txt bs=512 count=1

cat /tmp/bootsector.txt

You will get some strange output but the string "LILO" should appear there at least once.
If you don't see any "LILO" there that definitely means the LILO is not installed on /dev/xxxx.

Be carefull, if you swap the /dev/xxxx and /tmp/bootsector.txt you may overwrite the boot sector!
xxxx is your Linux partition of course.
 
  


Reply


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
lilo dual boot noir911 Slackware 7 10-20-2004 01:46 AM
Need dual boot help...LILO..Winxp wont boot Scrag Linux - Hardware 2 09-01-2004 12:26 AM
Lilo dual boot hfawzy Linux - General 3 08-02-2004 01:14 PM
Lilo lost, Install disk failing to restore Lilo on dual boot? Dobie Linux - Newbie 2 05-05-2004 05:00 PM
lilo rh 8.0 xp dual boot TakuanSo_Ho Linux - Software 3 02-14-2003 09:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:06 AM.

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