LinuxQuestions.org
Visit Jeremy's Blog.
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 07-22-2001, 07:48 PM   #1
Colonel Panic
Member
 
Registered: Jul 2001
Location: California
Distribution: Red Hat 7.1, Slackware 8.0
Posts: 216

Rep: Reputation: 30
editing lilo.conf... SOMEONE PLEASE RESPOND! I AM DESPERATE!!!!!


My question is about being able to dual boot with different hard drives. I will be dual booting using windows 98 and Red Hat Linux 6.1. I was told to add these three lines of code to linux.conf:

other=/dev/hda1
label=dos
table=/dev/hda

where the 'other' is windows.
By adding this code to the lilo.conf, will I be able to dual boot with different hard drives? I'll be using win 98 and redhat 6.1. WILL THIS INTERFERE WITH THE WINDOWS MBR, OR THE WINDOWS INFORMATION? WILL LILO BE ON MY WINDOWS DRIVE? Thanks for the help, and I think I am finding the information that I have been looking for! :-) PLEASE, SOMEONE, ANYONE, PLEASE RESPOND TO MY QUESTION! I am VERY desperate right now! Any help that can be provided is appreciated!

*****Colonel Panic*****
 
Old 07-22-2001, 09:59 PM   #2
rolf
Member
 
Registered: Jul 2001
Location: Oakland, CA
Distribution: Mageia 5 x86_64
Posts: 187

Rep: Reputation: 33
Well, since you said, "ANYONE".....

There are some good docs about LILO at MandrakeUser (Mandrake derived from Red Hat, you know ):

http://www.mandrakeuser.org/docs/install/iboot.html

I like GRUB, don't know LILO but you might also want to look at man lilo and man lilo.conf. Pretty sure you have to run lilo after modding the conf file. Good luck.
 
Old 07-23-2001, 02:25 AM   #3
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45


Here's a story.

If you had a Windows-only machine, the code in the mbr would boot Windows.

If you had a dual-boot, the MBR would run LILO, which will allow you to start either Win or Linux. This is of course assuming that you set up lilo.conf properly (and re-ran /sbin/lilo).
Code:
# LILO configuration file
# Start LILO global Section
append=""
boot=/dev/hda
read-only
prompt
timeout=100
# End LILO global Section
#
image = /boot/vmlinuz
  root = /dev/hdc3
  label = linux
 
other=/dev/hda1
  table=/dev/hda
  label=windows
The part that says boot=/dev/hda tells lilo to write to the MBR on the first ide drive. The label "linux" will boot Linux from the third partition (/dev/hda3) of the third logical drive and "windows" will boot from the first partition (/dev/hda1) on the first drive.

Last edited by mcleodnine; 07-23-2001 at 02:28 AM.
 
Old 07-23-2001, 07:11 PM   #4
Colonel Panic
Member
 
Registered: Jul 2001
Location: California
Distribution: Red Hat 7.1, Slackware 8.0
Posts: 216

Original Poster
Rep: Reputation: 30
There will be two mbrs. on hda, which is windows, there will be a windows bootloader. on hdb, which is linux, there will be lilo. want to edit lilo.conf to dual boot with different drives. Something like this:

#begin lilo.conf
boot=/dev/hdb
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
image=/boot/vmlinuz-xxxxx #(kernel here)
label=linux
root=/dev/hdb
read-only
#add this to boot win
other=/dev/hda1
label=dos
table=/dev/hda
#end lilo.conf

Now, by adding this, will this interfere with the windows mbr, or the windows information? will lilo be on my windows drive? Thanks for any help that can be provided!

*****Colonel Panic*****
 
Old 07-23-2001, 08:06 PM   #5
DMR
Member
 
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986

Rep: Reputation: 30
By doing "boot= /dev/hdb", you would be putting lilo MBR of the second drive, not the Windows drive. However, I think you actually want to put it on the / partition of the second drive (not the MBR) by specifying "boot= /dev/hdbx", where "x" is the partition number of /. Also, Redhat versions prior to 7.0 used an older version of lilo which as the dreaded 1024 cylinder limitation; you might want to go with a newer version.

Also, read theLilo mini HOW-TO and the Dual-boot NHF.
 
Old 07-23-2001, 09:13 PM   #6
Colonel Panic
Member
 
Registered: Jul 2001
Location: California
Distribution: Red Hat 7.1, Slackware 8.0
Posts: 216

