LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-14-2009, 10:43 AM   #1
lwhat
LQ Newbie
 
Registered: Nov 2009
Posts: 15

Rep: Reputation: 0
An OS only can boot from primary partition?


One question:An OS only can boot from primary partition, not in an extended partition ?

grub 0.97
 
Old 12-14-2009, 10:59 AM   #2
sonichedgehog
Member
 
Registered: Oct 2007
Location: London UK
Distribution: Fedora Core 17
Posts: 298

Rep: Reputation: 32
MBR is at the beginning of the medium (HD/USB/cd) that the BIOS has specified,not within a partition. Linux boot tools direct the MBR to consult the specified file (eg /boot/grub/menu.lst) within the required partition- generally, the partition you have just installed your OS in. If you are using multiple operating systems, then yes, this could be an extended partition.
 
Old 12-14-2009, 11:23 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Nobody can do **anything** from an extended partition......There are 2 types of real/useable partitions: primary and logical. An extended partition is only a pointer to the first logical partition**.

The Windows bootloader wants Windows to be on the first primary partition, but the typical Linux bootloader allows it to be on other primaries. (Not sure about logicals...)

Linux can be on either primary or logical partitions, with no restriction as to partition #1.


**Logical partitions are set up as a linked list. The first link is in the extended partition entry which appears in the main (MBR) partition table. Subsequent links are in additional extended partition entries in the linked partitions. An "extended partition" exists only as an entry in the partition table---i.e. there is no actual allocated space on the disk.
 
Old 12-14-2009, 12:01 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
No problem with Linux :

I typically have 10 different Linux's installed on
e.g. sda6 ....... sda15.

.....
 
Old 12-14-2009, 12:30 PM   #5
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Quote:
Originally Posted by lwhat View Post
An OS only can boot from primary partition, not in an extended partition ?
I has been many years since the last time I set up a multi-boot system with Windows booted from a logical partition (inside an extended partition). It was quite tricky to set up then and with newer versions of Windows I'm not certain it is still even possible. Anyway it is probably hard enough to be effectively impossible.

But booting Linux from a logical partition is no problem at all.
 
Old 12-14-2009, 12:45 PM   #6
randiroo76073
LQ Newbie
 
Registered: Nov 2008
Location: US of Texas
Distribution: several
Posts: 4

Rep: Reputation: 0
Quote:
Originally Posted by lwhat View Post
One question:An OS only can boot from primary partition, not in an extended partition ?

grub 0.97
With Linux you can boot as many OS's(distros) as your brain is able to keep up with. What you do need is 1 primary partition, 1 extended partition, and as many as 16 logical partitions per HDD. If you want more than that you will have to go to LVM setup instead of partitions, but that's another story. I once read an article about a guy who had successfully installed & booted 100 distros on 1 machine. 6 is about all I can handle
 
Old 12-14-2009, 12:53 PM   #7
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by johnsfine View Post
I has been many years since the last time I set up a multi-boot system with Windows booted from a logical partition (inside an extended partition). It was quite tricky to set up then and with newer versions of Windows I'm not certain it is still even possible. Anyway it is probably hard enough to be effectively impossible.

But booting Linux from a logical partition is no problem at all.
As I recall it, when booting XP fom a logical partition you need an active primary (that does not have to be the first) containing the first stage boot files -- NTLDR, boot.ini, NTDETECT.COM (and another if using SCSI HDDs?). Wasn't hard (was all handled by the the installation process) once you got the idea and didn't take one of the installers' questions too literally.
 
Old 12-14-2009, 04:32 PM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
If you look at (disassemble) the windows loader code you'll see it requires a primary partition - with the boot flag. Even checks that only one (primary) partition has a boot flag. (pre Windows 7 - I haven't bothered to look at that yet)
Old style *nix also require a primary "slice" - even OpenSolaris hadn't managed to fix this properly last I looked. As stated above Linux doesn't have any requirement for a primary, although I have seen distros fail to install if one wasn't available. This is badly designed installed code, not a Linux problem per se.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
/boot partition - necessary to be primary ? Vilius Linux - Software 13 03-18-2009 11:24 AM
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
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 - General

All times are GMT -5. The time now is 04:04 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
Open Source Consulting | Domain Registration