Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11th June 2007, 09:05 AM
ajinxa Offline
Registered User
 
Join Date: Aug 2006
Location: So Cal
Age: 30
Posts: 28
Multi-Boot Linux, GRUB, Partitions & 1 HD.

This post is two fold

The first: Partitioning
I love Fedora but I would like to try out different distro's as well. I am having a difficult time with partitioning my HD. Only 3 primary (or logical) partitions seem to be allowed. I set up a /boot & swap partition only to find that I have a partition left for one OS. Can multiple distros use the same /boot & swap? Can I set up one extended partition with multiple partitions inside of it for multiple OS's? Maybe that's why LVM should be used, this way swap and / can be on one partition.

The second: GRUB
I also have questions with GRUB. If I install another OS it will overwrite the GRUB that was there and will not allow me to boot the first OS it until I add the entry in the new GRUB. How do I know what entries to add if the GRUB gets over written? Then I will need to figure out the old grub entry and change it every time the kernel for that OS gets updated. I have been reading some posts that suggest that Ubuntu likes to be on the MBR. Can I use the GRUB from Ubuntu on the MBR to chainload to other GRUB's? If GRUB is used as a secondary boot loader and is written to the first section of the /boot will other distro's overwrite it when they are installed as secondary bootloaders as well?

Is it possible to do this with one HD? If so how should partitions be set up? What is the easiest way to multi-boot (GRUB) different Linux distros?

I have no idea why I feel the need to have abuncha OS's on my box. I love to be frustrated I guess.
Reply With Quote
  #2  
Old 11th June 2007, 09:44 AM
leadgolem's Avatar
leadgolem Offline
Registered User
 
Join Date: Apr 2005
Location: Littleton, CO
Age: 28
Posts: 2,855
In order.
Multiple distros can share a swap, but not a /boot partition. Your /boot is where the kernel is.

You can setup multiple partitions inside a single extended partition for multiple distros.

I would advise creating separate partitions outside of the LVM. Many linux distros cannot read a LVM, so you would need to give each one a separate swap partition. Using a swap partition outside of the LVM would allow you to use that partition as the swap for all of the linux distros you plan on installing.

You can use grub to chain load another grub. You need one grub to be in the mbr, so the bios will load it. The second grub should be on the first section of the /boot partition. Since the second grub will not be in the same location as the first, it will not be overwritten when the distro that installed the first grub gets updated. You will need to add an entry to chain load the second grub to the first. The second grub will be updated by its distro whenever you update the kernel.

It is possible to do this with one hard drive.
Exactly how you set up the partitions is really a matter of personal choice. I would personally prefer not to use an LVM. Ext3 outside of an LVM should be mountable in other linux distros. That way if you mess up one, you can boot to another and fix it. I think using grub to chain load to another grub would be the easiest. I would advise you though, to install the second grub first, and at the end of the drive. Then install the grub for the MBR. I've royally messed up a grub by repartitioning part of the drive after I got my grub setup. This way, you should be able to mount your second grub and correct it from the first. If the grub in your MBR gets messed up, it's much more irritating to fix.
__________________
Only two things are infinite, the universe and human stupidity, and I am not sure about the former. -Albert Einstein-
yum -y --enablerepo=morals install honesty&
remove piratedcontent
S.C.O.U.R.G.E. Heroes of lesser renown, contributor.
Wine Basics Logitech g15 How-To Community made packages.

Last edited by leadgolem; 11th June 2007 at 09:47 AM.
Reply With Quote
  #3  
Old 11th June 2007, 09:59 AM
leadgolem's Avatar
leadgolem Offline
Registered User
 
Join Date: Apr 2005
Location: Littleton, CO
Age: 28
Posts: 2,855
If I have made any important omissions, or dispensed bad advice, please post corrections. It has been a while since I ran anything other then fedora.
__________________
Only two things are infinite, the universe and human stupidity, and I am not sure about the former. -Albert Einstein-
yum -y --enablerepo=morals install honesty&
remove piratedcontent
S.C.O.U.R.G.E. Heroes of lesser renown, contributor.
Wine Basics Logitech g15 How-To Community made packages.
Reply With Quote
  #4  
Old 11th June 2007, 04:36 PM
lmo Offline
Registered User
 
Join Date: Mar 2007
Posts: 1,047
Here is some info showing what partitioning schemes I am using/planning.
I prefer to use NO LVM, and I prefer to use an extended partition which can contain many partitions (distros, etc.)
Every distro installation can share the same /boot partition and swap. It is fine for all the distros to use the same /boot partition as long as each kernel has a unique name, which is usually the case. They can all use the same "grub" except that Fedoras read/edit a file called "grub.conf" and others read/edit a file called "menu.lst" in the /boot/grub directory.
Once grub is installed and working, it does not need to be "installed" again -- Just the "grub.conf" and/or "menu.lst" file(s) need to be updated/edited.
fdisk -l
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 1305 10482381 c W95 FAT32 (LBA)
/dev/sda2 1306 32636 251666257+ f W95 Ext'd (LBA)
/dev/sda5 1306 1318 104391 83 Linux
/dev/sda6 1319 1383 522081 82 Linux swap / Solaris
/dev/sda7 1384 5962 36780786 83 Linux
/dev/sda8 5963 7531 12602961 83 Linux
/dev/sda9 7532 9098 12586896 83 Linux

df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda9 12G 5.9G 5.4G 52% /
/dev/sda5 99M 17M 77M 18% /boot
tmpfs 758M 0 758M 0% /dev/shm
/dev/sda7 35G 21G 12G 64% /data1
/dev/sda8 12G 7.5G 3.9G 67% /data2


