Click to See Complete Forum and Search --> : Linux on secondary HD???


Morjo
03-13-2001, 11:59 PM
Can this be done???

pbharris
03-14-2001, 12:08 AM
Yes!!!

knowledgepeacewi
03-14-2001, 12:12 AM
Easily! :)

Sensei
03-14-2001, 12:36 AM
Do it that way rather the same HD. My systems are dual boots and Linux has its own drive.

I think its easier to install this way.

Gweedo
03-14-2001, 12:49 AM
It is definitely easier to recover if something goes wrong if you keep the two OSs on different disks.

Morjo
03-14-2001, 01:04 AM
How di I do it?
I will be installing Mandrake 7.2

Morjo
03-14-2001, 02:53 AM
So how do I do it then?
Cheers!!!

mychl
03-14-2001, 03:34 AM
You will need a /boot partition at the beginning of the primary drive, everything else you can mount on the other drive with /

I could be wrong about that, but I think that you need to have the /boot on the same drive as the MBR, where you would put boot loader.

Good Luck

Morjo
03-14-2001, 04:43 AM
I heard there was another way of doing it?

yogotie
03-14-2001, 05:34 AM
If you put linux on the secondary HD then it will install the LILO onto the Primary HD which will over write the MBR but it will work and allow you to boot windows or linux.

When I did this the only problem I had was when windows started going flakey again and then I had to reinstall Win98 and it over writes the MBR.

There are many options but they require more work. I did this so I know it works. I my current system is similar to this but different so that I don't run into Windows problems. I highly recomend that you do not put Linux on the secondary HD.

slapNUT
03-14-2001, 01:09 PM
There are a couple options if you have your Linux installed on the second hard drive:
1 Put /boot on a small partition on hda then / on hdb.
2 LILO map-drive command.

The map-drive goes something like this.

<your /etc/lilo.conf file>


boot=/dev/hda
boot=/boot.b
<more global stuff>

image=/boot/vmlinuz
label=Linux
read-only
root=/dev/hda2

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

other=/dev/hdb1
label=QNX_RTOS
loader=/boot/os2_d.b
map-drive=0x80
to=0x81
map-drive=0x81
to=0x80

The lilo map-drive command can be used in this way tell the bios to treat hda like hdb and visa versa. As the README states this will only work on an OS that relys totally on the bios for read/write to the hard drives. I use this to boot Windows98 & QNXRTOS.
Before trying this, read the README

slapNUT
03-14-2001, 01:19 PM
I don't know if this works with Linux but since it is a part of LILO one would assume with a little work you could make it fly. There is also an change command in LILO which switches active partitions which you might be able to use to change bootable drives:

other=/dev/hda2
label=ActivateHDA1
change
partition=/dev/hda1
activate
partition=/dev/hda2
deactivate

other=/dev/hda2
label=ActivateHDA2
change
partition=/dev/hda2
activate
partition=/dev/hda1
deactivate

cage47
03-14-2001, 01:27 PM
You don't necessarilly have to have /boot on the first hd. All you need to do is make sure to install LILO to hda. There might be other ways but just install whatever on hda first then install Mandrake on hdb (don't forget your swap partition). I've done it like this since I started with Linux.

Morjo
03-14-2001, 06:11 PM
So do I out the swap partition on my Secondary HD?
Also when you install Linux does it give you the option to install it on the scondary HD?
Cheers!!!

knowledgepeacewi
03-15-2001, 12:04 AM
That would depend on what version of linux you install and how you install it.

I installed Red Hat Linux 6.2 on my Secondary hard drive using the disk from "Red Hat Linux for Dummies" it did it well and the step by step is good as long as you know what hardware you have on your system and what you want to use it for.
If you want the internet you will need to talk to your ISP about IP address, name servers, and password/username encryption.
if they aren't any help you'll have to get around the problem on your own. ;)
There are a lot of issues you need to consider before you dive in to the install. Otherwise you'll get burned and have to redo it 3 or 4 times. A note for the Dummies install, I had to configure my sound and printer myself after a lot of work with the GUI. I also use Gnome with KDE options for my display.

