Processors Motherboards Chipsets Memory Graphics Cards Storage Cases and Cooling Mobile Systems Displays Shows and Expos
Latest Sponsors

Powered By
Newegg
Tyan Motherboards
Corsair Memory
Western Digital Hard Drives
Red Hat Linux

PC Perspective Forums Sponsor

Go Back   PC Perspective Forums > Software > Linux
User Name
Password
Register FAQ Rules Members List iTrader Search Today's Posts Mark Forums Read

Linux Thinking of giving Linux a try, or got a Linux related question then this is the place to be. Did we mention PCPer runs on Linux!

Reply
 §   #1  
Old 09-12-2005, 05:44 AM
saikee
Registered User
 
Profile
Joined: Jun 2004
Location: Newcastle upon Tyne, UK
Age: 61
Status: ( Offline )
Posts: 584
A lazy way to increase multi-booting in Linux

The lazy way is usually the "easiest" way.

I recommend the hard drives to be pre-partitioned first. My favourite tool is the cfdisk. I give 5Gb to a Linux that comes in one CD. For a distro in multiple CD or DVD I allocate 10Gb. No need to format any of them.

When the first Linux has Grub as its boot loader comes along put it into the MBR and amend its /boot/grub/menu.lst to add for every empty partition the following 3 lines

Title empty partition in hda5
Root (hd0,4)
Chainloader +1

Title empty partition in hda6
Root (hd0,5)
Chainloader +1

Title empty partition in hda7
Root (hd0,6)
Chainloader +1

and so on until all the empty partitions are included.

When a new distro is received just install it into any of the empty partitions. When it comes to the location of its bootloader just tell the installer to place it in the root partition, i.e. not MBR. On reboot the new distro will be bootable at the designated partition. If everything works satisfactorily then go to amend the /boot/grub/menu.lst of the Grub in the MBR to replace the "empty partition" with the new distro's name.

This scheme, of having distro entries in the boot menu prior to their installations, works for any Linux and BSD.

Lilo checks every partition to see if it is bootable first and so it wouldn't implement unbootable entries, so if a user wants to be lazy sticks with Grub. If he/she really like to do work go with Windows's NTLRD.

--------------Edited addition-----------------------

For those realising the above to be equivalent to "How to multi-boot 100 systems in a nutshell" and decide to load up hundreds of Linux distros in their 300 or 400Gb hard disks here are some brickwalls in front of you. (If you see blood stains at head level on these walls you can tell some of them are mine!)

(1) Most distros are not yet capable of crossing the 137Gb barrier. If their kernels can their boot loaders may not. The brave ones are Mandriva, Suse, Sam and Slax.

(2) The Red Hat family of Linux don't seem to expect more than 16 partitions in a hard disk, regardless if it is an IDE or a Sata. You will have a job to ask them to help you to reach the higher partitions.

(3) The current maximum number of partition permitted by Linux is 15 for a Sata and 63 for an IDE. I can reach the former but the only managed 60 partitions maximum for the latter. Also Linix is known to have a ceiling limit of 255 "raw devices" which I take it to mean partitions too, because a partition is named /dev/hda39 etc. If you want to investigate this limit please go ahead. I feel stupid enough to get this far.

(4) Linux installable at beyond 137Gb but unchainloaderable may still be bootable by direct kernel address. That is to replace "chainloader +1" above with

kernel /boot/kernel-2.6.12-i386 ro root=/dev/hdax
initrd /boot/initrd-2.6.12-386

where the two files after kernel and initrd are the relevant kernel and initrd files of that Linux. No need for the last statement if the Linux doesn't use initrd. The two are always stored in /boot partition.

(5) A small number of old Linux distros are unable to accept partition number higher than 20.

Suggest to print this page in toilet paper so that it can be used to soak blood if your head bangs against one of the above brickwalls.

Last edited by saikee : 09-12-2005 at 12:21 PM.
Reply With Quote
 §   #2  
Old 09-12-2005, 01:43 PM
Spankin Partier's Avatar
Spankin Partier
Super Moderator
Linux/Boinc Moderator
 
Profile
Joined: Oct 2001
Location: Southern Ontario
Age: 36
My System
Status: ( Offline )
Posts: 11,529
Re: A lazy way to increase multi-booting in Linux

GREAT POST!!!

Would you like me to add it to the FAQ?
__________________
THE SPANKIN' PARTY - Ribbitance is Croaktile

Click the spoiler for team stats:
Spoiler!
Reply With Quote
 §   #3  
Old 09-12-2005, 02:28 PM
saikee
Registered User
 
Profile
Joined: Jun 2004
Location: Newcastle upon Tyne, UK
Age: 61
Status: ( Offline )
Posts: 584
Re: A lazy way to increase multi-booting in Linux

How much would it cost me?
Reply With Quote
 §   #4  
