Skip to content

Should I create a separate /home partition?

I'm installing Arch on a new computer and I'm trying to decide between just having a UEFI and root partition (and possibly a swap partition) or also having a separate /home partition. Does having a separate /home partition have any advantages/disadvantages compared to just having it be a part of my root partition?

81 points32 comments
Open on Reddit
About this post
Posted
Archived
Score
81 · 95% up
Kind
Text
ID
ofx5bb

Author

6
posts
13
comments
0
media
View profile

34 comments

Yes. With a separate home partition you have the option to later completely blow away the OS partition and start over, switch distros, whatever.

Also files filling one partition won't affect the other.

One downside: with some encryption schemes it's simpler to have one partition for both to unlock and manage.

50 points

The filled partition advantage can be a disadvantage too, if you don't know your needs ahead of time or if they change. Personally I prefer BTRFS subvolumes instead of partitions.

8 points

Storage space is generally so cheap that a generous OS volume size is viable. Also, partition resizing is possible o In some cases. Finally, in some cases configuration or symlinks can be used to store data on one partition instead of another.

4 points

I been wanting to do encryption and the separate home partition, but I still don’t really know how to do it. I read that in this case it’s better to encrypt all of the drives separately but have the same key unlock them all at boot

5 points

/etc/crypttab stores keys and associated volumes, and automatically decrypts the volumes with the associated key. So it says "/home is encrypted with /etc/luks-keys/home and ...". Usually these passwords are on the root partition.

So you boot, enter the root password, continue booting, and then the os reads the password files stored on the previously encrypted root partition to decrypt the rest of the drives.

https://wiki.archlinux.org/title/Dm-crypt/Encrypting_an_entire_system#LUKS_on_LVM. In particular see "encrypting logical volume /home".

11 points

I do it a bit differently. I have my /home in the same system partition where Linux is installed in. But I mount specific folders from other partitions or drives that are dedicated to their specific domains. In example I have a Backup drive, which I mount into ~/Backup. And the same is true for some Audio, Video, Roms, Projects folders. Whenever I install a new operating system, I just have to mount these folders in fstab.

43 points

Do you ever have problems with the mounts after starting your computer because of the network connection delay? I have experienced a lot of problems with network mounts and thus I am not mounting anything anymore.

6 points

I don't mount over network, only my internal hard drives. Therefore there is no network connection delay on my side, off course.

And I do almost the same fstab layout for mount points since 10 years or so and never had a problem related to it. It makes sharing those folders with multiple distributions easier too.

13 points

In general, I suggest linux beginners to use a Single Root Partition as the wiki outlines. As your knowledge grows, you'll want to weigh the pros and cons of abstracting partitions using features like LVM and btrfs, tools that are really exciting too!

Good luck.

19 points

I'm a fan of using as few partitions as possible. I do have a couple of dual-boot machines set up with a separate data partition, but this actually isn't for home only, it gets mounted to /mnt/data and then I bind-mount /home and a couple of of folders under /opt out of that. This is so I can share my home dir and a couple of massive software installations between Ubuntu and Arch. Otherwise, I do not use separate partitions for /home, /var, /usr, etc. as some guides recommend. Instead, I use a single root partition, plus a separate EFI partition mounted to /boot and occasionally a swap partition.

14 points

I use BTRFS subvolumes. They are somewhat separate yet very flexible wrt size and even adding/moving physical disks online.

10 points
unknown author

Deleted before we saved it.

9 points

Before someone can describe to you the advantages and disadvantages, you would need to provide more details about your setup.

What kind of machine are you going to be installing on?

Are the partitions going to be on different drives or a single drive?

Are you creating a single luks container, if you are gonna be using encryption, and putting root, home, and swap all inside it?

Or are you creating an individual container for root, home, and swap?

What does the partition scheme in your mind look like?

7 points

Definitely, it makes it easier for changing distros or reinstalling arch. I separated my partitions so I can monitor storage usage easier.

If you have multiple drives, you could put the /home partition in your faster drives for quicker opening of files and games and put the root partition in the slower drive (idk if that will affect boot speed tho).

6 points

Using a single partition is simpler. It's also easier to set up.

Using a separate /home can be useful if you need to reinstall, since you can just wipe the / partition and start over. It's also useful if you want to keep snapshots of the system - snapshots of /home are almost always pointless. It also lets you use different filesystems for / and /home, for example you may wish to use BTRFS on / and EXT4 on /home.

If you do plan to use separate partitions, it may be beneficial to use LVM - this will make it trivial to resize later on, without worrying about moving partitons.

6 points

I was pretty glad that I had a separate home-partition when I accidentally mkfs.fat‘ed my root partition

6 points

more home space more apps. i use a 1tb hdd for my /home and a 256gb nvme ssd for everything else. load times are a little slower (hardly makes a difference on my hardware) because of the hdd but its nice having that extra space.

5 points

One tear ago i whould say yes. After a lot of DM hopping? Nah... /home contains the dotfiles, and they can mess up using multiple distro more than helping. I am totally pro a separate data (i map it on /mnt/DATA and then symlink everything i need)

3 points

Yeah, I don't understand how people think you can reuse all the files in /home on different distros. Different distros have different versions of software and hence the files would not be the same.

In fact, I just read this on the Arch WIKI that someone linked above regarding "single root partition":