its worth it though,
well, thats what all the voices say, anyway.

willk
03-15-2001, 12:20 AM
I've had linux on hdd and windows on hda...
just have lilo install to the mbr (hda*)
Just make sure you have boot disk or know how
to use a rescue disk in case you get
something wrong, if it is the first time you've set this up you pobably will...no big deal just fix it and move on.
To put things back the way they were use a DOS boot disk with fdisk.exe on it and
"fdsik /mbr" recovers the original mbr and you will boot into windows as if nothing ever happened.

cage47
03-15-2001, 10:17 AM
Mandrake has the best partitioner in the install but Debian also does a fine job. When you do the partitioning just leave enough hd space to make the swap file when you make your primary partition. (since the swap is an extended partition). Both these distros give you the option to modify the partition scheme to install Linux. Mandrake's is Graphical though. Nice touch for newbies. :D

Pras
03-15-2001, 03:32 PM
When lilo is run, doesn't it automatically install itself on the MBR? So, even if linux is on hdb, and all partitions, /boot and otherwise are on hdb, wouldn't one just have to edit /etc/lilo.conf to point to hdb? Correct me if I'm wrong please, I'll be doing this in a few days!

bdg1983
03-15-2001, 08:52 PM
Pras, as you said. It depends on what you have configured in lilo.conf

winnotgoneyet
03-16-2001, 01:31 AM
Morjo
When you start the install everything is pretty straight forward, make a windows rescue/start floppy just in case.
when it asks which drive to format make sure you pick the right one and let it go!
It will install lilo to the MBR by default I think and the rest is history.
If you have a problem you can start windows with the floppy and fix the MBR, at the dos prompt type fdisk /mbr (someboby correct me if this is wrong??) then you can start the install over or whatever

Good luck

Morjo
03-16-2001, 11:16 AM
Ok, for some reason the LILO does not have an option to boot into windows?

Frawg
03-16-2001, 11:23 AM
OK
I installed the mandrake on drive 2 last night.
I can't get my lilo.conf configurated correctly?
Am i supposed to add that hard disk in my mtab or fstab? That doesn't seem to affect anything...

I tried

image=/boot/2.2.blahblah
label=redhat7 #this is my redhat
read-only
root=/dev/hda5

other=/dev/hda1
label=*****slap #this is my winders


#Those two work. So i added this in..

other=/dev/hdb1/boot/kernelname
label=Mandrake on second HDD

#That did not work

I tried mounting my /dev/hdb1 to /mandrake
and i added this to my lilo.conf

other=/mandrake/boot/kernelname
label=Mandrake on second HDD

That did not work... :confused:

Stoned Ferret
03-16-2001, 11:24 AM
You should be able to partition it easy using Partition Magic 6 from Windows. Then when booting from the Mandrake CD, and it get's to the partitioning, auto allocate should do it all for you. Good luck.. :eek:

padillah
03-16-2001, 11:32 AM
Where did you install LILO? I know (from the SuSE install) you can install LILO in the MBR (in which case it wipes out the old MBR, might not want to do that) or in the first 1024 cylinders (cylinders or blocks? I forget) of the first drive.

I've got my system setup with LILO in the /boot in the first 1024 blocks (or whatever).

If that doesn't work just type it in from the example above.

Frawg
03-16-2001, 11:45 AM
lilo is in my MBR.

The first two examples, *****slap and Redhat7 are on hda, (hda1, and hda5 respectively) Mandrake is in my hdb1. my mandrake Kernel is in hdb1/boot/whateverthekernelnameis

thor4linux
03-16-2001, 11:54 AM
I was a newbie with drake once. with two hard drives it is really easy to set up linux and windows. within the Drake partion tool you never have to touch you win drive, just stay on the linux drive and set up the /, /boot, /swap and /home partions(just my opinion that you need a /home partion). the /home or /usr partion allows you to reinstall darake and still keep any thing you want, ie. any new software you downloaded and want to reinstall or user config files.
anyways... when lilo asks you where to install it you can specify the MBR, or you can use a boot disk. i would make the bootdisk either way. like it was mentioned before a re-install of windows will wipe the MBR clean. i screwed up lilo once and lost my abilities to boot windows. but i think that was a comedy of errors. Good luck.

