I'm trying to get my head around disk partitioning before I approve any changes on my computer. Most distros offer automatic partitioning, which is nice, but I want to know what I'm actually looking at. I've seen so many different opinions online! Some people say I only need a `/boot` partition, while others say I should also have a `/boot/efi` partition. Then there's the debate over whether I should have a single large `/` partition or also have a separate `/home` partition. Can someone break this down for me like I'm 5?
5 Answers
I would highly recommend having a dedicated `/home` partition. If you ever need to reinstall your OS or in case the system drive fails, your data will remain safe on a separate drive. While a separate `/boot` isn’t strictly necessary unless using an encrypted system, `/boot/efi` is essential for UEFI systems. If you already have Windows, you can also use the existing partitions it created!
Check out this [resources page](http://www.reddit.com/r/linux4noobs/wiki/faq); it might have what you're looking for! You might also find more clarity by searching [here](https://www.reddit.com/r/linux4noobs/search?q=flair%3A'learning%2Fresearch'&sort=new&restrict_sr=on). Just remember—take regular backups, experiment in a virtual machine, and be sure to understand commands before hitting Enter!
Here’s a helpful link about the Linux directory structure: https://www.geeksforgeeks.org/linux-unix/linux-directory-structure/. You can create partitions for various directories based on your needs. This can help manage disk space efficiently, especially if you want to scale up or down using LVM (Logical Volume Manager). Keep in mind, every partition needs a filesystem, and too many partitions can lead to a bit of space loss due to filesystem metadata.
What you need really depends on your specific situation—there's no one-size-fits-all answer. Factors include your filesystem choice, motherboard (MBR or EFI), whether you want LVM, and if you're using multiple OSes or want to encrypt data. Having a separate `/home` can make things easier in some respects but more complicated in others. It’s a nuanced topic, so if there’s a specific case you’re confused about, don’t hesitate to ask!
There's no "right" way to partition your disk; it really comes down to personal preference. If you're unsure, let your distro handle it—it typically chooses reasonable defaults. The `/boot` partition is essential for your bootloader to read. It might need to be separate from the root partition in unique cases, and it should be big enough to hold kernel files. For UEFI systems, you’ll need a FAT32 `/boot/efi` partition, while BIOS doesn’t require this. Having `/home` on its own partition can be useful, especially if you want to encrypt it without encrypting the rest of the system, or if you want to manage space better. Personally, I use an ext4 for `/boot` and a btrfs for the root with a subvolume for `/home` to keep backups manageable.

You don't **need** a dedicated `/home` partition, though some find it useful. While it can be safer for a reinstall, you should always keep backups—if your home drive fails, you’ll still lose data. It's all about how you manage your backups!