this post was submitted on 07 Dec 2023
227 points (96.3% liked)
Linux
48310 readers
645 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
related question, although i don't think it's big enough for a post of its own.
if i use btrfs subvolumes, does it mean that i can have one EFI partition and one root partition, and then subdivide the root partition using subvolumes? how would that work during the installation process? or is it done after installation?
One EFI + one ROOT partition is what I do on both my laptop and desktop for years, /home is a subvolume to my root partition. This setup suits my needs as I don't have to worry about how big should my root or home (gaming) partition should be.
I use Arch on my desktop and Opensuse on my laptop. They both have options to set up subvolumes from their installer, Debian does not, and I'm not sure about other distros, but you can always set that up after installation, just make your home partition the last one (after the root partition) so you can easily delete it after and grow the root partition without much blocks relocation.
I've never heard of sub volumes. What do they do for me? Why not just partition the disk or store everything on the one partition?
I like to think a subvolume is a directory on my filesystem that:
This is by no mead a definition for BTRFS subvolume, but I hope you get the idea.
Yes.
That depends on your distro. What do you plan to achieve with the separate subvolumes?
I already have a partition layout in btrfs where I have a /home and a /root partition, since when I installed I didn't know about btrfs subvolumes. I use Void Linux and I think it's after installation, since I don't remeber having a subvolumes step during the installation.
I'll make sure to remind about btrfs subvolumes in case I reinstall. There's a
btrfs
program that has asubvolume
argument, so I'm guessing that's what I could use.Pretty much, yeah. At some point I remember the recommendation being having a separate /boot as well due to incompatibilities with GRUB's save default option iirc, not sure that's a thing anymore.
Anyway, you usually set that up during the install process, although I'm not sure graphical installers let you handcraft btrfs subvolume mount points or even select them as such these days. Last I checked at least they either just used a default layout (@ and @home with Ubuntu, for instance) or treated it as a single volume with no further options.
Exactly. But if you tend to be on the hoarder side, put a swap partition in there too. Even 32GB ram isn't enough sometimes