B

cage47
03-16-2001, 12:15 PM
Frawg, you are missing one thing. For your hdb entries you need one more line like this

table=hda

That reads the partition table from hda which is where it was written when you ran the install.

Frawg
03-16-2001, 12:26 PM
table=hda
That reads the partition table from hda which is where it was written when you ran the install.
<dubious> So you're saying that the partition table for my second fixed disk is written on my primary master fixed disk? hmmmm </dubious>

bcuz originally the *****slap was installed, then i installed the redhat.. that works.. then i added a HDD and installed the mandrake onto that.. No go.. I'll try this when i get home on my lilo tho.. WAIT!! I JUST TJHOUGHT OF SOMETHING!!!

When i change my lilo, i have to type lilo at the command line for it to take effect BROFRE i reboot?!?! RIGHT/!?!?
:eek:

XxMaCaBrExX
03-16-2001, 12:34 PM
Originally posted by slapNUT:
I don't know if this works with Linux but since it is a part of LILO one would assume with a little work you could make it fly. There is also an change command in LILO which switches active partitions which you might be able to use to change bootable drives:

other=/dev/hda2
label=ActivateHDA1
change
partition=/dev/hda1
activate
partition=/dev/hda2
deactivate

other=/dev/hda2
label=ActivateHDA2
change
partition=/dev/hda2
activate
partition=/dev/hda1
deactivate

What exactly does this do? :confused:

XxMaCaBrExX
03-16-2001, 12:38 PM
Originally posted by slapNUT:
There are a couple options if you have your Linux installed on the second hard drive:
1 Put /boot on a small partition on hda then / on hdb.
2 LILO map-drive command.

The map-drive goes something like this.

<your /etc/lilo.conf file>


boot=/dev/hda
boot=/boot.b
<more global stuff>

image=/boot/vmlinuz
label=Linux
read-only
root=/dev/hda2

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

other=/dev/hdb1
label=QNX_RTOS
loader=/boot/os2_d.b
map-drive=0x80
to=0x81
map-drive=0x81
to=0x80

The lilo map-drive command can be used in this way tell the bios to treat hda like hdb and visa versa. As the README states this will only work on an OS that relys totally on the bios for read/write to the hard drives. I use this to boot Windows98 & QNXRTOS.
Before trying this, read the README

