Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-18-2009, 12:31 AM
|
#1
|
Member
Registered: Jan 2006
Location: Lithuania
Distribution: Arch, Debian
Posts: 193
Rep:
|
/boot partition - necessary to be primary ?
Hi,
I want to install more than 3 linux distributions on single disk - my test machine.
Is it possible to create boot partition on logical partition whitch resides in extended partition (and boot successfuly of course)?
My boot loader lives elswere (primary partition or MBR).
thanks
Vilius
|
|
|
03-18-2009, 01:24 AM
|
#2
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,418
|
Only M$oft loaders require primary partitions for boot code.
However, I'm confused by this
Quote:
My boot loader lives elswere (primary partition or MBR)
|
If your loader lives elsewhere, why do you need (another) separate boot partition ?.
|
|
|
03-18-2009, 01:42 AM
|
#3
|
Member
Registered: Jan 2006
Location: Lithuania
Distribution: Arch, Debian
Posts: 193
Original Poster
Rep:
|
I need separate boot partition for every distribution because I'm planning to use lvm.
If primary partition is not required for kernel images - how about bootloader partition(not MBR) - is it required to be primary ?
Vilius
|
|
|
03-18-2009, 01:47 AM
|
#4
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,418
|
Read my previous answer - I made no mention of kernel image.
|
|
|
03-18-2009, 02:03 AM
|
#5
|
LQ Newbie
Registered: Jan 2009
Location: Chennai, India
Distribution: Redhat
Posts: 23
Rep:
|
Basics
Ello  Villus,
Every hard disk has a partition table with only four entries in it.
which are the entries for the primary partition. Windows could be installed only in primary partitions. If an entry in partition table is made for a extended partition, that gives a separate additional partition table which does not have any limit. Say divisions inside a division. Linux could be installed in extended partitions also. so inside a extended partition you could install several OS.
hope my answer would be helpful to you.
this link has the basics of partitioning..
http://www.redhat.com/docs/manuals/l...artitions.html
|
|
|
03-18-2009, 02:26 AM
|
#6
|
Member
Registered: Jan 2006
Location: Lithuania
Distribution: Arch, Debian
Posts: 193
Original Poster
Rep:
|
Quote:
Originally Posted by syg00
Only M$oft loaders require primary partitions for boot code.
However, I'm confused by thisIf your loader lives elsewhere, why do you need (another) separate boot partition ?.
|
Ok I must understand why separate boot partition is recommended in lvm case.
If I use lvm, separate boot partition is recommended because:
1. Because boot loader won't find kernel images on lvm logical volume.
2. It is needed for bootloader installation itself if decision is made not to install to MBR.
Whitch one is it ?
V
|
|
|
03-18-2009, 04:09 AM
|
#7
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,418
|
The former - grub (classic) has no LVM support that I'm aware of. One of the reason I don't use LVM.
You could get away with just one (non-LVM) boot partition, but you'd have to copy all the kernel (and initrd) there, and manually maintain the menu.lst stanzas.
As you had presumably planned, it might make sense the give them each a boot partition and chainload them individually.
Ugh - are you sure you really need LVM on all of them ?.
|
|
|
03-18-2009, 04:13 AM
|
#8
|
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
Quote:
Originally Posted by jiikka
Ello  Villus,
Every hard disk has a partition table with only four entries in it.
which are the entries for the primary partition. Windows could be installed only in primary partitions. If an entry in partition table is made for a extended partition, that gives a separate additional partition table which does not have any limit. Say divisions inside a division. Linux could be installed in extended partitions also. so inside a extended partition you could install several OS.
hope my answer would be helpful to you.
this link has the basics of partitioning..
http://www.redhat.com/docs/manuals/l...artitions.html
|
Extended partitions are limited. 15 under sata IIRC, and 63 or so for IDE (could be more, don't really remember)
|
|
|
03-18-2009, 04:59 AM
|
#9
|
Member
Registered: Jan 2006
Location: Lithuania
Distribution: Arch, Debian
Posts: 193
Original Poster
Rep:
|
I don't need lvm support for all distributions, but I need a possibility to install them that way after I done my partitioning scheme.
About limits - I was lucky that I decided to buy IDE
Just one more question:
How about bootloader partition requirements(I'm talking about partition boot sector not MBR) - partition should be primary ? For example:
Bootloader install time(grub lilo) - primary partition required ?
Chainnload time( when my installed bootloader is chainloaded) - primary partition required ?
thanks
Vilius
Last edited by Vilius; 03-18-2009 at 05:03 AM.
|
|
|
03-18-2009, 05:05 AM
|
#10
|
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
Chainloaded grubs don't need to be on primaries.
|
|
|
03-18-2009, 05:08 AM
|
#11
|
Member
Registered: Jan 2006
Location: Lithuania
Distribution: Arch, Debian
Posts: 193
Original Poster
Rep:
|
And how about lilo ?
|
|
|
03-18-2009, 09:58 AM
|
#12
|
LQ Newbie
Registered: Jan 2009
Posts: 14
Rep:
|
Being new to Linux but working with it now, I have a question for you. If you are trying to install three separate systems, why not use XEN and install virtual machines?
|
|
|
03-18-2009, 10:28 AM
|
#13
|
LQ Newbie
Registered: Mar 2009
Posts: 7
Rep:
|
If you want to directly load a partiton's boot sector by making it active, it should be a primary partition. I think GRUB can chainload to a logical partition's boot sector, however.
And you could also consider using GRUB's "configfile" command if you are going from one GRUB to another.
|
|
|
03-18-2009, 11:24 AM
|
#14
|
Senior Member
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 22 MATE, Peppermint OS-Devuan, EndeavourOS, antiX
Posts: 4,545
|
Vilius,
Essential reading for your situation, I think.
“How to Install & Boot 145 operating systems”
http://www.justlinux.com/forum/showthread.php?t=147959
Changes to recent kernels have caused a reduction in the headline figure of OSs but the principle of operation is basically the same. Reference is also made to LVMs.
|
|
|
All times are GMT -5. The time now is 10:22 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|