What's the limit on the no. of partitions I can have?












5















I would like to know how many Primary and Extended Partitions I can create on a x86_64 PC with Linux running on it?





Update :

If there is a limit to the number of partitions, why is that the limit?










share|improve this question

























  • Some more discussion of where the limits come from: contextswitching.tumblr.com/post/154159186893/…

    – shinecasting
    Dec 20 '16 at 15:46
















5















I would like to know how many Primary and Extended Partitions I can create on a x86_64 PC with Linux running on it?





Update :

If there is a limit to the number of partitions, why is that the limit?










share|improve this question

























  • Some more discussion of where the limits come from: contextswitching.tumblr.com/post/154159186893/…

    – shinecasting
    Dec 20 '16 at 15:46














5












5








5


1






I would like to know how many Primary and Extended Partitions I can create on a x86_64 PC with Linux running on it?





Update :

If there is a limit to the number of partitions, why is that the limit?










share|improve this question
















I would like to know how many Primary and Extended Partitions I can create on a x86_64 PC with Linux running on it?





Update :

If there is a limit to the number of partitions, why is that the limit?







linux partition






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 16 '13 at 16:24









kurtm

4,09511619




4,09511619










asked Jan 12 '11 at 14:05









SenSen

3,991165064




3,991165064













  • Some more discussion of where the limits come from: contextswitching.tumblr.com/post/154159186893/…

    – shinecasting
    Dec 20 '16 at 15:46



















  • Some more discussion of where the limits come from: contextswitching.tumblr.com/post/154159186893/…

    – shinecasting
    Dec 20 '16 at 15:46

















Some more discussion of where the limits come from: contextswitching.tumblr.com/post/154159186893/…

– shinecasting
Dec 20 '16 at 15:46





Some more discussion of where the limits come from: contextswitching.tumblr.com/post/154159186893/…

– shinecasting
Dec 20 '16 at 15:46










5 Answers
5






active

oldest

votes


















10














The limitation is due to the original BIOS design. At that time, people weren't thinking more than four different OSes would be installed on a single disk. There was also a misunderstanding of the standard by OS implementors, notably Microsoft and Linux which erroneously map file systems with (primary) partitions instead of subdividing their own partition in slices like BSD and Solaris which was the original intended goal.