I see you are running QNX. I'm trying to get it installed, but I always end up with "Missing Operating System" after I use the floppy to create the partition then reboot. I'm installing it to hdb1 and it should work just fine (should being the keyword). Did you experience this prob? :(

cage47
03-16-2001, 01:03 PM
Frawg. 2 big yeses. When you go through the install in either Debian or Mandarake and you edit the partition information and you finish the partition tools will say "writing partition table to hda" or something to that affect (That's verbatim in Mandrake).

But the other yes is when you change LILO you have to type lilo in the cli to make the changes take affect then you'll see in the terminal something like this.

Windows added
Linux added *

(that's what mine is) with the * showing your default boot. If there is a problem it will scream at you.

Frawg
03-16-2001, 01:55 PM
But the other yes is when you change LILO you have to type lilo in the cli to make the changes take affect then you'll see in the terminal something like this.

Sweet. I'm starting to retain stuff..

Linux is sticking to my brain! It's about time!

slapNUT
03-16-2001, 02:33 PM
utter_macabre
I see you are running QNX. I'm trying to get it installed, but I always end up with "Missing Operating System" after I use the floppy to create the partition then reboot. I'm installing it to hdb1 and it should work just fine (should being the keyword). Did you experience this prob?


Yes it works fine. What I was doing there is I had to install Win98 in order to launch qnxrtos.exe. I got WinMe on primary and it wont work with QNX-RTOS as it doesnt parse the config.sys file which is where QNX gets launched from. Now weather it was me or what, I could not get Winblows to boot off my secondary HD. Hell I had to unplug my primary HD power to install Win98 sucker kept saying I already had an OS and wouldn't let me install another! Well shut my mouth I says hell I got 3 OS's on this machine allready you dumb *** Win98 hehe! So I read the README in lilo and saw the map-drive, put Win98 on hdb and it works.


The other one about activate is just something I tried. I thought I could boot either WinMe or Win98 off primary drive but it didn't work.

[ 16 March 2001: Message edited by: slapNUT ]

Lend273
03-16-2001, 02:40 PM
I am currently running both types of install.
Separate HD and shared HD. I can tell you that separate HD for Linux is the way to go.
Easier install, no boot floppy to deal with everytime ( but please make one just in case ).
Good Luck

Len

slapNUT
03-16-2001, 02:46 PM
Frawg

other=/dev/hdb1/boot/kernelname
label=Mandrake on second HDD

#That did not work

I tried mounting my /dev/hdb1 to /mandrake
and i added this to my lilo.conf

other=/mandrake/boot/kernelname
label=Mandrake on second HDD

That did not work...

Try something like this;

other=/dev/hdb1
label=MandrakeHDB1
root=/dev/hdb1
boot=/boot/kernelname

You might have to tweek it in a little.

XxMaCaBrExX
03-16-2001, 03:14 PM
Originally posted by slapNUT:
utter_macabre
I see you are running QNX. I'm trying to get it installed, but I always end up with "Missing Operating System" after I use the floppy to create the partition then reboot. I'm installing it to hdb1 and it should work just fine (should being the keyword). Did you experience this prob?


Yes it works fine. What I was doing there is I had to install Win98 in order to launch qnxrtos.exe. I got WinMe on primary and it wont work with QNX-RTOS as it doesnt parse the config.sys file which is where QNX gets launched from. Now weather it was me or what, I could not get Winblows to boot off my secondary HD. Hell I had to unplug my primary HD power to install Win98 sucker kept saying I already had an OS and wouldn't let me install another! Well shut my mouth I says hell I got 3 OS's on this machine allready you dumb *** Win98 hehe! So I read the README in lilo and saw the map-drive, put Win98 on hdb and it works.


The other one about activate is just something I tried. I thought I could boot either WinMe or Win98 off primary drive but it didn't work.

[ 16 March 2001: Message edited by: slapNUT ]

Ok, so you had to install Win98 to use it, huh? I have the CD and it's supposed to let you create a partition for QNX of it's own, but it doesn't seem to want to work. I also have winME installed, but it's on a Promise ATA/66 IDE card, so QNX won't even see it. I didn't know that you could use Lilo to boot into QNX if you did the "on-top-of-Win98" install, though. Maybe you can help me sort this out... I have Linux on hda, a blank HD on hdb, and WinME on Promise card(irrelevant). SO I need to unplug hda, then install win98 on hdb, then install QNX on Win98 on hdb, then plug hda back in and configure Lilo from linux? Whew! That sounds like phun! ;) :D

Morjo
03-16-2001, 07:44 PM
Ok I will reinstall Mandrake on my Secondary HD again.
So during the install it gives you an option to make a LILO bootdisk instead of having to put the LILO on the HD?

SUOrangeman
03-16-2001, 08:19 PM
I have installed Mandrake a few bazillion times over the past year (just trying to stay current, hehe). But, I am now trying to install it on a second HD for the first time. Here's what I've tried:

/dev/hdb1 is /boot and is *active*
/dev/hdb5 is /
/dev/hdb6 is /home

Everything on /dev/hda is either Win2K, Win98SE, BeOS, and BSD (well, BSD will be installed after I get Linux running again).

I install LILO on /dev/hdb1 and use Win2K's boot loader to boot all OSes.

The problem I am experiencing is that I get kernel panics because I cannot *mount* root ("/"). After reading this thread, do I need to add "table=hdb" to my lilo.conf? Or do I need something else? Putting LILO on /dev/hdb1 and using NT loader seems to work, so I don think that's the problem. What is my problem (besides being an OS freak :p)?

-SUO

slapNUT
03-16-2001, 09:59 PM
utter_macabre

Just to make sure we are both talking about QNXRTOS and not QNX4. I have not yet been able to get QNX4 running yet. I get the missing OS message too when I try to install it on the last 3G partition of a 30G drive.


The reason I used Win98 is that I downloaded the Windows version of QNXRTOS 20M and didnt want to download another version @56k. I had Win98 laying around so I installed a minimal installation ( still took >100M ). And yes I had to swap jumpers and make my secondary drive primary to install Win98. Then I swapped it all back and did the LILO boot map-drive thingy. Worked much to my suprise. Then I ran qnxrts.exe and it installed itself and set up the config.sys menu. I edited the config.sys to make QNX the default.

There might be an easier method but I tried a dozen different ways and thats the only way I could make it work.

XxMaCaBrExX
03-17-2001, 01:56 AM
nevermind. I got it working by switching the drive to LBA mode in the bios and disabling all of the other drives. I just have to get it to boot with LILO now. ;)

Morjo
03-17-2001, 02:02 AM
So in the Mandrake install, there is an option to make a bootdisk instead of making and MBR?
Sorry about all the qusetions. I am just a total newbie and don't want to stuff anything up :)
Be using winodws for way too long :)

