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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-22-2001, 07:48 PM
|
#1
|
|
Member
Registered: Jul 2001
Location: California
Distribution: Red Hat 7.1, Slackware 8.0
Posts: 216
Rep:
|
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*****
|
|
|
|
07-22-2001, 09:59 PM
|
#2
|
|
Member
Registered: Jul 2001
Location: Oakland, CA
Distribution: Mandriva 2010.2 x86_64
Posts: 186
Rep:
|
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.
|
|
|
|
07-23-2001, 02:25 AM
|
#3
|
|
Senior Member
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731
Rep:
|
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.
|
|
|
|
07-23-2001, 07:11 PM
|
#4
|
|
Member
Registered: Jul 2001
Location: California
Distribution: Red Hat 7.1, Slackware 8.0
Posts: 216
Original Poster
Rep:
|
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*****
|
|
|
|
07-23-2001, 08:06 PM
|
#5
|
|
Member
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986
Rep:
|
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 the Lilo mini HOW-TO and the Dual-boot NHF.
|
|
|
|
07-23-2001, 09:13 PM
|
#6
|
|
Member
Registered: Jul 2001
Location: California
Distribution: Red Hat 7.1, Slackware 8.0
Posts: 216
Original Poster
Rep:
|
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.
|
|
|
|
07-23-2001, 09:16 PM
|
#7
|
|
Member
Registered: Jul 2001
Location: California
Distribution: Red Hat 7.1, Slackware 8.0
Posts: 216
Original Poster
Rep:
|
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*****
|
|
|
|
07-23-2001, 11:20 PM
|
#8
|
|
Senior Member
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731
Rep:
|
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.
|
|
|
|
07-24-2001, 04:13 PM
|
#9
|
|
Member
Registered: Jul 2001
Location: California
Distribution: Red Hat 7.1, Slackware 8.0
Posts: 216
Original Poster
Rep:
|
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*****
|
|
|
|
07-24-2001, 10:23 PM
|
#10
|
|
Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154
Rep:
|
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.
|
|
|
|
07-25-2001, 02:45 AM
|
#11
|
|
Senior Member
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731
Rep:
|
Egg-Zacchary. DPhillips just put it in terms even I could understand.
|
|
|
|
07-25-2001, 04:52 PM
|
#12
|
|
Member
Registered: Jul 2001
Location: California
Distribution: Red Hat 7.1, Slackware 8.0
Posts: 216
Original Poster
Rep:
|
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*****
|
|
|
|
07-25-2001, 05:01 PM
|
#13
|
|
Senior Member
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731
Rep:
|
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: .
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.
|
|
|
|
07-26-2001, 02:20 PM
|
#14
|
|
Member
Registered: Jul 2001
Location: California
Distribution: Red Hat 7.1, Slackware 8.0
Posts: 216
Original Poster
Rep:
|
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*****
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:52 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|