LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 09-12-2004, 04:16 PM   #1
mlsbraves
Member
 
Registered: Feb 2004
Location: Gulfport, MS
Distribution: Slackware 10.1, Gentoo
Posts: 90

Rep: Reputation: 16
How to config lilo to boot from two Hard Drives.


How do I setup lilo to boot from either HD? I have the master HD with windows and the slave I am about to install slackware. The guide I'm using(http://www.bitbenderforums.com...)has two OS's installed on the same HD so its a little different and the config will be different too. The config file he's got it:

But since I'm installing on hdb lilo would be installed on it wouldn't it? So when the system boots it will auto start on hda, master(windows), unless I change bios to start slave first. So should I change bios to start slave and change the config to:
Code:
boot = /dev/hdb
Code:
root = /dev/hdb
Code:
other = /dev/hda
I'm not sure what the table value is for.
 
Old 09-12-2004, 05:39 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
No, you want lilo in hda's mbr.
Otherwise you'd need to point
the windows boot-thingy to lilo
which then could boot linux.


Cheers,
Tink
 
Old 09-12-2004, 06:25 PM   #3
mlsbraves
Member
 
Registered: Feb 2004
Location: Gulfport, MS
Distribution: Slackware 10.1, Gentoo
Posts: 90

Original Poster
Rep: Reputation: 16
Quote:
Originally posted by Tinkster
No, you want lilo in hda's mbr.
Otherwise you'd need to point
the windows boot-thingy to lilo
which then could boot linux.
Sorry just a little confused. I am installing slackware on my slave hd. During the slack installation when it ask which mode to install, if I choose simple meaning to automatically install should that do the trick? This guide is for installing on the same hd. If I choose simple will it reconize that windos is on the master hd and allow me to boot from it as well? Also since I choose to install on the hdb when it comes to option install to mbr, won't it install on the hdb's hd?
 
Old 09-12-2004, 06:38 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
It will, and lilo will never be touched since the
BIOS will boot of the first hdd ...

I don't know whether it will pick up you windows
install, it may :)



Cheers,
Tink
 
Old 09-13-2004, 09:16 PM   #5
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
Here's a little LILO tutorial that I copied from another thread:

Quote:
NB: At any time during the liloconfig process, tabbing to Cancel
and pressing Enter will cancel and not make any changes to your system.
So, should you "hit a brick wall," don't panic, just cancel and get the info
you need and then start over.
NB: This was written for someone with a system already up and running,
but it works the same on the initial install of Slackware. The only difference
is you don't login and start liloconfig because that's done by the installer.

As a normal user, open a console, then login as root and issue
# liloconfig
And it's a simple little gui app...
Choose expert - Use expert lilo.conf setup menu
Choose Begin - Start LILO configuration with a new LILO header
Optional LILO append="<kernel parameters>" line
(If you have a CD-RW or DVD+/-RW you add it here.
/dev/hda = master drive on primary controller
/dev/hdb = slave drive on primary controller
/dev/hdc = master drive on secondary controller
/dev/hdd = slave drive on secondary controller
If you don't have one, just enter)
Configure LILO to use frame buffer console
(usually best to kept default - I use 1024x768x256)
Select LILO target location - MBR
Confirm location to install LILO - /dev/hda
(almost always with a dual boot and Windoze installed first,
if not, you'll know where and why you put Windoze elsewhere)
Choose LILO timeout - 5 seconds
(personal preference - easily changed later via lilo.conf timeout)
Back at the Expert LILO Installation screen
Linux - Add a Linux partition to the LILO config
(below that is DOS - the first one you add will be the default)
Select Linux partition
(this is your Linux / partition - if you don't know issue
# /sbin/fdisk -l from a console - lower case L)
Select Partition Name
(this is what you will call each one you boot, i.e.
Slackware
Windoze
and this first one will be your default choice,
which helps if you just want to boot while you're
fixing coffee and return to the machine)
Back at the Expert LILO Installation screen
DOS - Add a DOS/Windoze FAT partition to the LILO config
(NB: this doc is very old - FAT32 and NTFS probably weren't
out when it was written, but they will boot also)
Select DOS/Windoze Partition
(the bootable Windoze part will have an * under boot,
just in case you don't know which one to choose - yours will
be /dev/hda1)
Select Partition Name
(I'm partial to Windoze, WinDOHs, or anything else
that helps me remember what it actually is - even WinXP)
Back at the Expert LILO Installation screen
Install - Install LILO
(the stuff below is if you're installing LILO after you've
done the Slack install. If this is the initial install, disregard below...
Installing the Linux Loader...
and before you realize it, against the blue background
you should notice your shell prompt show up, so type
# /sbin/lilo
and you will see something like
bash-2.05b# /sbin/lilo
Added Slackware *
Added Windoze
bash-2.05b#

Now you must reboot your shiny new Linux system,
which you may do at that # prompt by issuing
# reboot
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
two hard drives and a new config chil326 Linux - Hardware 2 08-10-2004 05:35 PM
Lilo boot on two hard drives tr0j4n Linux - Newbie 5 02-16-2004 02:37 AM
Dual Booting with XP, multiple Hard Drives and LILO problems melliott Linux - General 15 01-21-2004 01:34 PM
Upgrading hard drives on Software raid 1 boot drives. linuxboy123 Linux - General 0 12-11-2003 04:28 PM
lilo and 3 hard drives j-charles Linux - Newbie 1 02-25-2002 04:39 PM


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