LinuxQuestions.org
Visit Jeremy's Blog.
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 06-04-2005, 04:03 PM   #1
lyonsd
Member
 
Registered: Mar 2004
Location: Flowery Branch, GA
Distribution: FC3, FreeBSD 5.3, Solaris 10
Posts: 43

Rep: Reputation: 15
Can you have more than 4 primary partitions?


Is it possible to have more than 4 primary partitions on a disk? If so, how do you create them? Using fdisk, it seems I'm limited to 4.

Thanks.
 
Old 06-04-2005, 04:06 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
nope, just 4. and of course that means you can't have an extended partition. i think that technically it's all DOS's fault... you can happily run an entire linux distro in an extended partition though, no primary needed at all.
 
Old 06-04-2005, 04:06 PM   #3
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,991

Rep: Reputation: 76
No; this is a limitation of the partitioning method.

The only way to have more than four partitions is to create one primary partition as a secondary partition; you can then create as many extended partitions as you like within that.

Under linux, extended partitions and primary partitions are treated exactly the same, except that secondary partitions have numbers greater than 4.
 
Old 06-06-2005, 12:08 AM   #4
junaid18183
Member
 
Registered: Mar 2005
Location: India
Distribution: RedHat 9.0 and EL
Posts: 31

Rep: Reputation: 15
HI lyonsd,
Quote:
Is it possible to have more than 4 primary partitions on a disk
NO Chance!

And to overcome it make three partitions as a primary and one as extended and in this extended create as many logical partition you want
Code:
Under linux, extended partitions and primary partitions are treated exactly the same
Really thankful to linux for this modification over windows,but technically it is recommanded that you have the /boot partition on the primary,not comulsory but recommnaded.
Quote:
except that secondary partitions have numbers greater than 4.
Correction :except that secondary partitions may have numbers greater than 4.



NOW the most imprtant is why only four partitions:

See your primary partions info is always located in the MBR(always),along with the BOOTLOADER ok,it is in the format of a table like

--partition no-- start-- end--

and you know the MBR (generally first Sector of your hard disk is of size 512 bytes.)

So technically there is only space of 4 entries in the partition table in the MBR and hence only you have the limit of 4 primary partions.

Now the partition table for the extended partions is always located on the hard disk before starting location of extended partition (hence no limit of size).

I think I am clear enough


Thanks and Regards
Junaid
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Not enough primary partitions for multiboot artificialGekko Linux - General 2 04-26-2005 10:34 AM
Only 4 primary partitions in one disk? zhanmei Linux - Software 9 09-16-2004 06:18 AM
four primary partitions? linuxtesting2 General 6 05-04-2004 10:17 AM
Primary and Extended Partitions Flossie Linux - Newbie 2 03-16-2004 12:25 PM
Primary and Extended Partitions batman Linux - Software 1 10-18-2000 01:17 PM

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

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