winnotgoneyet
03-17-2001, 03:04 AM
Hey Morjo

you can install to a floppy but its really slow, whats the big deal with lilo on your hda?? mine seems to work great, I used to have to enter win or whatever at each boot but now I have win as default and it just works.

Morjo
03-17-2001, 07:02 AM
It's just that last time I think it may of stuffed up my Win partition.
I had the actuall linux files on the secondary HD. But When I put in my bootdisk to get into DOS My c:\ was not the win partition but my Games partition instead. So I put in the Win2k bootdisk to see waht was wrong, and it said my Windows files were stuffed up.
Also my LILO (it was called grub not lilo for some reason) had no option to boot into Windows form it.

[ 17 March 2001: Message edited by: Morjo ]

Frawg
03-18-2001, 12:17 AM
wow... i'm lost now Can someone explain this to me?

Let's say i make a partition in hdb1 and it has a mount point of / MY hda also has a mount point of / if the hdb1 size is 600 MB and the size of the hda partition mounted on / is 1000 MB, then i can put files on / totalling 1600 MB, and the OS fingers out what to do them?
And if i type cd /, and do a ls -al, then i'm viewing files on BOTH hard drives? I don't have to go to /mountpointofhdb1/ to see the files in / of hdb1??

I wonder if that makes sense, because in my head it does.

Frawg.

Algemon
03-19-2001, 06:44 AM
No Frawg that is not right.

As I understand it, the mbr must be on the first part of the first HD. Now lilo or whatever boot loader you use must reside here. When the system boots it reads the mbr which tells it what kernel to boot and where to find it.

So if you have told your bootloader windoze is on hda1 and linux is on hdb1 then it will find and boot the particular kernel accordingly.

Now if you select to boot linux then it will go to hdb1 (/boot) and boot the kernel. The kernel will then mount the particular partitions according to your /etc/fstab file. Thus you can only have one partition mounted as / and one mounted as /boot etc. etc. etc.

I am not sure whether I got all the lilo mbr stuff correct - a bit fuzzy. But I am certain about only being able to mount one partition as /
Which is what you were questioning - right?

Frawg
03-19-2001, 11:31 AM
I think so... But i was wondering why i can partition 2 disks to have / as a mount pouint..

At this time, i've deleted my entire disk, and started over. My lilo won't load.. New thread.

slapNUT
03-19-2001, 02:58 PM
morjo
Also my LILO (it was called grub not lilo for some reason) had no option to boot into Windows form it.

Grub is GRand Unified Bootloader.
Lilo is Linux Loader.
They are two separate programs offered by different Distributions.

If you do the install and select hdb to install to the distro you are using will set up Lilo or Grub to boot either Windows or Linux. Make a windows startup disk before you start. Make a Linux bootdisk during the install if it asks if you want one.