this post was submitted on 05 Apr 2025
37 points (100.0% liked)

Linux

52836 readers
802 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

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I want to be able to format my system without formatting my home, I know I can keep them seperate partitions but I would prefer if I can have dynamic sizes of each, can I achieve that by creating a sub volume for each? Would I be able to distrohop without removing my home while keeping the sizes dynamic? I never sat up a BTRFS before so I'm clueless

top 8 comments
sorted by: hot top controversial new old
[–] [email protected] 7 points 13 hours ago

Even without BTRFS it is possible to just delete every folder on root except for /home. Haven't encountered any distros that couldn't handle it.

[–] [email protected] 28 points 1 day ago (1 children)

Don't format, just create separate subvolumes for the distros and keep the home subvolume mounted on each root then delete the root subvolume of the distros you don't want when you're done with them.

[–] [email protected] 4 points 1 day ago

This looks like the way, I like it!

[–] [email protected] 7 points 1 day ago (1 children)

If you format the btrfs partition, it will erase everything. You can just delete the old root subvolume and create a new one when installing a different distro though.

[–] [email protected] 2 points 22 hours ago* (last edited 22 hours ago)

I do the this and it's great. An entire distro takes up only a few GB. Many graphical installers don't support installing on an existing btrfs partition (or subvolume) and want to create a new one. This can often be solved by manual intervention (via terminal).

[–] [email protected] 4 points 1 day ago

You are replacing partitions with subvolumes, as such you have to make these operations on the btrfs filesystem (so as others have already written, deleting the subvolume instead of re-formatting the partition).

[–] [email protected] 3 points 1 day ago

Make a separate home partition, and make fs BTRFS, having subvolune of root system may be tricky for formatting

[–] [email protected] 1 points 1 day ago

Just dont format the drive when installing a new distro. BTRFS or not you can delete the system folders manually first if needed but I believe that some if not all distros will delete the system folders for you (at least ubuntu used to do this last I tried). And if not you can do it manually.

It does not matter if you have a separate partition or not for /home installers won't touch it if it already exists except to create a new user if needed. Remember, all the installers do is optionally format the drives, mount them then install files into those drives. If you skip the formatting and manually do that partitioning (or using an existing partition layout) it will still mount and write to the same places regardless of it they are separate partitions or not. So a separate partition does not add any extra protection to your home files at all.

But regardless of what you do you should ALWAYS backup your home data anyway. Even with separate partitions or subvolumes the installer can touch or delete anything it wants to and you can easily click the wrong button or accidentally wipe thing. At most preserving your home saves you from restoring from a backup it should not be done instead of backup.