LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 03-18-2009, 12:31 AM   #1
Vilius
Member
 
Registered: Jan 2006
Location: Lithuania
Distribution: Arch, Debian
Posts: 193

Rep: Reputation: 16
/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
 
Old 03-18-2009, 01:24 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 16,474

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
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 ?.
 
Old 03-18-2009, 01:42 AM   #3
Vilius
Member
 
Registered: Jan 2006
Location: Lithuania
Distribution: Arch, Debian
Posts: 193

Original Poster
Rep: Reputation: 16
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
 
Old 03-18-2009, 01:47 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 16,474

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
Read my previous answer - I made no mention of kernel image.
 
Old 03-18-2009, 02:03 AM   #5
jiikka
LQ Newbie
 
Registered: Jan 2009
Location: Chennai, India
Distribution: Redhat
Posts: 23

Rep: Reputation: 17
Lightbulb 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
 
Old 03-18-2009, 02:26 AM   #6
Vilius
Member
 
Registered: Jan 2006
Location: Lithuania
Distribution: Arch, Debian
Posts: 193

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by syg00 View Post
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
 
Old 03-18-2009, 04:09 AM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 16,474

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
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 ?.
 
Old 03-18-2009, 04:13 AM   #8
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Quote:
Originally Posted by jiikka View Post
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)
 
Old 03-18-2009, 04:59 AM   #9
Vilius
Member
 
Registered: Jan 2006
Location: Lithuania
Distribution: Arch, Debian
Posts: 193

Original Poster
Rep: Reputation: 16
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.
 
Old 03-18-2009, 05:05 AM   #10
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Chainloaded grubs don't need to be on primaries.
 
Old 03-18-2009, 05:08 AM   #11
Vilius
Member
 
Registered: Jan 2006
Location: Lithuania
Distribution: Arch, Debian
Posts: 193

Original Poster
Rep: Reputation: 16
And how about lilo ?
 
Old 03-18-2009, 09:58 AM   #12
tekygirl
LQ Newbie
 
Registered: Jan 2009
Posts: 14

Rep: Reputation: 0
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?
 
Old 03-18-2009, 10:28 AM   #13
maybeway36
LQ Newbie
 
Registered: Mar 2009
Posts: 7

Rep: Reputation: 2
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.
 
Old 03-18-2009, 11:24 AM   #14
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 18.3 MATE, Solus 3 MATE, antiX-17, MX-17.1
Posts: 2,341
Blog Entries: 10

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
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.
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving primary(boot) partition to another HDD shukuboy Linux - Hardware 3 01-14-2009 11:05 AM
tri boot, fun with partioning, getting swap to NOT take up a primary partition johnsshadow Linux - Software 13 09-25-2008 04:19 AM
Dual boot primary Linspire & XP primary slave? watmonki Linspire/Freespire 5 11-01-2005 08:16 PM
Should I create a 1GB PRIMARY Partition for /boot bluedevlx Linux - Newbie 10 11-20-2004 05:36 PM
boot loader, MBR, redhat9 on primary slave, winxp on primary master samik Linux - Hardware 4 10-15-2003 08:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:02 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration