LinuxQuestions.org
Review your favorite Linux distribution.
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 09-04-2013, 03:58 PM   #1
arash_6161
LQ Newbie
 
Registered: Sep 2013
Posts: 3

Rep: Reputation: Disabled
cannot creat over than 12 logical partition


(mbr)
One of the four partitions on the disk can be the Extended Partition. It can be subdivided into logical volumes.
in windows:
Each logical volume is assigned a disk letter and can be formatted with a separate file system. There is no limit on the number of logical volumes other than the fact that there are only 26 letters in the alphabet and A, B, and C have been taken
in Linux systems:
why you cannot creat over than 12 logical partition in Linux system(fdisk) ?
 
Old 09-04-2013, 04:06 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Welcome to LinuxQuestions

What distribution/version are you running? That is correct the maximum number of partitions for a legacy MBR is 16 based upon the SCSI subsystem drivers. All drives no matter PATA, SATA, USB etc use the SCSI subsystem.
 
Old 09-04-2013, 04:19 PM   #3
arash_6161
LQ Newbie
 
Registered: Sep 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
is this difference between mbr in windows and mbr in Linux?why you can create 22 logical partitions in windows but in Linux you can craet just 12 logical partitions in the same system?what is the max number of logical partitions in mbr ?
 
Old 09-04-2013, 04:44 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
It is basically driver / software dependent and nothing to due with the physical hardware. With the old linux IDE driver the limit was 63 partitions.

Actually with a few tricks one create more then 15. The site is down at the moment and forgive me for posting a link from another forum but sekai has played a lot with partitioning drives.

http://forums.justlinux.com/maintena...-PATA-USB-disk

BTW the total including primary partitions is 16.

Last edited by michaelk; 09-04-2013 at 05:15 PM.
 
Old 09-04-2013, 04:44 PM   #5
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,264
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
Quote:
Originally Posted by arash_6161 View Post
is this difference between mbr in windows and mbr in Linux?why you can create 22 logical partitions in windows but in Linux you can craet just 12 logical partitions in the same system?what is the max number of logical partitions in mbr ?
The limit is imposed by the scsi drivers (i.e., 'sd' drivers). The logical partitions are not a property of the mbr, in fact they were devised in order to overcome limitations of the mbr. So asking, "what is the max number of logical partitions in mbr?" is not a valid question, the answer is zero!

Using the IDE drivers (i.e., 'hd' drivers) there was a limit of 63 partitions, but with the sd drivers the limit is 15, 3 of which may be primary partitions, so the limit for logical partitions is 12.

You can in fact create more than 12 logical partitions under GNU/Linux, but many programs and utilities will become confused by them, so it is best to stay with 12 or fewer.

Last edited by astrogeek; 09-04-2013 at 04:47 PM.
 
Old 09-04-2013, 06:01 PM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Actually, it is pretty easy to overcome this limitation: Just don't use MBR style partitioning, use GPT style partitioning. Any modern Windows (if you have an UEFI BIOS) or Linux (works with any BIOS) version should be able to handle that just fine*.

* Windows has some artificial limitations in GPT support that can be seen in the corresponding Wikipedia article: http://en.wikipedia.org/wiki/GUID_Pa...2-bit_versions
 
Old 09-04-2013, 08:48 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
Actually one could make 52 disks in dos. When you ended with z you started with aa and so on.

You can really make hundreds of partitions. Many tools have been made over the years to fool the system. I have seen some tools that had made 100 OS's run on a mbr disk.

Answered before also. https://www.linuxquestions.org/quest...tition-754458/
 
Old 09-05-2013, 02:28 AM   #8
arash_6161
LQ Newbie
 
Registered: Sep 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by astrogeek View Post
The limit is imposed by the scsi drivers (i.e., 'sd' drivers). The logical partitions are not a property of the mbr, in fact they were devised in order to overcome limitations of the mbr. So asking, "what is the max number of logical partitions in mbr?" is not a valid question, the answer is zero!

Using the IDE drivers (i.e., 'hd' drivers) there was a limit of 63 partitions, but with the sd drivers the limit is 15, 3 of which may be primary partitions, so the limit for logical partitions is 12.

You can in fact create more than 12 logical partitions under GNU/Linux, but many programs and utilities will become confused by them, so it is best to stay with 12 or fewer.
sorry but I tested with ide driver and same result again.both scsi or ide driver in fdisk tools you cannot create over than 12 logical partitions.....
 
Old 09-05-2013, 02:51 AM   #9
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,264
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
Quote:
Originally Posted by arash_6161 View Post
sorry but I tested with ide driver and same result again.both scsi or ide driver in fdisk tools you cannot create over than 12 logical partitions.....
Well, you make a lot of assumptions with that!

As I said earlier, the limit with the older IDE hd drivers was 63 partitions - that is history.

And the scsi sd drivers now commonly in use impose a limit of 15 partitions, 3 of which may be primary, leaving a limit of 12 logical partitions - the current state of affairs.

But while the drivers impose the limit, they may not be the thing that enforces the limit - that may be done by various tools, including fdisk itself. So reverting to the older drivers may not be sufficient to completely revert to the old behavior and restore the 63 partition limit across the board.

As I said, although you can still create more than 12 logical partitions, many programs do not recognize them - it runs deeper than just the drivers at this point!

I really don't know how each tool, the BIOS, or even the kernel may decide how many logical partitions to allow, but I expect it goes deeper than simply loading a different driver.

Last edited by astrogeek; 09-05-2013 at 03:05 AM.
 
1 members found this post helpful.
  


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
[SOLVED] cfdisk : FATAL ERROR: Bad logical partition 10: enlarged logical partitions overlap riller Fedora 8 05-31-2012 08:17 AM
HowTo convert Primary Partition to Logical (ie move it inside the Extended Partition) Tom6 Linux - Software 3 11-29-2010 03:40 PM
creat new SWAP partition viral_Ahire Linux - Software 3 03-19-2008 11:06 PM
should i format X partition after creat Y partition No2002 Linux - General 3 07-16-2005 10:13 AM
Creat free space from /home partition, how? hraposo Mandriva 1 09-22-2004 12:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:21 PM.

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