LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-18-2016, 06:30 PM   #1
Otherworlds
Member
 
Registered: Feb 2016
Posts: 49

Rep: Reputation: Disabled
Why doesn't Linux need a Primary partition?


Hello everyone I have just a quick question, I read that the primary partition is needed to boot up a system and the extended for containing logical drives. Also I read Windows requires a primary partition, and Linux does not.. So since there's only 4 primary partitions, 1 used for the extended partition (leaving 3), and then hypothetically say I have 3 Window's partitions, each with it's own primary partition... Then how could Linux boot with all the primary partitions taken? Since the primary partition is needed to boot a system this confuses me. I heard people say cause Windows is a brain damaged OS, and has to have a primary partition, but does that mean the primary partitions are made especially for Windows? I think I'm just confusing myself, but if anyone can help me understand I'd appreciate it, thanks in advance!

Last edited by Otherworlds; 02-18-2016 at 06:33 PM.
 
Old 02-18-2016, 06:38 PM   #2
Otherworlds
Member
 
Registered: Feb 2016
Posts: 49

Original Poster
Rep: Reputation: Disabled
Again I just don't understand how Linux can boot off a logical drive which I thought are sub partitions within the main OS partition i.e Windows C: being the main and d,e,f drives being subs. So in essence what I'm asking how can Linux boot off a D: drive? ( I realize Linux doesn't use d,e,f drives but just as a metaphor)

Last edited by Otherworlds; 02-18-2016 at 06:40 PM.
 
Old 02-18-2016, 06:43 PM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,568

Rep: Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499
A primary partition is not needed to boot an operating system as any Linux distribution I am aware of can be installed on and booted from a logical partition. A windows system needs its boot files on a primary partition and the partition must be marked as active. Someone else might be able to tell you why.
 
Old 02-18-2016, 07:21 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,152

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
A partition is just a piece of your disk. Doesn't matter what you call it. Primary partitions, and the limit of 4 goes all the way back to MSDOS. The industry (and us) are stuck with that. Extended partition as a container for logicals was an attempt to break out of that limitation.
As was gpt, but that was a ground-up redesign, so was able to do away with the limitations.

The boot-loader M$oft designed was hard-coded to require a primary partition, and a flag to indicate which one to attempt boot from. Some BIOS designers also enforce this same myopia.
A modern boot-loader doesn't require any of this - just jump to the code, and let it run.

UEFI imposes some requirements on where that code must reside, but that is a slightly different issue.
 
Old 02-18-2016, 08:13 PM   #5
Otherworlds
Member
 
Registered: Feb 2016
Posts: 49

Original Poster
Rep: Reputation: Disabled
OK I think I understand... So what you guys are saying as that there's no difference between Primary and Logical, it's just that logical is an add-on if you will, to break the 4 primary partition limit? And if so since I've read that only 1 primary partition can be active at one time, do logical partitions have that limit as well? Like if I had 20 monitors and 20 logical partitions on one hard drive, can they all be active at once?

Last edited by Otherworlds; 02-18-2016 at 08:23 PM.
 
Old 02-18-2016, 08:18 PM   #6
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
correct, so you can chop it up into more peices .. like a crazed crack head with a hatchet even.. Mhuuhahahahahaha
 
Old 02-18-2016, 08:52 PM   #7
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
UEFI is taking over, at least in part because there is no 4 partition limit on GPT drives. GPT and UEFI are the future, like it or not. They also have other advantages over MSDOS and MBR. Use UEFI and GPT and you don't have to worry about any of this stuff. They do take some effort to learn, just as MSDOS and MBR/grub do. But it's worth the effort.
 
Old 02-18-2016, 09:16 PM   #8
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,784

Rep: Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214
Quote:
Originally Posted by Otherworlds View Post
OK I think I understand... So what you guys are saying as that there's no difference between Primary and Logical, it's just that logical is an add-on if you will, to break the 4 primary partition limit? And if so since I've read that only 1 primary partition can be active at one time, do logical partitions have that limit as well? Like if I had 20 monitors and 20 logical partitions on one hard drive, can they all be active at once?
Actually, the "active" flag is meaningless on a logical partition. That flag is only meaningful to the code in a DOS/Windows MBR, and that code only examines the primary partitions. The various Linux bootloaders that can be installed in the MBR don't care about "active" flags, though some BIOS implementations won't consider a drive as a boot candidate if there is no primary partition marked "active".
 
Old 02-18-2016, 09:41 PM   #9
Otherworlds
Member
 
Registered: Feb 2016
Posts: 49

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rknichols View Post
Actually, the "active" flag is meaningless on a logical partition. That flag is only meaningful to the code in a DOS/Windows MBR, and that code only examines the primary partitions. The various Linux bootloaders that can be installed in the MBR don't care about "active" flags, though some BIOS implementations won't consider a drive as a boot candidate if there is no primary partition marked "active".
Once again thanks friend for clearing things up, luckily I learned about Gentoo's USE flags to understand what flags do.. Awesome thanks!
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy XP partition into a Linux installation primary drive possible? bfzhou Linux - General 5 11-12-2013 01:24 AM
Why Linux allow only four primary partition ? Senthilv Linux - Server 8 08-23-2011 12:00 AM
linux in primary partition Scarlett_987 Linux - General 2 01-28-2007 03:56 AM
setting up a linux partition and primary/extended partitions joemamma Linux - Newbie 6 02-23-2003 01:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:26 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