LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-13-2020, 05:05 AM   #1
Pen guin
Member
 
Registered: Oct 2019
Posts: 178

Rep: Reputation: Disabled
Is it a good idea to separate out your home folder from the main installation?


I've heard it may not be such a good idea; but then again, it keeps your home folder backed up in case disaster strikes...

What do you think?

Thanks in advance
 
Old 06-13-2020, 05:23 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Yes, it's a good idea. But it doesn't keep your home backed-up, merely isolated. You still need to institute a good backup strategy.
 
2 members found this post helpful.
Old 06-13-2020, 05:55 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,849

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
[obviously] it depends on the usage. If you store your personal/important data in /home/<user> you find it (separation) very useful. You will be able to reinstall/repair/upgrade the OS without problems. Backup is another level of security (and is a very good idea too). Just in case your original storage dies.
 
Old 06-13-2020, 06:27 AM   #4
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
If you share that /home/<user> across multiple distros it can have quirks with how $HOME/.config/ things change with versionings. Otherwise it's a good idea, especially if the /home/ is on a different storage device. Perhaps the faster device since browser cache on a slow device will impact perceived performance. And perhaps usability.

I separate out the user that does torrents (distro images) because grabbing lots of little chunks and doing random writes has a noticeable performance impact on all other users using the same device. Plus I can give it a bigger device and keep my base installation in < 32GB with multiple users, multiple games, and usage > 3 months before a nuke and pave.

Having home on it's own device is not a backup. Although you can have greater redundancy if that other device(s) is a ZFS mirror. Depends on what performance trade-offs you're willing to make. I mostly keep all my stuff on / on a single device, but do a fresh install on a new device after a few months, leaving the old device as a backup / archive of sorts. For the one user that I do keep separate, it's not automated and I have to be careful to mount that other device and /home/ mount point BEFORE I log into that user.
 
1 members found this post helpful.
Old 06-13-2020, 08:03 AM   #5
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,493

Rep: Reputation: Disabled
Having a separate /home allows for you to re install in case of emergency, & to upgrade your system easily - but do keep a backup (kept elsewhere) of your personal files updated regularly, just in case.
 
1 members found this post helpful.
Old 06-13-2020, 10:05 AM   #6
jmgibson1981
Senior Member
 
Registered: Jun 2015
Location: Tucson, AZ USA
Distribution: Debian
Posts: 1,141

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
Determined by use case for me. If you only ever use one DE and don't distro hop, then yes it's a great idea to keep a separate /home. However if you use multiple distros commonly on the same machine you would be better served by a data partition with folders symlinked into /home/"$USER". The actual /home and dotfiles would be on each distros installation. The many de settings from various versions and de's will confuse the system, and ultimately become more trouble than it's worth when stuff starts getting messed up. Speaking from experience. Depending on what you use this may or may not be a problem.

Last edited by jmgibson1981; 06-13-2020 at 10:07 AM.
 
1 members found this post helpful.
Old 06-13-2020, 07:09 PM   #7
binkyd
Member
 
Registered: Oct 2016
Distribution: Looking again
Posts: 429

Rep: Reputation: 40
A separate /home partition works incredibly well using "Timeshift" as a backup.
/home is safe during restores.
And if you want to take the time you can back up the whole shebang.
 
1 members found this post helpful.
Old 06-13-2020, 08:10 PM   #8
quickbreakfast
Member
 
Registered: Oct 2015
Location: northern territory
Distribution: slackware 15
Posts: 335

Rep: Reputation: Disabled
Quote:
Originally Posted by Pen guin View Post
I've heard it may not be such a good idea; but then again, it keeps your home folder backed up in case disaster strikes...
I allow /home to be part of the / partition, but rarely use it..... which could be lost if/when either disaster strikes or I distro hop.

Whatever data I have/keep goes on a separate partition with a different name. sda4 could be called /hat, and sdb3 could be called /coat, and the folders inside each partition are names, but could be anything.

Neither of which is safe if disaster strikes the distro on that particular HDD.

As for having the partition holding my data backed up, that is on an external hard drive. Which is backed up regularly (weekly). So when disaster strikes, after fixing the problem, I simply copy the data on my external drive back to the relevant installed HDD.

The way I keep my data backed up is by using the rsync command.

To learn more about backing up your data using rsync, read this link. https://www.howtogeek.com/427480/how...-linux-system/
 
