Primary partition
Which partitions should be set as primary, /, /home, /tmp, /var, /boot or any other?
Thanks, Mike |
It doesn't matter.
Linux doesn't care whether any of its partitions are primary vs. logical. |
Well, I read that the /boot partition must be on a primary partition. Was this true at any point in time?
|
Quote:
|
Quote:
|
Sorry, brianL, but take a look at KahelOS Manual, page 10
1. Auto-Prepare. This option will erase the ENTIRE hard drive and skips options 2 and 3 because autoprepare will already partition your hard drive (Option 2) and set mounting points for your filesystem (Option 3). (a) Partitioning /boot. In Kahel OS, the default /boot partition is 32MB. You can enter other values then select OK to save it. Kahel is based on another modern Linux distro. |
Yeah, Arch (I think) recommends a separate /boot partition too in their installation manual, but a lot of distros don't bother.
|
Quote:
Markus |
Like I said before, it's optional, not necessary.
|
Quote:
Cheers, Tink |
/boot is optional until you delete the partition that has the boot-loader code. Then you decide it's kinda mandatory.
Lots of people seem to do it (the former) judging by threads here. FWIW I've always allocated one at the start of a disk since the bad old days when the BIOS (note BIOS, not bootloader) had the 1024 cylinder problem. Still do. |
Yeah, I admit it might be useful under certain circumstances, but it's not essential. Like having a separate /home partition may be useful, but not necessary.
|
Quote:
|
I think most distros recommend a separate /boot in a primary partition because it allows for an encrypted rootfs, or rootfs on LVM or RAID setups, and is organisationally just a tidy way to do things.
If you install the grub/lilo boot-manager code on the Master Boot Record (MBR), then I don't believe you need a primary at all, but if like me you prefer to leave the MBR as it is and put the Linux bootloader on a Partition Boot Record (PBR), then you'll need one primary partition which you can mark as bootable in the partition table. The standard bootcode in the MBR will find the partition that is marked as bootable and load the Linux bootloader code from that partition's PBR. It doesn't matter which filesystem is on that partition. From an organisational standpoint / or /boot are the most sensible choices, but it could just as easily hold /home (it just doesn't make a lot of sense to do so). I fall into the "keep the MBR standard, lilo or grub on a primary partition holding /boot, and everything else in an LVM partition" camp. P.S. I believe that OpenBSD's bootloader still has the 1023 cylinder limitation on it's loader code, so it probably still needs to be placed on the beginning of a disk. I've no idea about where Windows needs to be. |
if you had /boot and /lib/modules on separate partitions then you could share kernels between multiple distributions with separate / partitions, other then that /boot is only useful on older machines that have the 1024 cylinder limit
http://tldp.org/HOWTO/Large-Disk-HOWTO-4.html should explain it |
All times are GMT -5. The time now is 06:16 PM. |