Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I recently upgraded from Ubuntu Dapper to Feisty leaving my /home partition unchanged. The result was a locked up unusable system requiring console access to fix.
With a clean /home the system worked fine once again. So there is obviously some configuration file in my home subtree that is causing problems, (presumably gnome/gconf related although I haven't been able to track down the exact problem yet).
The whole point of having a separate partition for /home is to separate system software from user data. But this experience shows that it isn't quite so easy. So what would be a good way to avoid this kind of problem?
Is it reasonable to expect applications (in this case gnome) to be more robust when encountering "old" config files?
I've succesfully used a Slackware-based /home on a dapper system,
no problems (not pertaining to home, anyway) ... sad that Ubuntu
to Ubuntu should give one problems.
Usually binary distribution software upgrades trough package managers, if they work at all, only work from a version to the next one, not jumping over versions (for example 1->2 then 2->3, not 1->3 directly). Jumping over versions increases the probability of trashing the system. Clean installs are always better.
The idea of /home on a separate partition is, if you ask me, that you can format your root partition (and others) without losing personal data. This happens when you do a "clean" install where you don't upgrade the existing system, but format / and then install over the formatted root partition. Not having /home under root partition but on a separate one leaves you with the choice of letting /home unformatted, which leaves you with the possibility of having all per-user configurations, personal files etc. there and saves you a lot of time because you don't necessarily (unless an accident happens, which can happen any moment anyway) have to restore backups. You take backups, don't you? No? Well you should.
Of course it's easier to use automatic partitioning (if offered) and put everything in one partition - the good side is that free space is there for you to use, and you don't end up in a situation where root partition runs out of space and your system starts dying even though there are hundreds of gigabytes of free space under /home. The bad side is that if you ever need to reinstall, you're either going to have to make huge backups and make sure they work just for that job, and then restore them after the setup (which is the same as if you had /home separate, didn't format it and just saved hours) or you're going to have to leave / unformatted (if the setup lets you to) and get a system which has potentially loads of major problems. And the out-of-space problem can be circulated with always checking out you do have enough space, and if it seems like you don't, buy more.
There is no sane reason not to have separate /home, except that you don't have any valuable data (test to see: if you're ok with formatting your whole disk right away without backing it up, you don't have valuable data - if a thought crosses your mind thinking what you might lose, you do have valuable data) and don't care to save it.
The result was a locked up unusable system requiring console access to fix.
When booting, the system will not even open a single file in /home so I don't see how any distro would "lock up" because of a bad /home.
Maybe something went wrong during the partitionning?
I'm using a separate /home since years and it's very handy.
Did you use a different username on the new install. I will change my home directory by adding -bu at the end and then create a new user. Later, I'll copy the old contents I want to my new home directory. If you go from one distro to another, there may be a different UID used. Some distro's start UIDs at 500, others at 1000. Also, one advantage of a new install may be how the menus and other items in ~/.kde or ~/.gnome are setup.
Gnome doesn't cope well with old incompatible configuration files, but there's no need to get rid of everything in /home. Just "cd; rm -rf .gconf .gconfd .gnome .gnome2".
Gnome doesn't cope well with old incompatible configuration files, but there's no need to get rid of everything in /home. Just "cd; rm -rf .gconf .gconfd .gnome .gnome2".
I've seen the same thing with KDE. Often a new version of the operating system will have a new version of the window manager and base X software. These, at least in KDE, will often not be compatible with the old configuration files. I also create a new user home directory, run KDE, reconfigure the desktop, then copy over the non-window manager data from the old directory. It is a lot of trouble but not doing this can be more trouble.
As far as the utility of having a separate partition for /home I think that there are several benefits. For one thing you can easily encrypt the /home partition. I use True Crypt.
Another benefit to having /home on a separate partition is that you can mount the /home partition as noexec. That will prevent most applications that reside on the /home partition from running. This is a good idea to prevent a malicious web site from downloading an application to your home directory and running it. I do the same thing with the /tmp and the /var/tmp directories. I use small container files that contain a file system and mount them through a loop device to /tmp and /var/tmp using the noexec directive in the mount command. That way every place that the normal user account can write files forbids running software from that location.
So having a separate partition for the /home directory can be useful.
Last edited by stress_junkie; 07-10-2007 at 08:41 AM.
Well, I guess jschiwal beet me to the punch.
I also used the same /home partition with many distribution, Mandrake 10 and Mandrake 10.1 are two different distributions. Yes I would render one distribution inaccessible to the user's account if I used the same user in another installation, eventually I figured out I had to create a different user for every distribution. I once had 9 users, and could only access files in some of them as root from a terminal.
I prefer the setup I'm using now, leave home in the / partition and set up a shared ntfs data partition, install ntfs-3g in Linux and access all data from any OS. And when it comes to upgrading, simply wipe out / and install another in it's place. And now I only have one user with the same root and user password in all the OS's without interference.
You can use the same username, but have each distro's home directory entry in /etc/passwd refer to a different directory.
For example, if your user name is jdoe, you could have /home/jdoe-suse/ while in Fedora Core, use /home/jdoe-fc/. The username could be the same for each. In this case the SuSE UID may be 1000 and the FC UID may be 500.
You can edit /etc/login.defs in one of the distros so that the UID ranges of normal users matches, and use the same UIDs for regular users. You would need to do this anyway if you want to use NFS between two SuSE & FC hosts.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.