The maximum number of logical partitions is unlimited by the standard but the number of reachable ones depends on the OS. Windows is limited by the number of letters in the alphabet, Linux used to have 63 slots with the IDE driver (hda1 to hda63) but modern releases standardize on the sd drivers which supports by default 15 slots (sda1 to sda15). By some tuning, this limit can be overcome but might confuse tools (see http://www.justlinux.com/forum/showthread.php?t=152404 )



In any case, this is becoming history with EFI/GPT. Recent Linuxes support GPT with which you can have 128 partitions by default. To fully use large disks (2TB and more) you'll need GPT anyway.






share|improve this answer


























  • I believe you only need GPT if the partition /boot is on is greater than 2TB. / should be able to be larger than 2TB since the kernel mounts it rather than the bootloader.

    – jonescb
    Jan 12 '11 at 15:16











  • How would the non /boot partitions be defined ?

    – jlliagre
    Jan 12 '11 at 15:38











  • There was also a misunderstanding of the standard by OS implementors, notably Microsoft and Linux which erroneously map file systems with (primary) partitions instead of subdividing their own partition in slices like BSD and Solaris which was the original intended goal. I dint understand this. Could you please elaborate on this?

    – Sen
    Jan 12 '11 at 17:12






  • 2





    @Sen: the original goal was that each OS would use a single partition, and if an OS wanted more than one filesystem, it would divide the partition into slices. But Linux (originally) and Windows use separate partitions for each filesystem.

    – Gilles
    Jan 12 '11 at 21:17



















3














Sen, in response to @jlliagre, it should be noted that some operating systems will create a single partition, but essentially create sub-partitions within that space.



It is analogous, but not equal, to doing:



 parted rm 1 /dev/sda
...
parted rm 7 /dev/sda
parted mkpart primary $start $end /dev/sda
parted mkpart primary $start1 $end1 /dev/sda1


You could then use kpartx to access these sub-partitions:



 kpartx -a /dev/sda1


The sub-partition(s) would appear as:



 /dev/sda1p1


Of course, this isn't how FreeBSD and similar systems do their slicing, exactly, but it is essentially the same thing.






share|improve this answer
























  • Indeed. I didn't wrote nobody followed the intended goal, just that two mainstream OSes didn't, at least originally. The IBM PC-AT introduced the extended partition standard which was limiting the damage. Modern OSes like those using volume managers or even better, ZFS, no more demand a one to one relationship between file systems and partitions.

    – jlliagre
    Jan 12 '11 at 21:41



















0














In a hard disk we can create 4 primary partitions or alternatively 3 primary partitions and an extended partition.
The primary+extended partition can be divided into 63 logical partitions






share|improve this answer































    0














    4 primary partitions or alternatively 3 primary partitions and an extended partition.



    The extended partition can be subdivided into multiple logical partitions.






    share|improve this answer





















    • 1





      Do you how many logical partitions that would be?

      – Johan
      Jan 12 '11 at 14:24











    • @Johan: The format doesn't impose any limitation, but most OSes do have one. See jlliagre's answer.

      – Gilles
      Jan 12 '11 at 21:14



















    0














    Partitions are totally depended upon Disk type format.


    If we use MBR Disk type in Linux then we can create 4 total partitions like:



    1) All four partitions are Primary only.


    2) Three partitions are primary and remaining 1 is extended.



    If we consider above 2 steps then under Extended partition we can create almost 65536 new logical partitions and use them but this logical partitions we can use have some limit and it depends upon OS to OS.



    How many partitions we can create under Extended partitions?


    Answer: Suppose you created the last partition in MBR as an extended partition and under it, we create a 1GB partition as a logical partition.



    Their structure as follows:



    [root@localhost ~]# fdisk -l /dev/sdb



    Disk /dev/sdb: 21.5 GB, 21474836480 bytes, 41943040 sectors


    Units = sectors of 1 * 512 = 512 bytes


    Sector size (logical/physical): 512 bytes / 512 bytes


    I/O size (minimum/optimal): 512 bytes / 512 bytes


    Disk label type: dos


    Disk identifier: 0x4bc89c19



    Device Boot Start End Blocks Id System


    /dev/sdb1 2048 2099199 1048576 83 Linux


    /dev/sdb2 2099200 2293759 97280 83 Linux


    /dev/sdb3 2293760 2488319 97280 83 Linux


    /dev/sdb4 2488320 41943039 19727360 5 Extended < br/>



    [root@localhost ~]# fdisk /dev/sdb


    Welcome to fdisk (util-linux 2.23.2).



    Changes will remain in memory only until you decide to write them.


    Be careful before using the write command.



    Command (m for help): n


    All primary partitions are in use


    Adding logical partition 5


    First sector (2490368-41943039, default 2490368):


    Using default value 2490368


    Last sector, +sectors or +size{K,M,G} (2490368-41943039, default 41943039): +1G


    Partition 5 of type Linux and of size 1 GiB is set



    Command (m for help): p



    Disk /dev/sdb: 21.5 GB, 21474836480 bytes, 41943040 sectors


    Units = sectors of 1 * 512 = 512 bytes


    Sector size (logical/physical): 512 bytes / 512 bytes


    I/O size (minimum/optimal): 512 bytes / 512 bytes


    Disk label type: dos


    Disk identifier: 0x4bc89c19



    Device Boot Start End Blocks Id System


    /dev/sdb1 2048 2099199 1048576 83 Linux


    /dev/sdb2 2099200 2293759 97280 83 Linux <


    /dev/sdb3 2293760 2488319 97280 83 Linux


    /dev/sdb4 2488320 41943039 19727360 5 Extended


    /dev/sdb5 2490368 4587519 1048576 83 Linux



    Now, After create a 1GB logical partition above we can calculate the total number of logical partition under the extended partition.


    We know MBR supports 1 Sector space =512 bytes



    Difference between /dev/sdb5 and /dev/sdb4 Starting Sector Values has follows 2490368-2488320=2048


    2048 is the difference value which is a Reserved Space in Extended Partition to store the information of logical partitions under it.


    If we multiply 2048 with 512 bytes then total bytes present in Extended partitions to support Logical partitions i.e. 2048*512=1048576 bytes



    In MBR, the total size of 64 bytes is used to store the partition information in the partition table. It means partition table stores each partition information in it which has each partition size of 16 bytes. Each partition can use the 16 bytes of space, so according to it, the total of 4 partitions are provided in MBR including extended. If we see the last partition size which is extended partition then they use 16 bytes of space.



    It means if we divide the 1048576 bytes to 16 we get a total number of logical partition under extended partition i.e. 1048576/16=65536(Maximum Logical Partition).



    We can use maximum 65536 total logical partitions under it. But the use of this partition depends upon OS to OS. In Linux, MBR uses maximum 60 logical partitions under the extended partition.




    So total number of partitions we can create under MBR is 3(primary),1(Extended),60(Logical)=64


    But only primary and logical partitions are used to feed the Linux data not extended partitions so it means only 63 partitions are useful to feed the data into the partitions.



    How we can say only 60 maximum partitions are created under MBR and not more than that?



    Just create the logical partitions as much as you can and when you create your 60th logical partition, the system shows this message


    Command (m for help): n


    All primary partitions are in use


    Adding logical partition 60


    First sector (23013477-41943039, default 23031808):


    Using default value 23031808


    Last sector, +sectors or +size{K,M,G} (23031808-24035327, default 24035327): +100

    Partition 60 of type Linux and of size 50.5 KiB is set



    Command (m for help): n

    The maximum number of partitions has been created






    share|improve this answer










    New contributor




    Ankit Garg is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.




















      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "106"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f5730%2fwhats-the-limit-on-the-no-of-partitions-i-can-have%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      5 Answers
      5






      active

      oldest

      votes








      5 Answers
      5






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      10














      The limitation is due to the original BIOS design. At that time, people weren't thinking more than four different OSes would be installed on a single disk. There was also a misunderstanding of the standard by OS implementors, notably Microsoft and Linux which erroneously map file systems with (primary) partitions instead of subdividing their own partition in slices like BSD and Solaris which was the original intended goal.



      The maximum number of logical partitions is unlimited by the standard but the number of reachable ones depends on the OS. Windows is limited by the number of letters in the alphabet, Linux used to have 63 slots with the IDE driver (hda1 to hda63) but modern releases standardize on the sd drivers which supports by default 15 slots (sda1 to sda15). By some tuning, this limit can be overcome but might confuse tools (see http://www.justlinux.com/forum/showthread.php?t=152404 )



      In any case, this is becoming history with EFI/GPT. Recent Linuxes support GPT with which you can have 128 partitions by default. To fully use large disks (2TB and more) you'll need GPT anyway.






      share|improve this answer


























      • I believe you only need GPT if the partition /boot is on is greater than 2TB. / should be able to be larger than 2TB since the kernel mounts it rather than the bootloader.

        – jonescb
        Jan 12 '11 at 15:16











      • How would the non /boot partitions be defined ?

        – jlliagre
        Jan 12 '11 at 15:38











      • There was also a misunderstanding of the standard by OS implementors, notably Microsoft and Linux which erroneously map file systems with (primary) partitions instead of subdividing their own partition in slices like BSD and Solaris which was the original intended goal. I dint understand this. Could you please elaborate on this?

        – Sen
        Jan 12 '11 at 17:12






      • 2





        @Sen: the original goal was that each OS would use a single partition, and if an OS wanted more than one filesystem, it would divide the partition into slices. But Linux (originally) and Windows use separate partitions for each filesystem.

        – Gilles
        Jan 12 '11 at 21:17
















      10














      The limitation is due to the original BIOS design. At that time, people weren't thinking more than four different OSes would be installed on a single disk. There was also a misunderstanding of the standard by OS implementors, notably Microsoft and Linux which erroneously map file systems with (primary) partitions instead of subdividing their own partition in slices like BSD and Solaris which was the original intended goal.



      The maximum number of logical partitions is unlimited by the standard but the number of reachable ones depends on the OS. Windows is limited by the number of letters in the alphabet, Linux used to have 63 slots with the IDE driver (hda1 to hda63) but modern releases standardize on the sd drivers which supports by default 15 slots (sda1 to sda15). By some tuning, this limit can be overcome but might confuse tools (see http://www.justlinux.com/forum/showthread.php?t=152404 )



      In any case, this is becoming history with EFI/GPT. Recent Linuxes support GPT with which you can have 128 partitions by default. To fully use large disks (2TB and more) you'll need GPT anyway.






      share|improve this answer


























      • I believe you only need GPT if the partition /boot is on is greater than 2TB. / should be able to be larger than 2TB since the kernel mounts it rather than the bootloader.

        – jonescb
        Jan 12 '11 at 15:16











      • How would the non /boot partitions be defined ?

        – jlliagre
        Jan 12 '11 at 15:38











      • There was also a misunderstanding of the standard by OS implementors, notably Microsoft and Linux which erroneously map file systems with (primary) partitions instead of subdividing their own partition in slices like BSD and Solaris which was the original intended goal. I dint understand this. Could you please elaborate on this?

        – Sen
        Jan 12 '11 at 17:12






      • 2





        @Sen: the original goal was that each OS would use a single partition, and if an OS wanted more than one filesystem, it would divide the partition into slices. But Linux (originally) and Windows use separate partitions for each filesystem.

        – Gilles
        Jan 12 '11 at 21:17














      10












      10








      10







      The limitation is due to the original BIOS design. At that time, people weren't thinking more than four different OSes would be installed on a single disk. There was also a misunderstanding of the standard by OS implementors, notably Microsoft and Linux which erroneously map file systems with (primary) partitions instead of subdividing their own partition in slices like BSD and Solaris which was the original intended goal.



      The maximum number of logical partitions is unlimited by the standard but the number of reachable ones depends on the OS. Windows is limited by the number of letters in the alphabet, Linux used to have 63 slots with the IDE driver (hda1 to hda63) but modern releases standardize on the sd drivers which supports by default 15 slots (sda1 to sda15). By some tuning, this limit can be overcome but might confuse tools (see http://www.justlinux.com/forum/showthread.php?t=152404 )



      In any case, this is becoming history with EFI/GPT. Recent Linuxes support GPT with which you can have 128 partitions by default. To fully use large disks (2TB and more) you'll need GPT anyway.






      share|improve this answer















      The limitation is due to the original BIOS design. At that time, people weren't thinking more than four different OSes would be installed on a single disk. There was also a misunderstanding of the standard by OS implementors, notably Microsoft and Linux which erroneously map file systems with (primary) partitions instead of subdividing their own partition in slices like BSD and Solaris which was the original intended goal.



      The maximum number of logical partitions is unlimited by the standard but the number of reachable ones depends on the OS. Windows is limited by the number of letters in the alphabet, Linux used to have 63 slots with the IDE driver (hda1 to hda63) but modern releases standardize on the sd drivers which supports by default 15 slots (sda1 to sda15). By some tuning, this limit can be overcome but might confuse tools (see http://www.justlinux.com/forum/showthread.php?t=152404 )



      In any case, this is becoming history with EFI/GPT. Recent Linuxes support GPT with which you can have 128 partitions by default. To fully use large disks (2TB and more) you'll need GPT anyway.







      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Jan 12 '11 at 15:35

























      answered Jan 12 '11 at 14:51









      jlliagrejlliagre

      46.7k783133




      46.7k783133













      • I believe you only need GPT if the partition /boot is on is greater than 2TB. / should be able to be larger than 2TB since the kernel mounts it rather than the bootloader.

        – jonescb
        Jan 12 '11 at 15:16











      • How would the non /boot partitions be defined ?

        – jlliagre
        Jan 12 '11 at 15:38











      • There was also a misunderstanding of the standard by OS implementors, notably Microsoft and Linux which erroneously map file systems with (primary) partitions instead of subdividing their own partition in slices like BSD and Solaris which was the original intended goal. I dint understand this. Could you please elaborate on this?

        – Sen
        Jan 12 '11 at 17:12






      • 2





        @Sen: the original goal was that each OS would use a single partition, and if an OS wanted more than one filesystem, it would divide the partition into slices. But Linux (originally) and Windows use separate partitions for each filesystem.

        – Gilles
        Jan 12 '11 at 21:17



















      • I believe you only need GPT if the partition /boot is on is greater than 2TB. / should be able to be larger than 2TB since the kernel mounts it rather than the bootloader.

        – jonescb
        Jan 12 '11 at 15:16











      • How would the non /boot partitions be defined ?

        – jlliagre
        Jan 12 '11 at 15:38











      • There was also a misunderstanding of the standard by OS implementors, notably Microsoft and Linux which erroneously map file systems with (primary) partitions instead of subdividing their own partition in slices like BSD and Solaris which was the original intended goal. I dint understand this. Could you please elaborate on this?

        – Sen
        Jan 12 '11 at 17:12






      • 2





        @Sen: the original goal was that each OS would use a single partition, and if an OS wanted more than one filesystem, it would divide the partition into slices. But Linux (originally) and Windows use separate partitions for each filesystem.

        – Gilles
        Jan 12 '11 at 21:17

















      I believe you only need GPT if the partition /boot is on is greater than 2TB. / should be able to be larger than 2TB since the kernel mounts it rather than the bootloader.

      – jonescb
      Jan 12 '11 at 15:16





      I believe you only need GPT if the partition /boot is on is greater than 2TB. / should be able to be larger than 2TB since the kernel mounts it rather than the bootloader.

      – jonescb
      Jan 12 '11 at 15:16













      How would the non /boot partitions be defined ?

      – jlliagre
      Jan 12 '11 at 15:38





      How would the non /boot partitions be defined ?

      – jlliagre
      Jan 12 '11 at 15:38













      There was also a misunderstanding of the standard by OS implementors, notably Microsoft and Linux which erroneously map file systems with (primary) partitions instead of subdividing their own partition in slices like BSD and Solaris which was the original intended goal. I dint understand this. Could you please elaborate on this?

      – Sen
      Jan 12 '11 at 17:12





      There was also a misunderstanding of the standard by OS implementors, notably Microsoft and Linux which erroneously map file systems with (primary) partitions instead of subdividing their own partition in slices like BSD and Solaris which was the original intended goal. I dint understand this. Could you please elaborate on this?

      – Sen
      Jan 12 '11 at 17:12




      2




      2





      @Sen: the original goal was that each OS would use a single partition, and if an OS wanted more than one filesystem, it would divide the partition into slices. But Linux (originally) and Windows use separate partitions for each filesystem.

      – Gilles
      Jan 12 '11 at 21:17





      @Sen: the original goal was that each OS would use a single partition, and if an OS wanted more than one filesystem, it would divide the partition into slices. But Linux (originally) and Windows use separate partitions for each filesystem.

      – Gilles
      Jan 12 '11 at 21:17













      3














      Sen, in response to @jlliagre, it should be noted that some operating systems will create a single partition, but essentially create sub-partitions within that space.



      It is analogous, but not equal, to doing:



       parted rm 1 /dev/sda
      ...
      parted rm 7 /dev/sda
      parted mkpart primary $start $end /dev/sda
      parted mkpart primary $start1 $end1 /dev/sda1


      You could then use kpartx to access these sub-partitions:



       kpartx -a /dev/sda1


      The sub-partition(s) would appear as:



       /dev/sda1p1


      Of course, this isn't how FreeBSD and similar systems do their slicing, exactly, but it is essentially the same thing.






      share|improve this answer
























      • Indeed. I didn't wrote nobody followed the intended goal, just that two mainstream OSes didn't, at least originally. The IBM PC-AT introduced the extended partition standard which was limiting the damage. Modern OSes like those using volume managers or even better, ZFS, no more demand a one to one relationship between file systems and partitions.

        – jlliagre
        Jan 12 '11 at 21:41
















      3














      Sen, in response to @jlliagre, it should be noted that some operating systems will create a single partition, but essentially create sub-partitions within that space.



      It is analogous, but not equal, to doing:



       parted rm 1 /dev/sda
      ...
      parted rm 7 /dev/sda
      parted mkpart primary $start $end /dev/sda
      parted mkpart primary $start1 $end1 /dev/sda1


      You could then use kpartx to access these sub-partitions:



       kpartx -a /dev/sda1


      The sub-partition(s) would appear as:



       /dev/sda1p1


      Of course, this isn't how FreeBSD and similar systems do their slicing, exactly, but it is essentially the same thing.






      share|improve this answer
























      • Indeed. I didn't wrote nobody followed the intended goal, just that two mainstream OSes didn't, at least originally. The IBM PC-AT introduced the extended partition standard which was limiting the damage. Modern OSes like those using volume managers or even better, ZFS, no more demand a one to one relationship between file systems and partitions.

        – jlliagre
        Jan 12 '11 at 21:41














      3












      3








      3







      Sen, in response to @jlliagre, it should be noted that some operating systems will create a single partition, but essentially create sub-partitions within that space.



      It is analogous, but not equal, to doing:



       parted rm 1 /dev/sda
      ...
      parted rm 7 /dev/sda
      parted mkpart primary $start $end /dev/sda
      parted mkpart primary $start1 $end1 /dev/sda1


      You could then use kpartx to access these sub-partitions:



       kpartx -a /dev/sda1


      The sub-partition(s) would appear as:



       /dev/sda1p1


      Of course, this isn't how FreeBSD and similar systems do their slicing, exactly, but it is essentially the same thing.






      share|improve this answer













      Sen, in response to @jlliagre, it should be noted that some operating systems will create a single partition, but essentially create sub-partitions within that space.



      It is analogous, but not equal, to doing:



       parted rm 1 /dev/sda
      ...
      parted rm 7 /dev/sda
      parted mkpart primary $start $end /dev/sda
      parted mkpart primary $start1 $end1 /dev/sda1


      You could then use kpartx to access these sub-partitions:



       kpartx -a /dev/sda1


      The sub-partition(s) would appear as:



       /dev/sda1p1


      Of course, this isn't how FreeBSD and similar systems do their slicing, exactly, but it is essentially the same thing.







      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Jan 12 '11 at 21:13









      ewindischewindisch

      62644




      62644













      • Indeed. I didn't wrote nobody followed the intended goal, just that two mainstream OSes didn't, at least originally. The IBM PC-AT introduced the extended partition standard which was limiting the damage. Modern OSes like those using volume managers or even better, ZFS, no more demand a one to one relationship between file systems and partitions.

        – jlliagre
        Jan 12 '11 at 21:41



















      • Indeed. I didn't wrote nobody followed the intended goal, just that two mainstream OSes didn't, at least originally. The IBM PC-AT introduced the extended partition standard which was limiting the damage. Modern OSes like those using volume managers or even better, ZFS, no more demand a one to one relationship between file systems and partitions.

        – jlliagre
        Jan 12 '11 at 21:41

















      Indeed. I didn't wrote nobody followed the intended goal, just that two mainstream OSes didn't, at least originally. The IBM PC-AT introduced the extended partition standard which was limiting the damage. Modern OSes like those using volume managers or even better, ZFS, no more demand a one to one relationship between file systems and partitions.

      – jlliagre
      Jan 12 '11 at 21:41





      Indeed. I didn't wrote nobody followed the intended goal, just that two mainstream OSes didn't, at least originally. The IBM PC-AT introduced the extended partition standard which was limiting the damage. Modern OSes like those using volume managers or even better, ZFS, no more demand a one to one relationship between file systems and partitions.

      – jlliagre
      Jan 12 '11 at 21:41











      0














      In a hard disk we can create 4 primary partitions or alternatively 3 primary partitions and an extended partition.
      The primary+extended partition can be divided into 63 logical partitions






      share|improve this answer




























        0














        In a hard disk we can create 4 primary partitions or alternatively 3 primary partitions and an extended partition.
        The primary+extended partition can be divided into 63 logical partitions






        share|improve this answer


























          0












          0








          0







          In a hard disk we can create 4 primary partitions or alternatively 3 primary partitions and an extended partition.
          The primary+extended partition can be divided into 63 logical partitions






          share|improve this answer













          In a hard disk we can create 4 primary partitions or alternatively 3 primary partitions and an extended partition.
          The primary+extended partition can be divided into 63 logical partitions







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Sep 2 '16 at 9:01









          Ajay ChaurasiyaAjay Chaurasiya

          1




          1























              0














              4 primary partitions or alternatively 3 primary partitions and an extended partition.



              The extended partition can be subdivided into multiple logical partitions.






              share|improve this answer





















              • 1





                Do you how many logical partitions that would be?

                – Johan
                Jan 12 '11 at 14:24











              • @Johan: The format doesn't impose any limitation, but most OSes do have one. See jlliagre's answer.

                – Gilles
                Jan 12 '11 at 21:14
















              0














              4 primary partitions or alternatively 3 primary partitions and an extended partition.



              The extended partition can be subdivided into multiple logical partitions.






              share|improve this answer





















              • 1





                Do you how many logical partitions that would be?

                – Johan
                Jan 12 '11 at 14:24











              • @Johan: The format doesn't impose any limitation, but most OSes do have one. See jlliagre's answer.

                – Gilles
                Jan 12 '11 at 21:14














              0












              0








              0







              4 primary partitions or alternatively 3 primary partitions and an extended partition.



              The extended partition can be subdivided into multiple logical partitions.






              share|improve this answer















              4 primary partitions or alternatively 3 primary partitions and an extended partition.



              The extended partition can be subdivided into multiple logical partitions.







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Jan 14 at 12:57









              peterh

              4,429102957




              4,429102957










              answered Jan 12 '11 at 14:20









              jetjet

              81458




              81458








              • 1





                Do you how many logical partitions that would be?

                – Johan
                Jan 12 '11 at 14:24











              • @Johan: The format doesn't impose any limitation, but most OSes do have one. See jlliagre's answer.

                – Gilles
                Jan 12 '11 at 21:14














              • 1





                Do you how many logical partitions that would be?

                – Johan
                Jan 12 '11 at 14:24











              • @Johan: The format doesn't impose any limitation, but most OSes do have one. See jlliagre's answer.

                – Gilles
                Jan 12 '11 at 21:14








              1




              1





              Do you how many logical partitions that would be?

              – Johan
              Jan 12 '11 at 14:24





              Do you how many logical partitions that would be?

              – Johan
              Jan 12 '11 at 14:24













              @Johan: The format doesn't impose any limitation, but most OSes do have one. See jlliagre's answer.

              – Gilles
              Jan 12 '11 at 21:14





              @Johan: The format doesn't impose any limitation, but most OSes do have one. See jlliagre's answer.

              – Gilles
              Jan 12 '11 at 21:14











              0














              Partitions are totally depended upon Disk type format.


              If we use MBR Disk type in Linux then we can create 4 total partitions like:



              1) All four partitions are Primary only.


              2) Three partitions are primary and remaining 1 is extended.



              If we consider above 2 steps then under Extended partition we can create almost 65536 new logical partitions and use them but this logical partitions we can use have some limit and it depends upon OS to OS.



              How many partitions we can create under Extended partitions?


              Answer: Suppose you created the last partition in MBR as an extended partition and under it, we create a 1GB partition as a logical partition.



              Their structure as follows:



              [root@localhost ~]# fdisk -l /dev/sdb



              Disk /dev/sdb: 21.5 GB, 21474836480 bytes, 41943040 sectors


              Units = sectors of 1 * 512 = 512 bytes


              Sector size (logical/physical): 512 bytes / 512 bytes


              I/O size (minimum/optimal): 512 bytes / 512 bytes


              Disk label type: dos


              Disk identifier: 0x4bc89c19



              Device Boot Start End Blocks Id System


              /dev/sdb1 2048 2099199 1048576 83 Linux


              /dev/sdb2 2099200 2293759 97280 83 Linux


              /dev/sdb3 2293760 2488319 97280 83 Linux


              /dev/sdb4 2488320 41943039 19727360 5 Extended < br/>



              [root@localhost ~]# fdisk /dev/sdb


              Welcome to fdisk (util-linux 2.23.2).



              Changes will remain in memory only until you decide to write them.


              Be careful before using the write command.



              Command (m for help): n


              All primary partitions are in use


              Adding logical partition 5


              First sector (2490368-41943039, default 2490368):


              Using default value 2490368


              Last sector, +sectors or +size{K,M,G} (2490368-41943039, default 41943039): +1G


              Partition 5 of type Linux and of size 1 GiB is set



              Command (m for help): p



              Disk /dev/sdb: 21.5 GB, 21474836480 bytes, 41943040 sectors


              Units = sectors of 1 * 512 = 512 bytes


              Sector size (logical/physical): 512 bytes / 512 bytes


              I/O size (minimum/optimal): 512 bytes / 512 bytes


              Disk label type: dos


              Disk identifier: 0x4bc89c19



              Device Boot Start End Blocks Id System


              /dev/sdb1 2048 2099199 1048576 83 Linux


              /dev/sdb2 2099200 2293759 97280 83 Linux <


              /dev/sdb3 2293760 2488319 97280 83 Linux


              /dev/sdb4 2488320 41943039 19727360 5 Extended


              /dev/sdb5 2490368 4587519 1048576 83 Linux



              Now, After create a 1GB logical partition above we can calculate the total number of logical partition under the extended partition.


              We know MBR supports 1 Sector space =512 bytes



              Difference between /dev/sdb5 and /dev/sdb4 Starting Sector Values has follows 2490368-2488320=2048


              2048 is the difference value which is a Reserved Space in Extended Partition to store the information of logical partitions under it.


              If we multiply 2048 with 512 bytes then total bytes present in Extended partitions to support Logical partitions i.e. 2048*512=1048576 bytes



              In MBR, the total size of 64 bytes is used to store the partition information in the partition table. It means partition table stores each partition information in it which has each partition size of 16 bytes. Each partition can use the 16 bytes of space, so according to it, the total of 4 partitions are provided in MBR including extended. If we see the last partition size which is extended partition then they use 16 bytes of space.



              It means if we divide the 1048576 bytes to 16 we get a total number of logical partition under extended partition i.e. 1048576/16=65536(Maximum Logical Partition).



              We can use maximum 65536 total logical partitions under it. But the use of this partition depends upon OS to OS. In Linux, MBR uses maximum 60 logical partitions under the extended partition.




              So total number of partitions we can create under MBR is 3(primary),1(Extended),60(Logical)=64


              But only primary and logical partitions are used to feed the Linux data not extended partitions so it means only 63 partitions are useful to feed the data into the partitions.



              How we can say only 60 maximum partitions are created under MBR and not more than that?



              Just create the logical partitions as much as you can and when you create your 60th logical partition, the system shows this message


              Command (m for help): n


              All primary partitions are in use


              Adding logical partition 60


              First sector (23013477-41943039, default 23031808):


              Using default value 23031808


              Last sector, +sectors or +size{K,M,G} (23031808-24035327, default 24035327): +100

              Partition 60 of type Linux and of size 50.5 KiB is set



              Command (m for help): n

              The maximum number of partitions has been created






              share|improve this answer










              New contributor




              Ankit Garg is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.

























                0














                Partitions are totally depended upon Disk type format.


                If we use MBR Disk type in Linux then we can create 4 total partitions like:



                1) All four partitions are Primary only.


                2) Three partitions are primary and remaining 1 is extended.



                If we consider above 2 steps then under Extended partition we can create almost 65536 new logical partitions and use them but this logical partitions we can use have some limit and it depends upon OS to OS.



                How many partitions we can create under Extended partitions?


                Answer: Suppose you created the last partition in MBR as an extended partition and under it, we create a 1GB partition as a logical partition.



                Their structure as follows:



                [root@localhost ~]# fdisk -l /dev/sdb



                Disk /dev/sdb: 21.5 GB, 21474836480 bytes, 41943040 sectors


                Units = sectors of 1 * 512 = 512 bytes


                Sector size (logical/physical): 512 bytes / 512 bytes


                I/O size (minimum/optimal): 512 bytes / 512 bytes


                Disk label type: dos


                Disk identifier: 0x4bc89c19



                Device Boot Start End Blocks Id System


                /dev/sdb1 2048 2099199 1048576 83 Linux


                /dev/sdb2 2099200 2293759 97280 83 Linux


                /dev/sdb3 2293760 2488319 97280 83 Linux


                /dev/sdb4 2488320 41943039 19727360 5 Extended < br/>



                [root@localhost ~]# fdisk /dev/sdb


                Welcome to fdisk (util-linux 2.23.2).



                Changes will remain in memory only until you decide to write them.


                Be careful before using the write command.



                Command (m for help): n


                All primary partitions are in use


                Adding logical partition 5


                First sector (2490368-41943039, default 2490368):


                Using default value 2490368


                Last sector, +sectors or +size{K,M,G} (2490368-41943039, default 41943039): +1G


                Partition 5 of type Linux and of size 1 GiB is set



                Command (m for help): p



                Disk /dev/sdb: 21.5 GB, 21474836480 bytes, 41943040 sectors


                Units = sectors of 1 * 512 = 512 bytes


                Sector size (logical/physical): 512 bytes / 512 bytes


                I/O size (minimum/optimal): 512 bytes / 512 bytes


                Disk label type: dos


                Disk identifier: 0x4bc89c19



                Device Boot Start End Blocks Id System


                /dev/sdb1 2048 2099199 1048576 83 Linux


                /dev/sdb2 2099200 2293759 97280 83 Linux <


                /dev/sdb3 2293760 2488319 97280 83 Linux


                /dev/sdb4 2488320 41943039 19727360 5 Extended


                /dev/sdb5 2490368 4587519 1048576 83 Linux



                Now, After create a 1GB logical partition above we can calculate the total number of logical partition under the extended partition.


                We know MBR supports 1 Sector space =512 bytes



                Difference between /dev/sdb5 and /dev/sdb4 Starting Sector Values has follows 2490368-2488320=2048


                2048 is the difference value which is a Reserved Space in Extended Partition to store the information of logical partitions under it.


                If we multiply 2048 with 512 bytes then total bytes present in Extended partitions to support Logical partitions i.e. 2048*512=1048576 bytes



                In MBR, the total size of 64 bytes is used to store the partition information in the partition table. It means partition table stores each partition information in it which has each partition size of 16 bytes. Each partition can use the 16 bytes of space, so according to it, the total of 4 partitions are provided in MBR including extended. If we see the last partition size which is extended partition then they use 16 bytes of space.



                It means if we divide the 1048576 bytes to 16 we get a total number of logical partition under extended partition i.e. 1048576/16=65536(Maximum Logical Partition).



                We can use maximum 65536 total logical partitions under it. But the use of this partition depends upon OS to OS. In Linux, MBR uses maximum 60 logical partitions under the extended partition.




                So total number of partitions we can create under MBR is 3(primary),1(Extended),60(Logical)=64


                But only primary and logical partitions are used to feed the Linux data not extended partitions so it means only 63 partitions are useful to feed the data into the partitions.



                How we can say only 60 maximum partitions are created under MBR and not more than that?



                Just create the logical partitions as much as you can and when you create your 60th logical partition, the system shows this message


                Command (m for help): n


                All primary partitions are in use


                Adding logical partition 60


                First sector (23013477-41943039, default 23031808):


                Using default value 23031808


                Last sector, +sectors or +size{K,M,G} (23031808-24035327, default 24035327): +100

                Partition 60 of type Linux and of size 50.5 KiB is set



                Command (m for help): n

                The maximum number of partitions has been created






                share|improve this answer










                New contributor




                Ankit Garg is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.























                  0












                  0








                  0







                  Partitions are totally depended upon Disk type format.


                  If we use MBR Disk type in Linux then we can create 4 total partitions like:



                  1) All four partitions are Primary only.


                  2) Three partitions are primary and remaining 1 is extended.



                  If we consider above 2 steps then under Extended partition we can create almost 65536 new logical partitions and use them but this logical partitions we can use have some limit and it depends upon OS to OS.



                  How many partitions we can create under Extended partitions?


                  Answer: Suppose you created the last partition in MBR as an extended partition and under it, we create a 1GB partition as a logical partition.



                  Their structure as follows:



                  [root@localhost ~]# fdisk -l /dev/sdb



                  Disk /dev/sdb: 21.5 GB, 21474836480 bytes, 41943040 sectors


                  Units = sectors of 1 * 512 = 512 bytes


                  Sector size (logical/physical): 512 bytes / 512 bytes


                  I/O size (minimum/optimal): 512 bytes / 512 bytes


                  Disk label type: dos


                  Disk identifier: 0x4bc89c19



                  Device Boot Start End Blocks Id System


                  /dev/sdb1 2048 2099199 1048576 83 Linux


                  /dev/sdb2 2099200 2293759 97280 83 Linux


                  /dev/sdb3 2293760 2488319 97280 83 Linux


                  /dev/sdb4 2488320 41943039 19727360 5 Extended < br/>



                  [root@localhost ~]# fdisk /dev/sdb


                  Welcome to fdisk (util-linux 2.23.2).



                  Changes will remain in memory only until you decide to write them.


                  Be careful before using the write command.



                  Command (m for help): n


                  All primary partitions are in use


                  Adding logical partition 5


                  First sector (2490368-41943039, default 2490368):


                  Using default value 2490368


                  Last sector, +sectors or +size{K,M,G} (2490368-41943039, default 41943039): +1G


                  Partition 5 of type Linux and of size 1 GiB is set



                  Command (m for help): p



                  Disk /dev/sdb: 21.5 GB, 21474836480 bytes, 41943040 sectors


                  Units = sectors of 1 * 512 = 512 bytes


                  Sector size (logical/physical): 512 bytes / 512 bytes


                  I/O size (minimum/optimal): 512 bytes / 512 bytes


                  Disk label type: dos


                  Disk identifier: 0x4bc89c19



                  Device Boot Start End Blocks Id System


                  /dev/sdb1 2048 2099199 1048576 83 Linux


                  /dev/sdb2 2099200 2293759 97280 83 Linux <


                  /dev/sdb3 2293760 2488319 97280 83 Linux


                  /dev/sdb4 2488320 41943039 19727360 5 Extended


                  /dev/sdb5 2490368 4587519 1048576 83 Linux



                  Now, After create a 1GB logical partition above we can calculate the total number of logical partition under the extended partition.


                  We know MBR supports 1 Sector space =512 bytes



                  Difference between /dev/sdb5 and /dev/sdb4 Starting Sector Values has follows 2490368-2488320=2048


                  2048 is the difference value which is a Reserved Space in Extended Partition to store the information of logical partitions under it.


                  If we multiply 2048 with 512 bytes then total bytes present in Extended partitions to support Logical partitions i.e. 2048*512=1048576 bytes



                  In MBR, the total size of 64 bytes is used to store the partition information in the partition table. It means partition table stores each partition information in it which has each partition size of 16 bytes. Each partition can use the 16 bytes of space, so according to it, the total of 4 partitions are provided in MBR including extended. If we see the last partition size which is extended partition then they use 16 bytes of space.



                  It means if we divide the 1048576 bytes to 16 we get a total number of logical partition under extended partition i.e. 1048576/16=65536(Maximum Logical Partition).



                  We can use maximum 65536 total logical partitions under it. But the use of this partition depends upon OS to OS. In Linux, MBR uses maximum 60 logical partitions under the extended partition.




                  So total number of partitions we can create under MBR is 3(primary),1(Extended),60(Logical)=64


                  But only primary and logical partitions are used to feed the Linux data not extended partitions so it means only 63 partitions are useful to feed the data into the partitions.



                  How we can say only 60 maximum partitions are created under MBR and not more than that?



                  Just create the logical partitions as much as you can and when you create your 60th logical partition, the system shows this message


                  Command (m for help): n


                  All primary partitions are in use


                  Adding logical partition 60


                  First sector (23013477-41943039, default 23031808):


                  Using default value 23031808


                  Last sector, +sectors or +size{K,M,G} (23031808-24035327, default 24035327): +100

                  Partition 60 of type Linux and of size 50.5 KiB is set



                  Command (m for help): n

                  The maximum number of partitions has been created






                  share|improve this answer










                  New contributor




                  Ankit Garg is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.










                  Partitions are totally depended upon Disk type format.


                  If we use MBR Disk type in Linux then we can create 4 total partitions like:



                  1) All four partitions are Primary only.


                  2) Three partitions are primary and remaining 1 is extended.



                  If we consider above 2 steps then under Extended partition we can create almost 65536 new logical partitions and use them but this logical partitions we can use have some limit and it depends upon OS to OS.



                  How many partitions we can create under Extended partitions?


                  Answer: Suppose you created the last partition in MBR as an extended partition and under it, we create a 1GB partition as a logical partition.



                  Their structure as follows:



                  [root@localhost ~]# fdisk -l /dev/sdb



                  Disk /dev/sdb: 21.5 GB, 21474836480 bytes, 41943040 sectors


                  Units = sectors of 1 * 512 = 512 bytes


                  Sector size (logical/physical): 512 bytes / 512 bytes


                  I/O size (minimum/optimal): 512 bytes / 512 bytes


                  Disk label type: dos


                  Disk identifier: 0x4bc89c19



                  Device Boot Start End Blocks Id System


                  /dev/sdb1 2048 2099199 1048576 83 Linux


                  /dev/sdb2 2099200 2293759 97280 83 Linux


                  /dev/sdb3 2293760 2488319 97280 83 Linux


                  /dev/sdb4 2488320 41943039 19727360 5 Extended < br/>



                  [root@localhost ~]# fdisk /dev/sdb


                  Welcome to fdisk (util-linux 2.23.2).



                  Changes will remain in memory only until you decide to write them.


                  Be careful before using the write command.



                  Command (m for help): n


                  All primary partitions are in use


                  Adding logical partition 5


                  First sector (2490368-41943039, default 2490368):


                  Using default value 2490368


                  Last sector, +sectors or +size{K,M,G} (2490368-41943039, default 41943039): +1G


                  Partition 5 of type Linux and of size 1 GiB is set



                  Command (m for help): p



                  Disk /dev/sdb: 21.5 GB, 21474836480 bytes, 41943040 sectors


                  Units = sectors of 1 * 512 = 512 bytes


                  Sector size (logical/physical): 512 bytes / 512 bytes


                  I/O size (minimum/optimal): 512 bytes / 512 bytes


                  Disk label type: dos


                  Disk identifier: 0x4bc89c19



                  Device Boot Start End Blocks Id System


                  /dev/sdb1 2048 2099199 1048576 83 Linux


                  /dev/sdb2 2099200 2293759 97280 83 Linux <


                  /dev/sdb3 2293760 2488319 97280 83 Linux


                  /dev/sdb4 2488320 41943039 19727360 5 Extended


                  /dev/sdb5 2490368 4587519 1048576 83 Linux



                  Now, After create a 1GB logical partition above we can calculate the total number of logical partition under the extended partition.


                  We know MBR supports 1 Sector space =512 bytes



                  Difference between /dev/sdb5 and /dev/sdb4 Starting Sector Values has follows 2490368-2488320=2048


                  2048 is the difference value which is a Reserved Space in Extended Partition to store the information of logical partitions under it.


                  If we multiply 2048 with 512 bytes then total bytes present in Extended partitions to support Logical partitions i.e. 2048*512=1048576 bytes



                  In MBR, the total size of 64 bytes is used to store the partition information in the partition table. It means partition table stores each partition information in it which has each partition size of 16 bytes. Each partition can use the 16 bytes of space, so according to it, the total of 4 partitions are provided in MBR including extended. If we see the last partition size which is extended partition then they use 16 bytes of space.



                  It means if we divide the 1048576 bytes to 16 we get a total number of logical partition under extended partition i.e. 1048576/16=65536(Maximum Logical Partition).



                  We can use maximum 65536 total logical partitions under it. But the use of this partition depends upon OS to OS. In Linux, MBR uses maximum 60 logical partitions under the extended partition.




                  So total number of partitions we can create under MBR is 3(primary),1(Extended),60(Logical)=64


                  But only primary and logical partitions are used to feed the Linux data not extended partitions so it means only 63 partitions are useful to feed the data into the partitions.



                  How we can say only 60 maximum partitions are created under MBR and not more than that?



                  Just create the logical partitions as much as you can and when you create your 60th logical partition, the system shows this message


                  Command (m for help): n


                  All primary partitions are in use


                  Adding logical partition 60


                  First sector (23013477-41943039, default 23031808):


                  Using default value 23031808


                  Last sector, +sectors or +size{K,M,G} (23031808-24035327, default 24035327): +100

                  Partition 60 of type Linux and of size 50.5 KiB is set



                  Command (m for help): n

                  The maximum number of partitions has been created







                  share|improve this answer










                  New contributor




                  Ankit Garg is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  share|improve this answer



                  share|improve this answer








                  edited Jan 15 at 14:03





















                  New contributor




                  Ankit Garg is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  answered Jan 14 at 12:54









                  Ankit GargAnkit Garg

                  12




                  12




                  New contributor




                  Ankit Garg is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.





                  New contributor





                  Ankit Garg is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.






                  Ankit Garg is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Unix & Linux Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f5730%2fwhats-the-limit-on-the-no-of-partitions-i-can-have%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      How to make a Squid Proxy server?

                      Is this a new Fibonacci Identity?

                      19世紀