Linux partitions and limitations


 
Thread Tools Search this Thread
Operating Systems Linux Linux partitions and limitations
# 1  
Old 05-16-2013
Linux Linux partitions and limitations

In recently reading an article on linux basics before I embark and my personal installation project I came across this passage -

IDE drives have three types of partition: primary, logical, and extended. The partition table is located in the master boot record (MBR) of a disk. The MBR is the first sector on the disk, so the partition table is not a very large part of it. This limits the number of primary partitions on a disk to four. When more than four partitions are required, as is often the case, one of the primary partitions must instead become an extended partition. An extended partition is a container for one or more logical partitions. In this way, you can have more than 4 partitions on a drive using the MBR layout.

The MBR layout also limits the maximum size of disk that is supported to approximately two terabytes. The newer GUID Partition Table (or GPT) layout solves this size limitation and also the rather small limitation on the number of partitions. A disk formatted using GPT layout supports up to 128 primary partitions by default and does not use extended or logical partitions. For more information on MBR internals and how the GUID Partition Table (GPT) works, see MBR, EBR, GPT and LVM internals.


So when doing the math it would seem that only a total of 8 partitions 4 primary and the rest extended are allowed on a hdd - is that still the case today with modern SATA hdds -Smilie
# 2  
Old 05-17-2013
I smell old Windows information. I believe almost any device can be formatted as one partition and mounted to LINUX. Physical partitions are just a pain. JFS is nice, where you can dole out space as needed. However, disk is very cheap now, so do not set yourself up for a life as a spoon feeder! Advanced virtual FS also support striping and RAID, so you can multiply your device speed.
# 3  
Old 05-17-2013
Quote:
Originally Posted by Synchlavier
So when doing the math it would seem that only a total of 8 partitions 4 primary and the rest extended are allowed on a hdd - is that still the case today with modern SATA hdds -Smilie
First off, it's got nothing to do with SATA or any other kind of controller. All a disk controller does is give you block #972983 when you ask for block #972983, and who cares what it means.

This is how Microsoft partitions work... Linux supports many different partition schemes, not just these, but most PC distributions use these because they tend to be installed alongside Windows on consumer PC's. That, and most consumer PC disk software expects this kind of partition table and won't be able to handle other kinds.

But you're slightly confused. Each of the 4 base partitions can be a primary partition or an extended partition, so you couldn't have 4 primary and one extended. You could have 1 primary ( to boot from ) and 3 extended, each of which can have 4 partitions inside them.

Last edited by Corona688; 05-17-2013 at 04:32 PM..
# 4  
Old 05-17-2013
An extended partition can have any number of logical partitions inside it, as logical partitions are just a chain of one partition and a pointer to the next. Not too efficient, though...
If you can afford it, use GPT and/or virtual FS.
# 5  
Old 05-17-2013
Quote:
Originally Posted by Corona688
But you're slightly confused. Each of the 4 base partitions can be a primary partition or an extended partition, so you couldn't have 4 primary and one extended. You could have 1 primary ( to boot from ) and 3 extended, each of which can have 4 partitions inside them.
A disk may have *only* one extended partition.

You could have 1 primary and up to 4, or 3 primary and 1 extended, or a single extended partition.

An extended partition can also have any number of logical partitions, not just 4. It's not infinite but last time I checked it was limited to something like ~60 for IDE drives and ~250 for SCSI drives assuming there are enough reserved major numbers.

A logical partition can be used as a boot partition too, as long as it's not part of any LVM.
# 6  
Old 05-17-2013
Thanks guys - @verdepollo please correct me if I'm wrong I believe 4 primary and one extended partition are allowed - the maximum number of allowable logical partitions on an extended partition is 32 - however can the logical partitions be used for Linux distributions ?
# 7  
Old 05-17-2013
Quote:
I believe 4 primary and one extended partition are allowed
No, that'd be 5 partitions in total which is not possible.