You should not share home directories between users on different distributions, because they use incompatible software versions and patches. Instead, consider sharing a media partition or at least using different home directories on the same /home partition. The size of this partition varies.

1 points

I know this is old but it's interesting - this is another of those things that used to be a completely expected aspect of Unix/Linux but can no longer be relied upon. It even used to be common practice for a user to have a home directory on a network server somewhere and log into any workstation at their institution and that networked home directory means they have all their stuff on the machine they logged into, including dotfiles and whatever. Bottom line, applications weren't supposed to break if the contents of the home directory were unexpected or from a different version.

This is like having separate /var or separate /usr, which were normal when I started Linux in the 2000s but can break stuff now.

That said, I have home directory on separate partition, but don't share it between distros. I just use it to make reinstalling or switching easier, but if I switch distros, I will go and move the dotfiles out, start a new home folder, manually copy across configs from the old home folder, etc, so the actual home folder is fresh, even though I didn't have to delete any data.

My reasoning for using /home as the second partition is because it passes the grandma test - if you're setting up linux for someone and then leaving them to their own devices, you don't want to have to teach them all the intricacies of mount points or symlinks, you just want them to be able to save all their stuff in their documents or their desktop or where-ever regular people do, and for that not to cause the smaller root partition to fill up. You don't want them to have to change their behaviour. That said, this scenario is also why I wouldn't use Arch linux in such a scenario, too. And it doesn't always have to be a grandma, just family members or even yourself, if you don't want to have to care about underlying details and just want to use the computer.

1 points
unknown author

I really advise anyone to learn LVM and then put home nad root on top of it. LVM makes things in future so much more convenient...

For example - extension of filesystem - add new storage to PV, add the PV to the Volume group, extend volume... done

or migration to a new disk - add new disk to VG, move PV from one disk to the other - done

you can create snapshots with a simple command, and many more possibilities - moving partitions and resizing is also a breeze on LVM...

3 points
unknown author

Yes, always separate home partition for me. You can mount home in other systems, that's the main one. And if you're using btrfs, ZFS or something, you can work it's magic that way.

I've switched from Debian, to Fedora, to Arch, and back to Fedora, without ever losing any personal files. They're just there the first time you boot the new system staright away.

3 points

Separate root and home. Security & flexibility.

if hard drive is full and everything is on the same partition, / will be full and the problems start. If the home partition is full, the root partition remains isolated and your os functional.

if you change your distribution then you only reinstall the os and move the hidden files from home. So don't loose your data, refresh a new desktop, and get back your ssh keys etc.

For snapshots and backup.

You can use same or different type for each one. (Btrfs / ext4 ).

You can better upgrade your stack, if for example a second disk arrives for home, move home data to the new drive and just expand root partition.

I never put the os and the data in the same partition ... We don't store food in the bathroom right?

2 points

I have a separated partition for my home and it's very convenient while distro hopping without having, for example, doing online backups of my dotfiles. As I guess you know your user configuration files are kept on the user home directory and that's one of the conveniences of this. Personally I would make a separated /home partition just in case, even if I don't plan to change distros in the future or wipe my system in case of a breakage.

2 points

I have a separate partition for /home/yonatan/, so far it's been exactly the same as just having everything in one partition, but when I will inevitably fuck my install up badly enough, I could reinstall without worrying about my data.

2 points

Yes, you should, and it has a very important advantage: you don't need to format it every time you change or reinstall a distro. Choose wisely the size you need, as well as the filesystem.

2 points

At one point, I used to just use a single partition and stored all of my important projects inside of a Dropbox folder on the second drive inside my laptop. My home directory would get backed up to the second drive on a weekly basis since it didn't really store anything important other than configs. It let me keep the actually important stuff secure in case I blew away my arch partition or even both my arch and windows partitions. I fucked up my boot partition once before in college and luckily the guy at the help desk had a Ubuntu live CD I could use to build an Arch live USB and then to recover my boot partition. It's always important to keep an Arch live CD or USB laying around you don't use for anything but Arch.

1 points

I used to have a separate /home on my desktop previously but not anymore, even when I had a 50GiB root partition it kept running low on space but plenty left on /home so decided to just move root and /home to same partition, I have a separate /data disk anyway so the argument for reinstalling is not that big deal for me and even if my laptop still has a separate /home it might not in the future because all my personal data is shared using Syncthing so even if I reinstall I can get all my data back by installing Syncthing on new OS. So if you have a) No plans to reinstall b) A separate disk for data c) Syncronication solution I would avoid a separate /home partition

1 points

Having a seperate /home is optional however I recommend it. In my experience arch only needs 128GB max to have a fully functioning system that doesn't need 24/7 cleaning of old files. I keep a seperate /home this way if my root ever gets fucked I can still access my files my mounting /home. Also I highly recommend a swap partition that is at least equal or double your ram size. it just helps your system not to crash if you run low on system memory. I happen to run VMs all the time and having a swap really helps. it mostly comes down to what you need out of your system and how you plan on using it. I have /boot, /, /home and swap partitions. I also recommend a 512GB drive if possible this way your /home can be fairly large.

1 points

I dual boot windows and my current setup is my root and home on the same partition and I have a separate ntfs data partition in /mint/data for things like my steam games and other stuff so I can access the same things between both operating systems. I feel like the ntfs thing could cause problems but I've been doing it this way for about 3 years and nothing bad has happened yet.

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.