Old 09-12-2005, 03:07 PM
Spankin Partier's Avatar
Spankin Partier
Super Moderator
Linux/Boinc Moderator
 
Profile
Joined: Oct 2001
Location: Southern Ontario
Age: 36
My System
Status: ( Offline )
Posts: 11,529
Re: A lazy way to increase multi-booting in Linux

Don't worry, I'll give you a deal. Just pay off my bar tab and we'll call it even.

I'll add it in tonight.
Reply With Quote
 §   #5  
Old 09-12-2005, 04:48 PM
saikee
Registered User
 
Profile
Joined: Jun 2004
Location: Newcastle upon Tyne, UK
Age: 61
Status: ( Offline )
Posts: 584
Re: A lazy way to increase multi-booting in Linux

Ta !

Kind of difficult to get money to pay for your drinks now. After this post no one asks a question about booting and I am out of a job!
Reply With Quote
 §   #6  
Old 09-12-2005, 05:47 PM
Spankin Partier's Avatar
Spankin Partier
Super Moderator
Linux/Boinc Moderator
 
Profile
Joined: Oct 2001
Location: Southern Ontario
Age: 36
My System
Status: ( Offline )
Posts: 11,529
Re: A lazy way to increase multi-booting in Linux

All done. Check out the FAQ and look for "How do I boot between several Linux Distributions?".

Now all we have to do is find you another job. Hmmm, I think there's an opening as a dish washer at the bar.


j/k!
Reply With Quote
 §   #7  
Old 09-13-2005, 07:32 PM
saikee
Registered User
 
Profile
Joined: Jun 2004
Location: Newcastle upon Tyne, UK
Age: 61
Status: ( Offline )
Posts: 584
Re: A lazy way to increase multi-booting in Linux

Look Spankin,

It has been dead quiet here for the last few days. Nobody has a need to ask question on booting now. Not only I lost my job. It looks like you are out of a job too! Ha Ha!

Don't know about you but I am due for a 3-week holiday in Europe in two weeks time. May as well pack it in now.
Reply With Quote
 §   #8  
Old 09-13-2005, 07:45 PM
Ned Slider's Avatar
Ned Slider
Moderator
Moderator
 
Profile
Joined: Jul 2001
Location: UK
Age: 42
My System
Status: ( Offline )
Posts: 20,207
Re: A lazy way to increase multi-booting in Linux

Quote:
Originally Posted by saikee
Don't know about you but I am due for a 3-week holiday in Europe in two weeks time. May as well pack it in now.
I'm about to do a fresh dual boot install soon - you can't go on holiday as I may need you if it all goes horribly wrong

Now you've mastered GRUB you could always pick a new topic - iptables is one that constantly facinates me

Nice job btw

Ned
__________________

~ Want to try Linux - check out the PC Perspective Linux FAQ ~
~ Please take some time to read the Forum Rules ~
~ Feed the spamb0tz, don't mail me here: C3B0tz917328@nirvana.admins.ws ~

Reply With Quote
 §   #9  
Old 09-13-2005, 08:18 PM
saikee
Registered User
 
Profile
Joined: Jun 2004
Location: Newcastle upon Tyne, UK
Age: 61
Status: ( Offline )
Posts: 584
Re: A lazy way to increase multi-booting in Linux

Ned,

You know I picked the NTLDR multi-booting tip from you. It was hard work for a lazy user like me.

If you want an easy life help yourself a bootable Grub floppy or a CD and kiss your NTLRD good bye.

Take a look at

How to make a Grub floppy/CD that boots all systems in a PC


You can then go holiday just like me and forget about "dual boot".

Last edited by saikee : 09-13-2005 at 08:25 PM.
Reply With Quote
 §   #10  
Old 09-13-2005, 11:02 PM
Spankin Partier's Avatar
Spankin Partier
Super Moderator
Linux/Boinc Moderator
 
Profile
Joined: Oct 2001
Location: Southern Ontario
Age: 36
My System
Status: ( Offline )
Posts: 11,529
Re: A lazy way to increase multi-booting in Linux

Quote:
Originally Posted by saikee
Look Spankin,

It has been dead quiet here for the last few days. Nobody has a need to ask question on booting now. Not only I lost my job. It looks like you are out of a job too! Ha Ha!

Don't know about you but I am due for a 3-week holiday in Europe in two weeks time. May as well pack it in now.


Oh well, I guess I'll pack up and tag along. Maybe we can go and pop by Ned's when we're over there. I'm sure he'll have a few pints of some dark warm stuff he calls beer. Don't know why he calls that stuff that.
Reply With Quote
 §   #11  
Old 09-14-2005, 03:49 AM
Ned Slider's Avatar
Ned Slider
Moderator
Moderator
 
Profile
Joined: Jul 2001
Location: UK
Age: 42
My System
Status: ( Offline )
Posts: 20,207
Re: A lazy way to increase multi-booting in Linux