Old 06-13-2020, 10:04 PM   #9
Hermani
Member
 
Registered: Apr 2018
Location: Delden, NL
Distribution: Ubuntu
Posts: 261
Blog Entries: 3

Rep: Reputation: 113Reputation: 113
Quote:
Originally Posted by Shadow_7 View Post
{..) Plus I can give it a bigger device and keep my base installation in < 32GB with multiple users, multiple games, and usage > 3 months before a nuke and pave.
Could you please explain to me, why you need to reinstall your base installation?

I tend to run my distro as long as there are no real issues with it. I was under the impression that when you keep updating the system, you could easily have it running for a longer time. However on my laptops, sometimes they develop little quirks I can't explain.
 
Old 06-18-2020, 11:00 AM   #10
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
Quote:
Originally Posted by Hermani View Post
Could you please explain to me, why you need to reinstall your base installation?
Short answer: paranoia

USB devices, which I use almost exclusively, were not meant to be used as OS drives with logging and browser cache that do a lot of writes, deletes, and such. They wear out. So to stay ahead of that curve I just do a fresh install (on a fresh device). It also helps keep me current on how to do a fresh install. Instead of trying to remember what I did five years ago, it's more like what I did 3 to 6 months ago. Since IT isn't my day job (this decade) and it's not something that I do everyday.
 
1 members found this post helpful.
Old 06-18-2020, 11:08 AM   #11
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by Hermani View Post
Could you please explain to me, why you need to reinstall your base installation?

I tend to run my distro as long as there are no real issues with it. I was under the impression that when you keep updating the system, you could easily have it running for a longer time. However on my laptops, sometimes they develop little quirks I can't explain.
I do it so I can easily re-install the OS, without having to reload my home/data folders. But I've been using a rolling-release for a while now, so that's less of an issue. Whenever a 'major' version (like CentOS 7 to 8) upgrade is in order, I *ALWAYS* format/reload, rather than do an in-place upgrade. Far fewer gremlins afterward.

My desktop and home machines are rolling-release, but our servers and any we do for clients we structure the same way...home (and any data volumes) are always separate partitions at the least, if not their own physical drives.
 
1 members found this post helpful.
Old 06-18-2020, 01:04 PM   #12
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
I always put /home on a separate disk but a partition works as well. There is no reason I can think of why putting /home on a separate disk or partition would NOT be a good idea. After all, you only care about your data - the OS is inconsequential. An OS (with a few exceptions) can be reinstalled in a few minutes.

As others have mentioned, back up your data no matter where it resides.
 
2 members found this post helpful.
Old 06-19-2020, 10:14 AM   #13
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,142

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
One extra point is that /home is not just your data but (unlike Windows) all your configuration. If you ever have to re-install the system or switch to a different distro, software will still work as it used to. One computer I had went through Fedora, Debians, and CentOS with the same /home for nearly a decade.
 
1 members found this post helpful.
Old 06-19-2020, 10:18 AM   #14
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
Personal application or DE/WM configurations, not base OS configurations. Those are never in the user's /home. I normally back up any key files I have changed in /etc or other locations so I can restore them if needed.
 
1 members found this post helpful.
Old 06-19-2020, 01:00 PM   #15
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,803

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by Pen guin View Post
I've heard it may not be such a good idea; but then again, it keeps your home folder backed up in case disaster strikes...

What do you think?

Thanks in advance
NOT a good idea? I'd love to see the reference(s) that claim that.

Having separate filesystem for "/home" has been encouraged by many since the earliest days of Linux. I can recall HOW-TOs that urged users to have a separate "/home" partition (or disk) that date back to the mid '90s---I know I was doing that back when there were Red Hat systems that could run on a mere 16MB of RAM.

Other than the laziness in not having to run fdisk/gparted/whatever, I can't imagine there being any advantage to mingling operating system and user data in the same filesystem. Heck, even using something like btrfs where one can define separate subvolumes, I'd physically separate OS from user data using different disks.

Just my US$0.02...
 
2 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Store ecryptfs files inside home folder when enabling full home folder encryption in Linux Murz Linux - Security 4 10-27-2018 03:57 AM
Backing up home folder a good idea or not? lighter973 Linux - Newbie 12 06-23-2017 06:12 PM
Home folder icon does not open home folder CiscoGeek Linux - Newbie 3 12-18-2006 07:00 AM
Good idea/bad idea: interface colors introuble General 5 10-30-2006 01:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration