Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
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.
The logical drives within an extended partition are organized in a
kind of linked list and there could be a potentially unlimited
number of them if there were enough space on the disk to hold them.
Linux has to adresse devices through major and minor device numbers,
though. Major numbers select a driver, minor numbers are
interpreted by the driver. The major and minor number are limited to
8 bit each. The SCSI driver uses a few bits of the minor number to
select a SCSI device (4 bits needed due to 16 possible devs on wide
SCSI). The remaining bits can select partitions on a disk, so it is
16 partitions total per disk on SCSI, one reserved for /dev/sd?,
leaves you with 15 useable partitions altogether (4 of them
primary).
Is this still true?
On IDE hardware there can be only 4 devices, leaving 6 bits for
partition adressing, 63 of them useable (4 of them primary).
It's 4 primary partitions per IDE drive - however - the 4th primary partition can be made as an extended partition containing logical drives - that's were we get our larger number of partitions from.
Mike - according to the article from LinuxPlanet that I linked to before - the 16 partitions are arranged as
3 Primary - partitions 1-3
1 Extended - partition 4 - logical drives within partition 4 number 5-16
so your actually only really getting 15 partitions per drive namely 1-3 as primary and 5-16 as logical.
Skyline
I agree with you but was just tossing in some additional (useless?) info. Just commenting that the max number of logicals is a linux OS limit and not hardware.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.