Installing ubuntu do I really need a boot partition?
In general, you can just use one partition for everything. Historically, many systems used different partitions for different parts of the system, but this is no longer necessary.
There are still some special situations where you need more than one partition:
You need a separate /boot partition if you want to use full disk encryption (e.g. LUKS or Truecrypt), because you need something to boot from :-).
If you dual-boot and want to be able to read files from both systems, they'll need to be on a filesystem that both systems can read. So it might make sense to have e.g. a multimedia partition with NTFS or VFAT if you dual-boot Linux and Windows, so both can use the files.
If you use full disk encryption, there is a noticeable overhead for reading and writing very large files (e.g. videos). You might want to have a separate unencrypted partition for those.
If you plan on re-partitioning or installing other OS from time to time, it's easier if you have a
/boot
at the beginning of the disk as number one (e.g./dev/sda1
) so as to avoid breaking grub.
There are also some obsolete reasons. You may read about them in old documentation, but they no longer apply to current systems:
On some old hardware a boot partition is necessary because of BIOS limitations (e.g. unable to boot from a partition beyound 1024 cylinders). I believe this only applies to very old systems however (more than ~5-10 years old).
On old Linux versions (V2.2, maybe 2.4) a swap partition was faster than a swap file, so having a swap partition was advisable. On Linux 2.6, both should give equivalent performance ( http://lkml.org/lkml/2005/7/7/326 ).
There is no need to create a boot partition. Everything can go on one partition without causing any problems.
Even swap can be on the single partition (in the form of a swap file); swap files used to be somewhat slower than swap partitions, but as of Linux kernel 2.6, they have the same performance as a swap partition (also see the question swap partition vs file for performance? on serverfault.com).
Advice about creating multiple partitions has nothing to do with the BIOS finding them (which is bogus). It's about such things as sharing a single /home/yourname partition between multiple operating systems, and making certain types of backups easier. For most users a single partition is the easiest to set up and works fine.
It's a choice. You might, or you might not. I typically do. Besides swap, I typically create 3 partitions:
- /boot - typically 60MB or so. More for fedora, or if I plan to experiment / have several kernels installed
- / - 7 or 8 GB to hold everything else that's not /home
- /home - the rest of my disk.
The main reason I split to out like this is to give me as many options as possible during recovery and backup situations. If things never go wrong, 1 big partition will work and you may never have to care.
Maybe I'm just old and paranoid ;-)
If you are concerned about security, after installation, you can set your boot partition to be read only. This prevents anyone (even you) from writing anything to your kernel. While fairly secure, it does mean that when those old Kernel updates show up in your update window, they will fail to install until you make your boot partition writable, reboot, then install them. I have done this on my daughters laptop, just as an added layer against anything tampering with her kernel - she can install software, but to mod her kernel, she has to ask me for help. It give me a chance to verify this is something that really should be installed to begin with.