LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices

Reply
 
LinkBack Search this Thread
Old 01-18-2012, 06:59 PM   #1
KvK
LQ Newbie
 
Registered: Jan 2012
Posts: 12

Rep: Reputation: Disabled
Installing OS on external hdd w/o changing MBR on Primary hdd


Hi,
I have a laptop that I dual boot with Windows-7 and Ubuntu-11.04. I want to try out other distros and systems as well. For this, I have a new procured a new hard drive on which I want to install the following OSs - Slackware, Fedora, Solaris, a couple of BSDs, and maybe a few more. I already run Windows-7, OpenSuse on a KVM inside Ubuntu and am running out of space so running these on VM is not an option. I want to run them natively and if I have space, maybe do a VM installation on the new hdd as well. (There will be too many OSs to choose from!!)

So if I install these (or any) OS on the external hdd with the Primary hdd 'still connected', will it overwrite the MBR on the Primary hard drive? I know that in a case I mess up the MBR, I can redo the GRUB on the Primary OS. But I want the probability of that happening.

And forgot, just to let you know, I can connect the external hdd via SATA or eSATA. So USB limitations should not be an issue.

Thanks!
KvK

Last edited by KvK; 01-18-2012 at 07:02 PM.
 
Old 01-18-2012, 07:22 PM   #2
nonamedotc
Member
 
Registered: Mar 2011
Posts: 343

Rep: Reputation: Disabled
There is something called chainloading. You can install GRUB of individual operating systems on it's own partition without touching the MBR. This would be really useful in your case as I see it. What I do not know, however, is whether that can be used for USB hard disks also.

Here is a link that might be of use. Chainloading
 
1 members found this post helpful.
Old 01-19-2012, 04:01 PM   #3
jefro
Guru
 
Registered: Mar 2008
Posts: 10,255

Rep: Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256
When you install your OS as a native install they usually offer you the option to put the loader in some place. You want to put the loader on the external drive. Then when you want to boot to it, you select either the boot device in bios or select it with a boot option key.

If you want you can install VM's to the external all day long too.
 
1 members found this post helpful.
Old 01-19-2012, 05:59 PM   #4
KvK
LQ Newbie
 
Registered: Jan 2012
Posts: 12

Original Poster
Rep: Reputation: Disabled
Thanks Jefro!
That sounds as a viable option. Just to make things clear, do the '/boot' for each OS need to be a separate one or can I make a single BOOT partition and use it for all other OS at the '/boot' (w/o formatting of course)? Sounds trivial but basically the above query simply means - If I add a 2nd and a 3rd OS, will it rewrite the boot loader?
k
P.S. - Chainloading - Thats a concept I'll play with someday. But isn't that a post-installation procedure?

Thanks
KvK
 
Old 01-20-2012, 03:05 PM   #5
jefro
Guru
 
Registered: Mar 2008
Posts: 10,255

Rep: Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256
In a modern bios you can select which drive is the first boot order. In the olden times you only had the ability to wire a drive or jumper a drive. Bios boots and orders drives based on how it views them. On new systems you can tell bios to change how it see's first bootable drive.

In all cases you need to be very careful with boot loaders. Three issues are present. One is the version. Some must have a version of a special loader such as grub2. Some don't care. This would be a case where you would have to chain load from one loader to another version.

Some OS install programs are not clear or don't give you a good choice to know how to install a loader.


Issue to remember is bios loads the first bootable partiton (bootloader) in it's known order. Usb could show up under real hard drive order.


Lastly is a long time ago there were programs to select boot order. I am sure they are around and still work. They can load like 97 OS's of almost any type as I recall.

Last edited by jefro; 01-20-2012 at 03:06 PM.
 
Old 01-23-2012, 02:44 AM   #6
KvK
LQ Newbie
 
Registered: Jan 2012
Posts: 12

Original Poster
Rep: Reputation: Disabled
Okay. After 24+ hrs of digging around and installing/deleting partitions and OSs, I finally have a working configuration. I was too much of a chicken to mess around with my new thinkpad which hosts all of my work and hence cancelled the external HDD installation and instead installed OS on an internal HDD on Dell XPS. Following is my confuguration:
sda1 - Primary - ??? (Was planning to put /boot here of all OS but didnt do it. I have no idea whats here now, 30mB consumed)

sda5 - Logical - Swap
sda6 - Logical - Slackware 13.7
sda7 - Logical - Fedora 16
sda8 - Logical - LinuxMint debian (12)
sda9 - Logical - Opensuse 12.1
sda10- Logical - Solaris 11 (Was Working, but grub2 cant see it, Failed??!! See details below)
sda11- Logical - Damn small Linux (None of the dsl.iso work, still empty)
sda12- Logical - BackTrack
sda13-16 Logical - Ubuntu 11.04

sda3 - Primary - Data
sda4 - Primary - FreeBSD 9 - "FAILED", now using as Virtual Space

* FreeBSD and Solaris NEED Primary Partition!!

I did all the partitions using slackware, and after my 4th OS I realised I need a primary for both of them. Also I am new to Slack, so didnnt knew the setting the align partitions to cylinder. As a result FreeBSD kept on giving me warnings for sda2-4. I made some free space between sda3 and sda4. Only then it stopped the messages for sda4. Spent 10+ hrs on BSD alone. Eventually I gave up and now will boot it on a VM.

I was able to log onto Solaris 11 and it was working. But after I installed a new OS, I couldn't see it. I tried chainloading with GRUB in Ubuntu, but of no avail. In fact the partition type is seen as 'Unknown'. Also, All of the dsl.iso that I downloaded were corrupted and hence haven't installed it.

Finally the most important part - BOOTLOADER - What I did was if the OS offered me to install its bootloader, I denied it and did a clean install for the final (ubuntu for me) one only. Grub2 dies a great job in automatically getting boot info from the other installations.

Thanks!
KvK
 
Old 01-25-2012, 07:00 PM   #7
KvK
LQ Newbie
 
Registered: Jan 2012
Posts: 12

Original Poster
Rep: Reputation: Disabled
Doooooods!!!!

Epic Update! The chainloading thing is awesome. I can see Solaris 11 on Grub now. All I did was reboot a couple of times, and now it shows up!!

FreeBSD is the only hiccup now!

Thanks again for your replies
 
Old 01-26-2012, 09:20 AM   #8
otoomet
Member
 
Registered: Oct 2004
Location: Tartu, Ċrhus,Nürnberg, Europe
Distribution: Debian, Ubuntu, Puppy
Posts: 588

Rep: Reputation: 45
KvK -- you may check if your computer supports efi and gpt (guid partition tables). In that case you may spend another 24h and create tons of primary partitions. With some good luck, you get both solaris, bsd & firends easily up in this way ;-)
 
  


Reply

Tags
bootloader, chainloading, grub 2, installation, multiboot


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Removing Grub from internal HDD and installing it only on external hdd M3GA8U5H Linux - Newbie 5 08-07-2009 01:47 AM
Installing Linux on external HDD's MBR? kailynleto Linux - Newbie 5 01-23-2009 09:09 AM
Installing Ubuntu on External HDD; PC has no internal HDD 449 Ubuntu 2 11-28-2007 05:12 PM
[RAID1, GRUB] Secondary HDD can't boot up when primary HDD fails Akhran Linux - Newbie 2 05-04-2006 04:17 AM
Installing FC3 on primary slave HDD... oolceeoo Linux - Hardware 2 02-22-2005 09:59 PM


All times are GMT -5. The time now is 03:09 AM.

Main Menu
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