LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 07-10-2007, 03:12 AM   #1
zoubidoo
LQ Newbie
 
Registered: Mar 2004
Posts: 27

Rep: Reputation: 15
A partition for /home is pointless


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?
 
Old 07-10-2007, 03:39 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Last I looked a direct upgrade from Dapper to Feisty wasn't supported.
So problems shouldn't be unexpected.

I've used a separate /home successfully for years.
 
Old 07-10-2007, 03:46 AM   #3
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,441
Blog Entries: 7

Rep: Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551
Quote:
Originally Posted by zoubidoo
Is it reasonable to expect applications (in this case gnome) to be more robust when encountering "old" config files?
I don't believe so.
Quote:
Originally Posted by syg00
I've used a separate /home successfully for years.
Me too.
 
Old 07-10-2007, 03:56 AM   #4
thloh85
Member
 
Registered: Apr 2006
Location: Earth
Distribution: BLFS customized
Posts: 160

Rep: Reputation: 31
Works for me too...
Try remounting the partition after the boot is completed... Then you might see the problem...
 
Old 07-10-2007, 04:06 AM   #5
zoubidoo
LQ Newbie
 
Registered: Mar 2004
Posts: 27

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by syg00
Last I looked a direct upgrade from Dapper to Feisty wasn't supported.
So problems shouldn't be unexpected.
I didn't say it was a direct upgrade. It was a fresh install that replaced Dapper with Feisty. /home was unchanged.
 
Old 07-10-2007, 04:22 AM   #6
Daws
Member
 
Registered: May 2006
Location: UK
Distribution: Debian
Posts: 447

Rep: Reputation: 39
Quote:
Is it reasonable to expect applications (in this case gnome) to be more robust when encountering "old" config files?
Since we're talking about debian-ish systems:

package libzzz1 v1 is configured via filezzz.rc

It is reasonable to expect libzzz1 v2 to work with filezzz.rc.

However if configuration syntax changes, filezzz.rc may not work, therefore a new debian package is created:

eg. libzzz2

As a general rule you can expect that libzzz2 will not work with filezzz.rc.

This allow sys admins to deal with the configuration changes on their own terms.
 
Old 07-10-2007, 04:46 AM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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.


Cheers,
Tink
 
Old 07-10-2007, 05:20 AM   #8
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
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.
 
Old 07-10-2007, 05:52 AM   #9
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Quote:
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.
 
Old 07-10-2007, 06:15 AM   #10
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Quote:
The result was a locked up unusable system requiring console access to fix.
IMHO, it would be most instructive to know what you had to do to effect a fix. That might shed much light on the nature and cause of the problem.
 
Old 07-10-2007, 06:24 AM   #11
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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.
 
Old 07-10-2007, 06:46 AM   #12
GregLee
Member
 
Registered: Feb 2004
Location: Waimanalo, HI
Distribution: Slackware 10, Fedora 6
Posts: 308

Rep: Reputation: 30
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".
 
Old 07-10-2007, 08:30 AM   #13
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Quote:
Originally Posted by GregLee
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.
 
Old 07-10-2007, 03:21 PM   #14
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
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.
 
Old 07-10-2007, 07:00 PM   #15
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Pointless Chat coolb General 6 07-05-2007 02:50 PM
Can I move /home partition under root partition arijit_2404 Linux - General 3 07-05-2007 12:01 AM
Partition Free Space - Move /home to the new partition gregkise Linux - General 5 12-16-2003 10:19 PM
is wine pointless? Jordanl Linux - Software 23 09-18-2003 05:54 PM
Maybe pointless Peingune Linux - Newbie 4 11-07-2002 05:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:53 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