Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
This is not a linux limitation, windows for example also runs into this.
Quote:
A maximum of four partitions can be placed on any hard disk. These are sometimes called primary partitions. The limitation of four is one that is imposed on the system by the way that the master boot record is structured.
I'm not sure if you know this but you can use more then 4 partitions. Using one of the primary partitions as a container, you can create multiple extended logical partitions.
Hope this helps.
Last edited by druuna; 08-22-2011 at 06:42 AM.
Reason: See post #4
This limitation may be ending soon. I believe GPT, which will be in Fedora 16, supports more than 4 primary partitions. (Though if dual booting with Windows, you may still be limited).
The partition table starts at offset 0x01be. There are four entries, each 16 bytes long.
The first entry, partition 1, is at 0x01be and contains 80202100fddf130c0008000000200300, which decodes to "/dev/sda1 * 2048 206847 102400 fd Linux raid autodetect" in the 'fdisk' output.
The second partition is at 0x01ce and contains 00df140cfdfeffff002803003053a5ae, which decodes to "/dev/sda2 206848 2930277167 1465035160 fd Linux raid autodetect" in the 'fdisk' output.
The third and fourth entries at 0x01de and 0x01ee are empty. At the end (0x01fe) is the signature for an MSDOS disk, "55aa".
If a partition has a type of "extended", it can contain a number of logical partitions that are "chained together". A long, long time ago (in Linux), you could have up to 64 logical partitions in an extended primary partition. That was incompatible with Windows, and overkill. I believe that number has been reduced and now you have 4 primary partitions 1 through 4 (as always); and 11 logical partitions, 5 through 15.
Simple enuff, beyond 4 partitions you are expected to use LVM. One use is make 1 primary 2 extended then the last LVM. Then you can make a TON more partitions via LVM. But really, in a linux partition generally its better practice to make 1 primary for /boot then the rest LVM.
Well, not really expected. There are many people that do not like LVM. And there are some distros that make it inconvenient for you to use LVM. But I think it's now pretty mature and it works well. It makes it very easy to do drive replacements and filesystem resizing. Something that is difficult to do if your filesystems are placed directly on a partition. Plus the ability to make instantaneous snap copies for backup has obvious advantages.
LVM is not magic, though. The lowest level "entity" of LVM, the Physical Volume normally lives on a disk partition (either primary or logical) (It can use a full disk volume that is not partitioned, but that's not considered a good idea in a Windows/Linux dual boot environment. And you can't do that for your boot disk, either...)
Quote:
But really, in a linux partition generally its better practice to make 1 primary for /boot then the rest LVM.
It's a matter of preference. What works best for you is the best.
On my Fedora systems, I have two primary partitions. The first is 100MB for the /boot filesystem; the second has the rest of the space, and is an LVM Physical Volume that gets "sliced up" into a / (root), /home, /var, /opt, swap and other Logical Volumes.
On my little Ubuntu HP Mini netbook, there is no LVM at install time, so three primary partitions: /boot, /, and swap. No need for an extended partition with logicals in it. Simple and somewhat immutable.
As I said, it's a matter of preference and what works best.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.