Explanation:
sda1 - Where I install WinX (Prefer fat32 over ntfs -- easy to share with linux)
sda2 - Type f - An extended partition containing logical partitions 5,6,...14
sda5 - Small 100M /boot logical partition relatively low sector (within 10-60GB)
sda6 - Small 512M /swap logical partition (more than 2GB would be too much)
sda7 - Larger /data1 logical partition - Using to hold backups.
sda8 - Mid-size /data2 logical partiton - Stuff to play with, iso's, qemu images
sda9 - Mid-size / logical partiton - root filesystem (9 seemed a lucky number)
sda10-sda14 - Not added yet. Plenty of vacant space in extended partition (sda2)
sda3 - Not added yet. Physical partition. Plenty of vacant space on big drive.
sda4 - Not added yet. Physical partition. Plenty of vacant space on big drive.

I use Extended/Logical partitions (5-14) because there can be many. I may install other distros and future Fedoras on one of these that is vacant. I may also make a big fat32 in one of these for WinX data.

Last edited by lmo; 11th June 2007 at 04:50 PM.
Reply With Quote
  #5  
Old 11th June 2007, 06:01 PM
bob's Avatar
bob Offline
Administrator (yeah, back again)
 
Join Date: Jul 2004
Location: Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
Age: 67
Posts: 21,201
Excellent ideas and comments. I'll add that I always use Ext3 instead of LVM since all the distros can use the same swap space (not with LVM). As to the Grub issue, any of the 'buntu's will insist on installing their grub on the mbr, so plan ahead for that. Otherwise, I just add the 'chainloader +1' instructions, as with Windows, to the grub menu.lst and have had no problems.

I'm booting 7 distros at the moment and find that it's more than enough to test and keep things current. Frankly, once you've tried a distro for a few days you'll either love it or tire of it, so I keep 4-5 favorites and recycle the other two partitions constantly. Remember it's not just the installation and setup, but updating the distros that takes time. Did you ever check out that guy who was booting 100 distros? http://www.justlinux.com/forum/showt...hreadid=143973 Insanity!
__________________
Linux & Beer - That TOTALLY Computes!
Registered Linux User #362651


Don't use any of my solutions on working computers or near small children.
Reply With Quote
  #6  
Old 14th June 2007, 07:44 AM
ajinxa Offline
Registered User
 
Join Date: Aug 2006
Location: So Cal
Age: 30
Posts: 28
Thanks for all the help. I know have an extended partition with 5 partitions set up and 3 OS's. My GRUB is set up to chainload everything. Thanks for the fast replys as well. Now the fun begins!
Reply With Quote
  #7  
Old 14th June 2007, 07:45 AM
ajinxa Offline
Registered User
 
Join Date: Aug 2006
Location: So Cal
Age: 30
Posts: 28
Thanks for all the help. I know have an extended partition with 5 partitions set up and 3 OS's. My Ubuntu GRUB is set up to chainload everything. Thanks for the fast replys as well. Now the fun begins!
Reply With Quote
  #8  
Old 14th June 2007, 07:55 AM
Dies Offline
Registered User
 
Join Date: Oct 2006
Posts: 4,752
Quote:
Originally Posted by leadgolem
In order.
Multiple distros can share a swap, but not a /boot partition. Your /boot is where the kernel is.

Since you did ask for corrections...

You can share a /boot partition with as many distros as you want, the only requirement is that the filenames be unique.

If you're only booting Fedora and one other distro this will pose no problems at all since Fedora kernels have very long specific names, but if you plan on booting more than a couple distros from one /boot, it will quickly become a mess and a real pain.
Reply With Quote
  #9  
Old 14th June 2007, 03:03 PM
leadgolem's Avatar
leadgolem Offline
Registered User
 
Join Date: Apr 2005
Location: Littleton, CO
Age: 28
Posts: 2,855
Thank you for the clarification. Again, it's been a while since I used anything other then fedora.
__________________
Only two things are infinite, the universe and human stupidity, and I am not sure about the former. -Albert Einstein-
yum -y --enablerepo=morals install honesty&
remove piratedcontent
S.C.O.U.R.G.E. Heroes of lesser renown, contributor.
Wine Basics Logitech g15 How-To Community made packages.
Reply With Quote
  #10  
Old 14th June 2007, 03:29 PM
ironeagle62's Avatar
ironeagle62 Offline
Registered User
 
Join Date: May 2007
Location: Tulsa, Oklahoma
Age: 51
Posts: 71
Quote:
Originally Posted by bob
.... booting 100 distros? http://www.justlinux.com/forum/showt...hreadid=143973 Insanity!
Some people really have TOO much spare time!
__________________
F9 / WinXP 64
AMD64 3800 Dual Core 2.0Ghz
Asus M2V w/4gig DDR800Mhz
ATI x1300/256
2xWD80 7200 Rpm
[
Reply With Quote
Reply

Tags
grub, linux, multiboot, partitions

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The multi-OS, multi-boot GRUB guide (Windows included!) Firewing1 Guides & Solutions (No Questions) 35 14th July 2009 08:03 AM
GRUB woes with FC9 - Multi-boot system! bulava Installation and Live Media 19 4th December 2008 02:57 PM
GRUB Multi boot FC5 & FC6 cplutis EOL (End Of Life) Versions 13 24th January 2007 09:48 AM
grub multi boot terry_g Installation and Live Media 0 1st October 2006 04:00 PM


Current GMT-time: 16:56 (Saturday, 18-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat