LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Is /home ever touched by upgrades or updates? (http://www.linuxquestions.org/questions/linux-general-1/is-home-ever-touched-by-upgrades-or-updates-493475/)

Haz2a 10-18-2006 07:24 AM

Is /home ever touched by upgrades or updates?
 
Do software updates or distro upgrades ever need to access /home? I know its best to umount /home when reinstalling, to protect all the user configs and data there, but I'm not sure if it would cause any problems to umount it whilst upgrading/updating.

Haz

acid_kewpie 10-18-2006 07:26 AM

if /home is a seperate partition then yeah you should unmount is across installs, but if you're not formatting anything as part of the upgrade then no, there's no change that will be done to /home.

Haz2a 10-18-2006 07:56 AM

Chris, thanks for your comment.

I mean just ordinary distro-upgrades or software updates, eg: via Synaptic or Update Manager, where (I hope) no partitions get formatted.

So just to confirm - no files in /home will ever be added/removed/changed during these upgrades/updates?

So I could umount /home without any risk of an incomplete upgrade/update?

Regards
Haz

acid_kewpie 10-18-2006 08:13 AM

you'll be totally safe. any files that would be updated, e.g. ~/.bashrc would normally be copied from /etc/skel on user creation, and it'd be those files that would be updated.

Haz2a 10-18-2006 08:53 AM

"any files that would be updated" - if /home were mounted during and upgrade -
"e.g. ~/.bashrc would normally be copied from /etc/skel on user creation, and it'd be those files that would be updated."

Just to be clear, are you saying that an upgrade would only change the config for 'home' files in /etc/skel, and never change existing home files like ~/.bashrc? - so any changes made by the upgrade that affected a home file would only be effective for new users and not for existing users?

Regards
Haz

haertig 10-18-2006 09:44 AM

I make it a habit to put any config files I manually edit under source code control. Whether they're under /home or /etc. That way I can see what a config used to be (before an upgrade) or restore a previously-working config that I manually borked up myself.

Pretty simple, really. The first three steps below are only required once, then the last three are how I go about updating my "/etc/fstab" (in this example). Check it out with "co", edit it, then check it back in with "ci". You end up with a running audit of everything you've ever done to the file, and can restore any previous version as needed.
Code:

# cd /etc
# mkdir RCS
# ci -i -u fstab
# co -l fstab
# vi fstab ...
# ci -u fstab



All times are GMT -5. The time now is 09:00 PM.