LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-15-2004, 11:43 PM   #1
AlexMax
LQ Newbie
 
Registered: Aug 2004
Distribution: Slackware 10.0, Fedora Core 2
Posts: 14

Rep: Reputation: 0
Reinstalled LILO, now it boots directly to Windows XP


Here is my drive configuration

/hda1 - Windows XP drive C:
/hdb1 - Windows XP drive F:
/hdb2 - Swap file
/hdb3 - /
/hdb4 - /boot/

/hdb4 is placed at the very begining of the drive, by the way.

My problem is that when I installed Slackware 10, I chose for it to be installed on the MBR of my first drive, because when I tried putting it elsewhere, it would just boot directly to Windows XP.

However, durring installation, I made a few poor choices relating to my console font. As it stood, I had a framebuffer for my console, and it really started to annoy me. I decided to go into lilo.conf and change to vga=normal. I then installed lilo through /sbin/lilo.

Unfortuniatly, when I rebooted it to test this out, it booted straight into Windows XP, with no lilo prompt at all. What? I would have thought that even if install messed up, it would still use the old lilo configuration....

I think I can still get to my linux partition and reinstall lilo again by putting in my slackware setup CD, mounting my root directory, and reinstalling lilo that way. However, I'm not sure if I put in the correct paramitors when I reinstalled lilo, and the lilo man pages are a little over my head. I don't really want to reinstall, because I spent an afternoon figuriong out how to configure X to my liking through configuration files, and I don't want to reinstall a third time unless I really have to.

Or, would I be better off with grub, like I had in Fedora Core 2?

Thanks in advance.
 
Old 08-16-2004, 12:41 AM   #2
waever
Member
 
Registered: Oct 2003
Location: Hamilton,ON
Distribution: LFS
Posts: 46

Rep: Reputation: 16
just use the xp bootloader to load linux, it's more smple.

dd if=[where lilo installed, see lilo.conf] of=bootsect.lnx bs=512 count=1
then copy the bootsect.lnx in the C: drive in win
then edit the c:\boot.ini and
under [operating systems] add this line

c:\boot\bootsect.lnx="Linux"
 
Old 08-16-2004, 12:48 AM   #3
AlexMax
LQ Newbie
 
Registered: Aug 2004
Distribution: Slackware 10.0, Fedora Core 2
Posts: 14

Original Poster
Rep: Reputation: 0
I see. But how do I install LILO to the MBR again?

You know, just in case...
 
Old 08-16-2004, 01:22 AM   #4
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
run liloconfig as root

use lilo rather than the ntldr bootloader - it's much more intelligent
 
Old 08-16-2004, 01:55 AM   #5
Archite
Member
 
Registered: Jul 2004
Distribution: OpenBSD 3.5
Posts: 89

Rep: Reputation: 15
While in linux type either lilo or lilo -f /etc/lilo.conf
 
Old 08-16-2004, 04:54 AM   #6
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
If you run "lilo" all you will do is install the /etc/lilo.conf file that you already have on your system. If you have that file messed up (which you obviously do since you've done this and it won't boot), then you'll need to reinstall LiLO altogether (as you've stated and asked 'how to do').

If you run "lilo -f /etc/lilo.conf" all you're doing is specifying the disk geometry parameter file. This is not necessary, and it will give you output such as
Code:
bash-2.05b# lilo -f /etc/lilo.conf
Fatal: Invalid line in /etc/lilo.conf:
"append="hdb=ide-scsi hdd=ide-scsi apm=power-off""
or something that will be of no value to you, with your present knowledge of your OS and LiLO.

You can boot into Slack with the Slackware-10.0 CD1 by booting with it and then at the prompt type
# bare.i root=/dev/hdb3 noinitrd ro
and that should get you back into Slackware.

All you need to do is run "liloconfig" as previously stated, and then choose the expert installation method. Open a terminal, such as xterm, login as root, and type "liloconfig" without the quotes. If you need help knowing what to choose, there are some instructions in this thread - read Post #7.

The important options for you according to your posted "drive configuration" are:
Select LILO target location - MBR
Confirm location to install LILO - /dev/hda
Select Linux partition - /dev/hdb3
Select DOS/Windows Partition - /dev/hda1

If you've messed up your /etc/lilo.conf file, and need help rewriting it, just post back and ask.

I'm not saying the other gentlemen are incorrect, but this method is the 'Slackware way.' But for sure Slackware does not encourage you to use the Windoze NTLDR bootloader.

Last edited by Bruce Hill; 08-16-2004 at 05:10 AM.
 
Old 08-16-2004, 04:36 PM   #7
AlexMax
LQ Newbie
 
Registered: Aug 2004
Distribution: Slackware 10.0, Fedora Core 2
Posts: 14

Original Poster
Rep: Reputation: 0
Thank you very much, poster above me, that worked like a charm. Only thing left to figure out now is why initlevel 4 killed tty1-tty5 and why my console mouse service is screwing up and not acting as expected at all...
 
Old 08-16-2004, 04:42 PM   #8
wass29
Member
 
Registered: Feb 2003
Distribution: Slack 9,10 Ubuntu 8.04-current RHEL4(sort of)
Posts: 63

Rep: Reputation: 15
Runlevel 4 always kills TTY1-5 that has been like that for years there is no way I know of to fix it either. you have to go back to runlevel 3 to get that feature back.
 
Old 08-17-2004, 10:15 AM   #9
sorceran
LQ Newbie
 
Registered: Oct 2003
Location: Durango, CO
Distribution: Slackware Current
Posts: 13

Rep: Reputation: 0
Quote:
runlevel 4 always kills TTY1-5 that has been like that for years there is no way I know of to fix it either. you have to go back to runlevel 3 to get that feature back.
LoL no you don't!

edit your /etc/inittab

find these lines


# These are the standard console login getties in multiuser mode:
c1:12345:respawn:/sbin/agetty 38400 tty1 linux
c2:12345:respawn:/sbin/agetty 38400 tty2 linux
c3:12345:respawn:/sbin/agetty 38400 tty3 linux
c4:12345:respawn:/sbin/agetty 38400 tty4 linux
c5:12345:respawn:/sbin/agetty 38400 tty5 linux
c6:12345:respawn:/sbin/agetty 38400 tty6 linux

change whichever tty's you want to load at level 4 for example I have them all loading at all init levels

I forget what the original file looks like, but for example if yours looks like this
c1:1235:respawn:/sbin/agetty 38400 tty1 linux
change it to
c1:12345:respawn:/sbin/agetty 38400 tty1 linux
 
  


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
Reinstalled XP and can't get into Windows Superganja23 Mandriva 9 05-23-2006 06:09 AM
reinstalled windows yesterday and... garba General 9 11-07-2005 10:34 AM
X86Free problem, directly boots into text mode,not into gui Tinku Linux - General 2 07-09-2004 12:27 AM
boots directly to windows, skips linux alfdog Linux - Newbie 8 06-28-2004 09:27 AM
removing lilo to boot directly into windows scubanix Linux - Software 2 05-05-2004 05:48 PM

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

All times are GMT -5. The time now is 02:14 PM.

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