LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 10-21-2007, 05:44 AM   #1
anjanesh
Member
 
Registered: Sep 2004
Location: Navi Mumbai
Distribution: Ubuntu 14.04 64-bit
Posts: 230

Rep: Reputation: 30
An OS on a separate hard-disk.


Hi

Lets say I got a new PC with 2 internal SATA hard disks. Bot are blank.

I want to install FC7 on one disk and Ubuntu 7.10 on the other.
Now I want the option to load any one of the OSes on computer startup.
I know GRUB is the answer, but can GRUB load OS from either of the hard disks ?

Or is this is a harware limitation ? (2 primary masters ?)

Thanks
 
Old 10-21-2007, 06:01 AM   #2
genix
LQ Newbie
 
Registered: Jul 2007
Distribution: slackware
Posts: 23

Rep: Reputation: 15
I have exactly that, and grub has no problems with either, one of my disks is called sda and the other is sdb
i have sda1 sda2 sda3 and sdb1 sdb2 and sdb3.
boot is on sda1, i have gentoo's root / on sda3 and slackwares root / on sdb3. grub says

title gentoo
kernel (hd0,0)/gentookernel root=/dev/sda3 ...

title slackware
kernel (hd0,0)/slackwarekernel root=/dev/sdb3

get the idea ?
once you have one linux OS set up you can mess about and create LOTS of different installations on as many partitions as you have. say partition your second or first disk with 3 primary partitions say sda1 2 and 3 then an extended partition with say another 3 sda4 - 6 and install a distro on EACH partition then put all the kernels in the one boot partition /boot or sda1 and just alter the /boot/grub/menu.lst file like above

title yourtitle
kernel (hd0,0)/kernelname root=/dev/sdb6 or sdb7 or whatever
i have had several at once this way. When your installing another distro AFTER your main one, just dont install a boot loader, install the kernels and everything else and then just alter your current boot loader i.e menu.lst file to boot the new OS.

As an example lets say you partition your first disk with sda1 sda2 sda3.
You then install Fedora using these partitions. sda1 is /boot sda2 is swap and sda3 is your / root partition. All installs well and you decide to install say slackware
so you partition your second disk sdb into sdb1 and sdb2. You install slackware choosing sdb1 as your / root. and sda1 ( same as fedora) for your /boot and of course sda2 (that sda2 as in 'a' ) as your swap. Then all installs to sdb1 OK, and it installs the kernel in /boot (sda1), then when it asks , Do you want to install a bootloader / grub / lilo, you say NO!. Then alter the already installed menu.lst file ( from the previous fedora install say ) to say
kernel (hd0,0)/the-kernel-slackware-installed root=/dev/sdb1 <--- where you just installed the OS ( or more importantly... init ) and then reboot
Hope this helps, if not i can clarify anything you want me too.

Last edited by genix; 10-21-2007 at 06:13 AM.
 
  


Reply



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
How to view/mount separate disk -- move /home to second disk Spearhead40 Ubuntu 12 11-03-2007 03:37 PM
SATA Hard disk(Windows) MBR corrupted by IDE hard disk(Linux) Peter_APIIT Fedora 6 07-07-2007 12:20 AM
How to install Windows in a separate Hard Disk? arindom Linux - Hardware 14 03-29-2007 09:02 AM
Can I use a virtual machine hard disk as a real hard disk, or vice versa? onlineapps Linux - Software 1 02-24-2007 08:40 PM
60GB laptop hard disk & 200GB external USB hard disk linux compatibility powah Linux - Hardware 0 03-07-2006 10:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 06:14 AM.

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