1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Primary vs. Extended Partitions

Discussion in 'PC hardware help' started by funky01, May 20, 2012.

  1. funky01

    funky01 Member

    Joined:
    Jun 9, 2006
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    11
    What is the difference between a Primary and Extended Partition? What is the rational of having an Extended Partition? What I am getting at is why just with stick with Primary. If Primary can do the job, why do you need Extended?
     
  2. Ripper

    Ripper Active member

    Joined:
    Feb 20, 2006
    Messages:
    4,697
    Likes Received:
    13
    Trophy Points:
    68
    Be advised this is a very basic answer (and I'm sure other members will have more to add).

    Primary partitions are used to boot an OS from - there's a limit to how many of these you can have (I think 4), and you typically only have one.

    You can only have one extended partition and within it you can have as many logical drives as there are letters to assign (limited of course by available disk space).

    It can be a whole lot more complicated than that, but hopefully you get the idea.
     
    Last edited: May 20, 2012
  3. ddp

    ddp Moderator Staff Member

    Joined:
    Oct 15, 2004
    Messages:
    39,158
    Likes Received:
    134
    Trophy Points:
    143
    also depends on the file format as dos used fat16 which can only read a drive upto 2.1 gigs & if your drive was bigger then that then you will have a primary partition plus a # of extended partitions till drive is used up.
     
  4. funky01

    funky01 Member

    Joined:
    Jun 9, 2006
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    11
    So with the extended partition, it makes your hard drive looks bigger to the OS in terms of storage?
     
    Last edited: May 21, 2012
  5. ddp

    ddp Moderator Staff Member

    Joined:
    Oct 15, 2004
    Messages:
    39,158
    Likes Received:
    134
    Trophy Points:
    143
    in a way yes but no at the same time. windows sees the partition(s)if they are not hidden but will not use them unless you tell it to to install a program on that partition instead of on c:drive. all the computers with windows preloaded have partitioned drives with some hidden & some not which is the recovery partition to reload windows.
     
  6. JST1946

    JST1946 Regular member

    Joined:
    Jul 15, 2011
    Messages:
    879
    Likes Received:
    2
    Trophy Points:
    26
  7. funky01

    funky01 Member

    Joined:
    Jun 9, 2006
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    11
    But if the primary partition is saturated with data, will the extended partition come in & compliment the primary partition, or will the OS will report a not enough space error to the user?
     
  8. Ripper

    Ripper Active member

    Joined:
    Feb 20, 2006
    Messages:
    4,697
    Likes Received:
    13
    Trophy Points:
    68
    I think you're correct. But if you were partitioning your drive in this way then it would probably be to separate content such as media and programs from the system files on the main primary partition? So running out of space would be unlikely unless you didn't allow enough space for the system on your primary partition.
     
  9. funky01

    funky01 Member

    Joined:
    Jun 9, 2006
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    11
     
  10. ddp

    ddp Moderator Staff Member

    Joined:
    Oct 15, 2004
    Messages:
    39,158
    Likes Received:
    134
    Trophy Points:
    143
    no as windows will report that the c:drive is getting full so clean some room. remember windows & other os programs are not smart like an AI(artificial intelligance) so thy can only go by their program & we know windows has issues.
     
  11. funky01

    funky01 Member

    Joined:
    Jun 9, 2006
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    11
    So having an extended partition is just like having another physical harddrive? When you partition, why just go like for example, NTFS, then your other partition should be NTFS, instead of NTFS and then extended? If extended is not use to compliment a saturated primary partition, then what is the point of having an extended partition. I know that the primary has only 4 tables and the first table is used to boot up the OS (Master Boot Record), but instead of having naming the other partition extended, just name it NTFS, FAT 32, or ext2 or ext3? There is no point in having an extended partition, I think.
     
    Last edited: May 21, 2012
  12. Ripper

    Ripper Active member

    Joined:
    Feb 20, 2006
    Messages:
    4,697
    Likes Received:
    13
    Trophy Points:
    68
    Yes, and then it can be split in to more logical drives (effectively - they will be seen by Windows as other hard drives, e.g. G: H: J: etc).

    I'm not sure why you're mentioning filesystem types, that's a separate topic surely.

    An extended partition counts as one of your four primary partitions, but has the ability to be split in to logical drives.

    So, for example, say you want separate logical drives for data, programs, music, pictures, videos etc - you already have more than 4 possible partitions there, so they could not all be primary partitions and thus requires you to use an extended partition.
     
    Last edited: May 21, 2012
  13. ddp

    ddp Moderator Staff Member

    Joined:
    Oct 15, 2004
    Messages:
    39,158
    Likes Received:
    134
    Trophy Points:
    143
    1 of the reasons to partition a big drive into 2 is that if windows gets screwed up or whatever, you can reload windows on that partition without having to do the whole drive. any hard drive in a new namebrand computer will be partition into 2 or even 3 partitions with the recovery partition as fat32 with the others as ntfs.
     
  14. funky01

    funky01 Member

    Joined:
    Jun 9, 2006
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    11
     
    Last edited: May 22, 2012
  15. Ripper

    Ripper Active member

    Joined:
    Feb 20, 2006
    Messages:
    4,697
    Likes Received:
    13
    Trophy Points:
    68
    So, did the last two replies help your understanding?
     
  16. funky01

    funky01 Member

    Joined:
    Jun 9, 2006
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    11
    So how about the Linux side? How do partitioning works on the Linux side? The same way on the DOS side?

    Here is a peice of an example of how my hard drive looks like.

    Device Boot Start End Blocks Id System
    /dev/sda1 * 2048 23070719 11534336 12 Compaq diagnostics
    /dev/sda2 23072766 312580095 144753665 5 Extended
    /dev/sda5 23072768 26976255 1951744 83 Linux
    /dev/sda6 26978304 42600447 7811072 82 Linux swap / Solaris
    /dev/sda7 42602496 312580095 134988800 83 Linux

    Can someone explain this,especially /dev/sda2? I have Ubuntu verison 12.04 LTS
     
  17. Ripper

    Ripper Active member

    Joined:
    Feb 20, 2006
    Messages:
    4,697
    Likes Received:
    13
    Trophy Points:
    68
    I know very little about the proper workings of Linux filesystems, but below are a few basics off the top of my head..

    'sda' refers to the main HDD. If you had another drive mounted, it would be 'sdb', and so on. The number refers to an individual partition on that drive. Numbers 1 to 4 are reserved for primary partitions (whether or not they exist) and logical drives start at 5.

    Your partition sda2 is apparently an extended partition, which would make sense as it is the largest. Linux makes use of logical drives within an extended partition for things like /home and /tmp.

    Linux also has something called a 'swap partition' (in your example sda6) which is virtual memory. It's essentially the same thing as the page file in Windows.

    I suggest you Google for more information on this topic though, it's a lot more complex.

    Edit:

    So, to clarify, you have two primary partitions - sda1 and sda2. sda5, sda6 and sda7 are logical drives contained within your extended partition sda2. To the best of my knowledge anyway.
     
    Last edited: May 21, 2012
  18. scorpNZ

    scorpNZ Active member

    Joined:
    Mar 23, 2005
    Messages:
    4,264
    Likes Received:
    63
    Trophy Points:
    78
    The link will give a decent understanding of why extended is required & what it actually is,turns out it's nothing more than a link to the space that comes after it is the way i read it,i'm still pondering what the issue is

    http://pcguide.com/ref/hdd/file/structPartitions-c.html
     
  19. funky01

    funky01 Member

    Joined:
    Jun 9, 2006
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    11
    I already read this link. I found it to be very educational. Especially one pararagraph that implies that all logical drives link themselves up with the primary drive like a chain. Each logical drive pointing itself to the the primary drive. It also says that you can have up to 24 partition in partition in a single system.

    I am beginning to understand the concept of logical vs primary in the terms of DOS where primary is where the OS resides, and the extended is just use for storage of miscellaneous items like media files, docs, or applications. Since an OS is not an AI, it only do what the user wants it to do.So basically you have to tell the OS to store your items in the logical section of the drive.
     
  20. funky01

    funky01 Member

    Joined:
    Jun 9, 2006
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    11
    In the terms of Linux, what I am getting from you Ripper is that the OS uses sda2 to write it's files like /home, /proc, /usr, /tmp, /bin, and etc.This means that any application that is new, Linux would write it in sda2 in one of the following files.

    I like this method because it sound like Linux would take the initative to write in that sector instead you tell it where to write. It sounds like Linux does a lot of activity in sda2.
     

Share This Page