Quote:
the maximum number of allowable logical partitions on an extended partition is 32
No, unless you're using a prehistoric kernel.

Seems I was wrong about the ~250 limit though: SCSI disk limitations

Quote:
can the logical partitions be used for Linux distributions ?
I have no idea what you're asking.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Limitations of 'pdftotext' in Linux...

Guys: I have a customer using the 'pdftotext' utility under Linux. PDFs are received via email, converted to text, etc. and it has worked nicely for years. They received a PDF from a customer and the utility will not read it. The text file is created but it's either empty or has 1-2 bytes of... (23 Replies)
Discussion started by: kenlenard
23 Replies

2. UNIX for Beginners Questions & Answers

How to check used space for each partitions in Linux?

we are using Disk utilization and filesystem utilization seperately. In AIX using $lsvg rootvg datavg $lspv hdisk1 PHYSICAL VOLUME: hdisk1 VOLUME GROUP: datavg PV IDENTIFIER: 00f65eab7acabb17 VG IDENTIFIER 00f65eab00004c00000001567b60a848 PV STATE: ... (3 Replies)
Discussion started by: freeaac
3 Replies

3. UNIX for Dummies Questions & Answers

Help needed to understand partitions in linux

Hi guys, It has been more than 2 month i switched to linux but i m still very much confused how linux handles and names the partitions. I have gone through couple of beginners material and found linux doesnt treat partitions as c: and d: instead it uses /dev/hda1 /dev/hda2 hda3 .But now i... (7 Replies)
Discussion started by: pinga123
7 Replies

4. Linux

What is the minimum number of partitions you need to install Linux?

I think its 3. Just to know if I am correct. / /boot swap :confused: (2 Replies)
Discussion started by: nitin09
2 Replies

5. Red Hat

Limitations on the partition of linux

Hi, I need a documentation about limitations on the linux partition. On how many primary and extended I could create. And also on different type of storage, how many big capacity I can create. Thanks. (3 Replies)
Discussion started by: itik
3 Replies

6. UNIX and Linux Applications

gnuplot limitations

I'm running a simulation (programmed in C) which makes calls to gnuplot periodically to plot data I have stored. First I open a pipe to gnuplot and set it to multiplot: FILE * pipe = popen("gnuplot", "w"); fprintf(pipe, "set multiplot\n"); fflush(pipe); (this pipe stays open until the... (0 Replies)
Discussion started by: sedavidw
0 Replies

7. Linux

grub error 22,after removing linux partitions only windows is threre.Pc not booting.i

hi, in my pc linux and windows was there with 2 hdd in raid.i removed linux partititons.Now my ps is not booting giving grub error 22.Nothing works.I hace my data in windows.Hard disks are RAID.when tried to go to recovery mode from windoes boot cd,it says hard disk not detected.when tried with... (2 Replies)
Discussion started by: pankajd
2 Replies

8. UNIX for Dummies Questions & Answers

Password limitations.

I would like to set my minimum password length to on Linux and AIX. However, doing this normally would only make it so newly added users will be affected by this. I would like for when I make this change, it either truncates everyone elses password, or prompts them to change it to 8+ characters.... (2 Replies)
Discussion started by: syndex
2 Replies

9. Linux

File Sharing among NTFS Partition & RH Linux 9 Partitions

Well Guys, will anybody solve my problem? I have installed Win XP and RH Linux 9 (Dual Boot) on an Intel x86 Machine. Everything is going fine except that I cannot share files among the two operating systems. For example, if I download a PDF file from internet and save it in my Win XP partition... (1 Reply)
Discussion started by: Jawwad
1 Replies

10. UNIX for Dummies Questions & Answers

mkdir limitations

What characters can't be used with a mkdir? Any limits on length of name? Thank you, Randy M. Zeitman http://www.StoneRoseDesign.com (12 Replies)
Discussion started by: flignar
12 Replies
Login or Register to Ask a Question