Quote:
Originally Posted by Spankin Partier


Oh well, I guess I'll pack up and tag along. Maybe we can go and pop by Ned's when we're over there. I'm sure he'll have a few pints of some dark warm stuff he calls beer. Don't know why he calls that stuff that.
Saikee understands
Reply With Quote
 §   #12  
Old 12-27-2006, 04:50 PM
igeldard
Registered User
 
Profile
Joined: Dec 2006
Status: ( Offline )
Posts: 3
Re: A lazy way to increase multi-booting in Linux

Hi,

Time to revive this thread I think

I'm trying to multiple boot WinXPSP2 and various Linux distros and have managed to dual-boot WinXP with Ubuntu 6.10. My problem is triple booting with Fedora Core 6.

WinXP is on the first partition of hd0 (/dev/hda1) and Ubuntu is on /dev/hda3. GRUB is installed on the MBR and is happy with

title Ubuntu, kernel 2.6.17-10-generic
root (hd0,2)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hda3 ro quiet splash
initrd /boot/initrd.img-2.6.17-10-generic
quiet
savedefault
boot

and

title Microsoft Windows XP Professional
root (hd0,0)
savedefault
makeactive
chainloader +1

I have an unformatted partition and created part of this as /dev/hda4

I edited /boot/grub/menu.lst to include

Title empty partition in hda4
Root (hd0,3)
Chainloader +1

That worked OK so I installed FC6 in hda4 and didn't select a GRUB install

The 'lazy' way bombed and refused to load, so I tried

title Fedora Core (2.6.18-1.2798.fc6)
root (hd0,3)
kernel /boot/vmlinuz-2.6.18-1.2798.fc6 ro root=LABEL=/1 rhgb quiet
initrd /boot/initrd-2.6.18-1.2798.fc6.img
boot

But that wouldn't boot either (note that I copied the kernel and initrd from another FC6 posting and that could be wrong (how do I find the correct values?)

Any ideas?

Ian
Reply With Quote
 §   #13  
Old 12-27-2006, 08:25 PM
igeldard
Registered User
 
Profile
Joined: Dec 2006
Status: ( Offline )
Posts: 3
Re: A lazy way to increase multi-booting in Linux

Quote:
Originally Posted by igeldard View Post

title Fedora Core (2.6.18-1.2798.fc6)
root (hd0,3)
kernel /boot/vmlinuz-2.6.18-1.2798.fc6 ro root=LABEL=/1 rhgb quiet
initrd /boot/initrd-2.6.18-1.2798.fc6.img
boot

Ian
Changed this to

title Fedora Core (2.6.18-1.2798.fc6)
root (hd0,3)
kernel /boot/vmlinuz-2.6.18-1.2798.fc6 root=/dev/hda4 ro quiet splash
initrd /boot/initrd-2.6.18-1.2798.fc6.img
quiet
boot

And it booted ok, though the setup process in FC6 did not seem as smooth with Ubuntu 6.10 - blank screens, mystery logout and a lot of update downloading.

Still I now have a triple boot system, now for a quad boot. But how, in principle, does one find the vmlinuz/initrd values of a distro before installation?

Ian
Reply With Quote
 §   #14  
Old 12-27-2006, 08:38 PM
Ned Slider's Avatar
Ned Slider
Moderator
Moderator
 
Profile
Joined: Jul 2001
Location: UK
Age: 42
My System
Status: ( Offline )
Posts: 20,207
Re: A lazy way to increase multi-booting in Linux

Quote:
Originally Posted by igeldard View Post
Still I now have a triple boot system, now for a quad boot. But how, in principle, does one find the vmlinuz/initrd values of a distro before installation?

Ian
After initial installation, maybe you could check and make a note of the files before rebooting for the first time. If not, how about booting the system with a knoppix LiveCD, mounting the partition and checking the files?
Reply With Quote
 §   #15  
Old 12-27-2006, 09:37 PM
Jackal
F.A.B
 
Profile
Joined: Dec 2000
Location: Out there, just read my posts
My System
Status: ( Offline )
Posts: 5,462
Re: A lazy way to increase multi-booting in Linux

from experience siakee puts an end to need for any boot questions! , also from experience, and this is for noobs (and I still fall into that category)....LEARN how to partition off your HDD, ESPECIALLY if you're going to throw software RAID into the mix.

While I'm at it, if you want things to really perform, learn where stuff comes from (I'm still learning), I.E /home or /usr, put those (not necessarily the ones I mentioned, study and learn your distro to find out where "your" programs will load, etc...) partitions on your faster drive(s), of course / can't go on software raid, but if you learn those things, they will go a LONG way to making your setups smoother!

__________________
Comm-Net
Reply With Quote
Reply



Go Back   PC Perspective Forums > Software > Linux

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 10:02 AM.


Powered by vBulletin
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© PC Perspective 2000 - Present