Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Hello, Everybody,
I'd just like to know the max number of logical partitions an extended partition can hold. Is that number different for IDE and SCSI hard drives? Thank you so much!
Last time I checked it was 64 device nodes per disk for regular drives, and 16 for scsi, leaving out the node for the device itself, that's 63 partitions for ide and 15 for scsi, 1-4 are reserved for primary partitions regardless if they exist or not (or extended, which is the same), the rest for logical drives.
This is entirely OS dependent however. There's nothing in the hardware stopping you from defining 400 partitions.
By "regular" I assume you mean IDE. This was certainly true prior to the libata change - after that even IDE became (software) constrained to 15 as well.
There was some (plenty) of grumbling about this at the time - there was mutterings from the kernel devs to "fix" this, but I've never bother checking if it came to pass.
Yes. I meant IDE (the old IDE). All the SATA drives, just like USB and most storage devices nowadays go though SCSI, even the IDE drives go now through the SATA/PATA interface, so nowadays that would be 15, unless you are using the old IDE drivers. But, as you, it's been long since I checked. So there's the slight chance that this have changed since then.
It doesn't really bothers me, 15 partitions in a single disk are way above my requirements, I'd rather spend bucks in another drive.
Thank you for your responses! Please excuse my ignorance, but I have one more question. Would the naming scheme for an IDE partition table be as followed (to follow up on what rayfordj said above)? Thank you again!
BING (Boot It NG), an excellent boot and partition manager has the ability to create "more than 200" (= 256?) primaries. I have no connection with the company except that I used to use BING extensively.
BING (Boot It NG), an excellent boot and partition manager has the ability to create "more than 200" (= 256?) primaries. I have no connection with the company except that I used to use BING extensively.
More than four primaries is simply impossible if you want to retain MBR compatibility, which is what most OSes use and understand. There simply isn't any more space into the MBR to reference more than four partitions (64 bytes, from 446 to 510).
The rest of partitions are defined into secondary boot records, that's the way to have more than four partitions without screwing the mbr standard.
I am not familiar with that program, but if it does indeed create 200 primary partitions, then there's no way that it can be compatible with the 512 bytes mbr model that most OSes use nowadays.
If you meant 200 partitions that are not necessarily primary then it's ok. You can have as many logical partitions as you need. As said, the above limits are completely arbitrary and OS dependant, Technically nothing stops you from having 200 logical drives.
Not every partitioning tool in Linux can cope with it!
As far as I know there is no limit in the kernel or the boot loaders. The limit depends on what the partitioning tool can come up with. So far I have found
fdisk - will not display beyond 60 partitions
cfdisk - maximum 63 partitions
sfdisk - can do 130 partitions
gparted - beyond 130 partitions.
Another link with additional information.
--------------------------------------------------------------
On the argument of 256 primary partition I believe this is just a proprietary software written as a management layer between the OS and the Bios. Don't think it is compatible with all the PC systems. I believe it works as specialised boot loader by arranging the partition table in a non-standard way that only that proprietary software can read/write.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.