Skip to content

Home in root or separate partition?

So I've been using Linux for about 6 years, and Arch for about 1 of them and I love it! It's super stable. But one thing I've never understood is why do some people choose to put their Home as a separate partition? I personally just keep it as part of the root partition. Is there some sort of performance increase with it? Thanks for the help!

48 points34 comments
Open on Reddit
About this post
Posted
Archived
Score
48 · 90% up
Kind
Text
ID
grb7ln

Author

4
posts
4
comments
1
media
View profile

34 comments

unknown author12 hidden

You can have multiple systems installed on multiple partitions (multiboot) that share a home partition, or perhaps you want to distrohop but not lose some documents in your home partition. These would be some reasons for having a separate partition. Or because you wanna.

46 points

How viable is sharing a home partition between multiple distros? I'd be afraid of compatibility issues between different versions of apps/DEs as their dotfiles might be referencing a different environment.

I kind of want to try and see what would happen if I shared an Arch home dir with a debian install.

13 points

I read somewhere here that sharing /home between distros is best done by using unique users for each distro. That way, dot files never conflict.

6 points

Oh OK, that makes sense. Thanks!

9 points

I'm not a fan of sharing /home across multiple distros, and in general try to make my /home as ephemeral as possible: dotfiles stored in git, bulk documents and files "in the cloud", etc.

But I still use a separate home. 1) I like to keep root small as a sanity check and to help force good hygiene. 2) I like to keep spare space for a second root to rebuild the system for whatever reason (or try out other distros). 3) It helps prevent the system from getting unstable if I mess up and fill too much space.

On some systems I do leave home on root for simplicity. On some I leave home on root but still have a separate bulk data partition (eg ssd vs rotational raid array)

11 points

Let me suggest something else, how about single btrfs partition (preferably on encrypted LUKS) with separate subvolumes for root and home?

Kind of best of both worlds setup if you ask me.

20 points

I use something similar. Encrypted LVM volumes for root home and swap partition. Best kind if setup if you ask me. :D

2 points

I've done something very similar with ZFS datasets. It really is the best of both worlds. Plus, if you set it up properly, you can use ZFS boot environments.

1 points

I put /home on it's own partition precisely so I can do as I like without losing my setup or installed games.

9 points

Simply, there is no performance gain if you use a separate /home partition, this configuration is just useful if you want to have multiple distro with the same home partition, however, you may face some config file confilts, so in my opinion don't do it until you know what you are doing.

7 points

I think this is a YMMV situation. Personally, I stopped having a separate /home partition about a decade ago.

However, there are pros to having it separate; mainly that choosing another distribution, your home files will still be there. I would be vary with transferring .dotfiles and user configuration over to another distirbution; especially more complex software (such as desktop environments, media players, office applications etc.), according to previous experience, will break (because of version differences or distribution tweaks). However, there are ways around that, such as making another user (or moving away the old home dir) and moving back the important files to the user account in use.

Command-line based applications are usually more robust with configuration files and will not break so easily (and, their configuration files are easier to pinpoint, as opposed to, say, KDE Plasma, which has it's configuration files all over the place; good luck resetting it's configuration without creating a new home dir, if something goes wrong). So having at least some of the configuration in place can be useful, too.

Personally, when changing a distribution, I just temporarily move the /home folder to some temporary space, and move back important files after re-installation. I've decided to go that route, since I rarely change distribution. I already have huge files (music, movies) in a separate data partition, which I symlink to.

With a smallish HDD (or SSD), having /home in /root is the way to go, as fragmenting the space can cause problems later on (having either one filled up with the other one still left with space sucks) - unless one chooses to use LVM or btrfs subvolumes (as already suggested) or something similar.

5 points

If you're going to install multiple distros on the same machine, a separate home is quite useful for various reasons, primarily to be able to softlink data directories between the different user folders. If you're only booting one linux distro, then keeping /home on / is a more efficient use of space.

3 points

Even if you only have one disk and one distro, using separate partitions means you can use a different filesystem, or do block level filesystem backups. With multiple disks, you could, say, have the home dir on raid0. I don't, personally, separate my home and rootfs, butthere are legit reasons at least.

3 points

I've always just used a single partition, the only other partition is the swap partition, with isn't really touched either way because I have 9 GB of RAM.

2 points

9 GB of ram seems an odd number. Did you mean 8, or do you have some interesting setup?

3 points

But one thing I've never understood is why do some people choose to put their Home as a separate partition?

I find it more convenient to simply mount the existing home partition (or in my case subvolume) during a new installation. This eliminates the need for an additional data backup and copying of personal data.

2 points

I used to have them separate, so I could reinstall the OS from the scratch without needing to backup /home. But after 10 years using Arch and not having needed to reinstall it a single time, I've decided to merge them.

Besides, I've been several times in a situation where the root partition was almost full (new big packages installed, increasing amount of docker images…), and I was forced to move certain things to /home to free space in root. But it's much easier to just use the same partition for both.

2 points

I personally keep them separate so I don't download something to fill up root on accident. If it is a server build I also segment /var so a run away log doesn't kill my root as well. I know a clean root is rarely over 20 GB for me so I can split up extra space accordingly.

2 points

One of the reasons is to protect root. When root is full, all sorts of bad stuff happen.

1 points

wouldn't this be a reason to NOT put them on separate partitions? Anyway, my root fills up all the time and I haven't run into any problems yet. I could see that it might cause a problem tho.

7 points

I use a separate /home on servers, because I don't want anything in home filling the root filesystem.

I use one big partition for my laptop and desktop machines because running out of space in / is only going to affect me.

1 points

No performance gain. I personally don't do it because I don't want to do it because in my personal view it's an artificial limit that kind of limits how much you can actually use the disk.

But if you know how much root you're going to be using, it's VERY useful as you don't lost your data distro hopping or reinstalling your current distro.

1 points

That total depends on what you personally prefer. I always use a separate home partition as it easier to backup without the stuff in root that has no real value to me. Also reinstalling is a hell lot easier, as you can simply format just the root partition and reinstall a fresh Linux in there as your home files remain untouched. While you can use multiboot like that as well I don't see that as a special benefit since you will probably settle to one specific distro in the end.

Also there is the opportunity to use LVM. With that you can add an abstraction of data volumes on top of your physical hard drives. It makes moving whole partitions super easy and you can even reboot during migration.

It is really a hidden gem. Worth to take look at.

Edit: typo

1 points

I usually put it in root, there's too much crosstalk between home and root for the software I run to be portable between any two given installs.

Some folks keep it cleaner and can tolerate a movable home.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.