LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-18-2003, 09:08 AM   #1
caminator
LQ Newbie
 
Registered: Nov 2003
Posts: 5

Rep: Reputation: 0
LILO Probs


Hello. I have one harddrive, and 2 partitions. Slackware is on hda1 and windws is on hda2. I want lilo to be my bootloader. When I installed slackware, i also installed lilo to the superblock. I can boot to windows (it does it automatically), and I can boot to slack also, but I need a bootdisk to do it.

How do I 'enable' lilo so it is my bootloader. Right now win2k is thus not allowing an option to boot to linux.

Like I said, it appears everything is set to go, I just need to 'enable' lilo somehow. Thanks in advance!
 
Old 11-18-2003, 09:45 AM   #2
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
If lilo is installed to the bootsector of your Linux partition...
Use 'dd' to copy it to a file:
dd if=/dev/hda1 of=/lilo.b bs=512 count=1
Copy this 'lilo.b' file to your Win2k (via floppy if you use NTFS) partition. Then add an entry in your 'C:\boot.ini' :
C:\lilo.b = "Slackware Linux"
This will use the Win2k bootloader to dual boot

Or, you can install lilo to the mbr:
You might be able to use the 'liloconfig' tool for this.
If not, edit your /etc/lilo.conf, changing the line 'boot=/dev/hda1' to 'boot=/dev/hda'. Then run 'lilo' to apply the changes.

Last edited by aaa; 11-19-2003 at 08:34 AM.
 
Old 11-18-2003, 10:20 AM   #3
caminator
LQ Newbie
 
Registered: Nov 2003
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for the info aaa. I did try conpying the boot sector to a floppy a few days ago, but everytime I booted back into win2k, it showed the floppy as being empty. It didn't say it was unreadable, needed to be formatted, or any errors. It just appeared as the disk was empty. You know why this would have happened?

PS. I did have it set to show all hidden files and folders, incase that was the prob, but apparently it wasn't.
 
Old 11-18-2003, 11:28 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,266

Rep: Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624
Did you mount the floppy before writing the file?
 
Old 11-18-2003, 01:09 PM   #5
caminator
LQ Newbie
 
Registered: Nov 2003
Posts: 5

Original Poster
Rep: Reputation: 0
Actually guys...I'm almost done. I did what you recommended aaa, and it seemsed to work so now windows is controlling the boot.

One error now, is that after I choose to boot to linux (from windows boot loader) it takes me to a linux screen, and LILO popups up. so now they both are working. How can I uninstall LILO so that just windows is controlling the boot.

As now, I have to select linux from windwos boot, then select linux again from LILO just to boot to linux. Thanks!
 
Old 11-18-2003, 01:17 PM   #6
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
afaik windows bootloader can't load the linux kernel directly so it can't be done, but you can achieve a similar effect by setting "delay = 0" in lilo.conf, you'll need to run the lilo command as well as extracting the bootsector with dd again.
 
Old 11-18-2003, 01:41 PM   #7
caminator
LQ Newbie
 
Registered: Nov 2003
Posts: 5

Original Poster
Rep: Reputation: 0
well, whatever I'm doing, it is using windows to give me the option to boot to linux or windows. Maybe I just used the wrong terms in my previous post.
 
  


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 Probs Hangs at boot slakware-oldie Slackware - Installation 1 10-13-2005 01:06 AM
Lilo bootloader probs whitelinux Linux - Software 2 08-15-2005 07:01 PM
Re: Linux Newbie here. LILO Probs!!! spineshank Slackware 13 09-05-2003 10:13 AM
lilo/win2K dual boot probs granny Linux - General 2 07-18-2003 02:01 PM
LILO Installation Probs skubik Linux - Software 2 05-03-2003 02:58 PM


All times are GMT -5. The time now is 10:45 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration