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.
The MBR model limits you to 4 primary partitions, one of which might be of the special type "extended", inside that you can create as many logical units are you want, limited only by your OS capabilities.
I have no idea of the current state of other OSes, but linux can be installed in any kind of drive, it doesn't need to be a primary partition (to tell the truth, it doesn't even need to be a partition, you could use a raw drive to install it, just format let's say hda instead of hda1).
In plain English, you can install as many linuxes as you want, as long as it's a partition number that linux can handle and your bootloader can see. You will have to attend to the limitations of other OSes though, if any.
As said, you can install linux in whatever type of partition. That includes raw (non-partitioned) drives, primary partitions, and logical drives/partitions, so don't worry about that. You can even put it file systems inside of a file, just like most live distros do nowadays with squashfs images.
What @i92guboj states is true in the strictest sense, however there are limitations imposed for the "normal" user.
It is not unknown for Linux distro installers (the software) to insist on a primary partition - inane but true. Anaconda was a prime example.
Then there is (or was) a SCSI limitation of 15 partitions that the adoption of libata exposed (E)IDE disks to.
.. The above is what I most often use.
And I have never seen a Linux not working on a logical.
Anaconda : I have at least 9 Fedora's, CentOS, Scientific
on logical's
.....
you can although it's probably best not to, why would you wish to run four seperate linux based systems on a single machine, I can understand running solaris, windows, bsd and linux to test which is the best however Linux itself is just a different set of packages with each release around a kernel with common design features It would be like having windows 98, ME, 2000, XP and vista installed on one PC.
Another (somewhat) limiting factor is which bootloader you will be using. Don't quote me on the number, but LILO will IIRC boot a max of something like 24 or 28 OS's, while for GRUB the limit (if there is one) is much higher. There are several other bootloaders (including loadlin and ntloader) but I'm not familiar with them enough to comment. Also, the newest LILO may have a higher limit too.
Either way, those mentioned will boot many more OS's than is practical for any normal machine/user, but *everything* has its limit somewhere.
What @i92guboj states is true in the strictest sense, however there are limitations imposed for the "normal" user.
It is not unknown for Linux distro installers (the software) to insist on a primary partition - inane but true. Anaconda was a prime example.
Thanks for pointing that out. Being on the Gentoo universe one sometimes forget how silly these installation wizards can be. I guess that's true, however as you very well point out, it's stupidity on the installer side. All the linux distros can -technically speaking- be installed on logical drives without any problem. The only problem is that circumventing a stupid install wizard might not be that trivial to the average user though, or even the experimented one.
Quote:
Then there is (or was) a SCSI limitation of 15 partitions that the adoption of libata exposed (E)IDE disks to.
Yes, I was aware of that, though I don't know what the current situation is. I was thinking on this exactly when I said above that the only limit on the partitions you can use is imposed by your OS.
The MBR standard itself, doesn't impose any limit on the number of logical partitions you can create inside an extended one. The way it's implemented certainly doesn't impose any limit. Whoever is interested in the details can read on EBR's (extended boot records).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.