Original Poster
Rep: Reputation: 30
Why should I not put LILO on the MBR of the second drive? I'm kinda getting confused. WHAT SHOULD DO???

K E R N E L P A N I C!!!

*****Colonel Panic*****

the name colonel panic is word play, if you haven't figured it out.
 
Old 07-23-2001, 09:16 PM   #7
Colonel Panic
Member
 
Registered: Jul 2001
Location: California
Distribution: Red Hat 7.1, Slackware 8.0
Posts: 216

Original Poster
Rep: Reputation: 30
Oh, when you say installing lilo on the / partition, do you mean by the superblock? Is lilo going to be in the /boot partition? I want to have /boot partition. So, I would like to know what to do. Thanks for any help that can be provided!

*****Colonel Panic*****
 
Old 07-23-2001, 11:20 PM   #8
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Quote:
Originally posted by Colonel Panic
Why should I not put LILO on the MBR of the second drive? I'm kinda getting confused. WHAT SHOULD DO???

K E R N E L P A N I C!!!

*****Colonel Panic*****

the name colonel panic is word play, if you haven't figured it out.
If you put it on the MBR of the second drive, how will your BIOS know which system to boot?

That's why I use new "Lemon Fresh" LILO! I just tell it what OSs I want to boot and squirt a little dab of it on the MBR of my first drive. Then I select my choice of operating system from the handy boot menu. It's yummy.
 
Old 07-24-2001, 04:13 PM   #9
Colonel Panic
Member
 
Registered: Jul 2001
Location: California
Distribution: Red Hat 7.1, Slackware 8.0
Posts: 216

Original Poster
Rep: Reputation: 30
Is there any way to NOT put it on the first drive? Don't really want it to rewrite the MBR of the first drive because it would be interfering with windows. I don't want either OS to interfere with each other.

*****Colonel Panic*****
 
Old 07-24-2001, 10:23 PM   #10
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
I do it all the time, but if you don't want it on there I guess you are stuck booting linux from a floppy or do the old bios swap boot drive trick.

Really the MBR lilo on the first drive is the logical way to go. LILO is designed to boot Operating systems, it's not an operating system.
 
Old 07-25-2001, 02:45 AM   #11
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Egg-Zacchary. DPhillips just put it in terms even I could understand.
 
Old 07-25-2001, 04:52 PM   #12
Colonel Panic
Member
 
Registered: Jul 2001
Location: California
Distribution: Red Hat 7.1, Slackware 8.0
Posts: 216

Original Poster
Rep: Reputation: 30
Think it is possible for me to install Linux and LILO on the slave, edit lilo.conf to be able to boot into Windows on the master, and change the BIOS so that it will boot the slave drive? Then, when the computer starts up, it goes directly do hdb, and allows me to boot either Linux on the slave or Windows on the master. Do you think this will work? If I put lilo on the MBR of windows, and I'll have to reinstall windows, I will get a lilo prompt? Happened when GRUB overwrote my MBR. Had to do a complete trash. How would I reinstall Windows When LILO is on the MBR of the first disk?

*****Colonel Panic*****
 
Old 07-25-2001, 05:01 PM   #13
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
It wouldn't have trashed your Windows drive. All you needed to do was re-write the MBR with the DOS bootloader. From a DOS boot disk:
Code:
A:\>fdisk /MBR
.

Assuming that you have fdisk.com on that boot floppy.

What you are planning to do is...

...well it's kinda...

kooky.

But I guess it might work.
 
Old 07-26-2001, 02:20 PM   #14
Colonel Panic
Member
 
Registered: Jul 2001
Location: California
Distribution: Red Hat 7.1, Slackware 8.0
Posts: 216

Original Poster
Rep: Reputation: 30
If I install LILO on the MBR of the windows drive, then if I get rid of it, will I still be able to boot into linux with a floppy? Does it take a long time to boot with a floppy? How can I get LILO on the Windows drive? Thanks!

*****Colonel Panic*****
 
  


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.conf editing Daunted Linux - Newbie 6 10-16-2004 10:13 PM
Editing Lilo.conf? Mandrake 10 won't boot midk Linux - Newbie 6 07-29-2004 11:08 PM
Editing lilo.conf alex101 Mandriva 2 10-15-2003 05:17 AM
No new kernel-option in LILO after editing lilo.conf corwax Debian 3 08-26-2003 08:55 PM
Editing lilo.conf & fstab moebush Linux - General 2 07-04-2003 04:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:29 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