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-03-2012, 02:45 AM   #1
sharky
Member
 
Registered: Oct 2002
Posts: 569

Rep: Reputation: 84
Reinstall OS without losing /home


I want to preserve my /home directory but it is not on a separate partition. I can move it to a separate partition if it is really necessary. However, I not sure why an OS installation can't just keep the current /home. Is it possible to reinstall the OS and keep the current /home on the same partition that will contain the OS?

Thanks,
 
Old 07-03-2012, 03:54 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
It might be possible, but you'll also keep everything else that isn't same-named as new files that come in.
I wouldn't be game to try it.

Separate partition is the way to go. Works fine with the distros I've tried, but you still need to be aware of potential changes in packages you need to re-install.
 
Old 07-03-2012, 10:04 AM   #3
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
Quote:
Originally Posted by sharky View Post
However, I not sure why an OS installation can't just keep the current /home. Is it possible to reinstall the OS and keep the current /home on the same partition that will contain the OS?

Thanks,
problem with this thought being is to ensure all the distribution specific files are wiped clean, one should do a FORMAT of the drive on which the operating system is being replaced. formatting does not discriminate between OS files and user files, this would be impossible, which is why it is recommended to keep /home on a separate partition, well that and it becomes easier migrate the /home partition to a separate drive if necessary, or migrate /home to a larger drive without re-installing the os, or inversely re-install the OS without losing user files.
 
Old 07-03-2012, 12:07 PM   #4
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,143

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
Some distros will do an update which would leave /home untouched, but not many offer that facility; I can't remember about Ubuntu. Remember that Linux is not Windows. The distro has all those programs sharing all those libraries. Most distros install 2000 or more packages, most containing several files. Writing software that can update some files, delete the things that are no longer necessary, add new material, and make any necessary links is a vast job. Doing it, and guaranteeing that it will work (especially if the user has altered anything), is more than most development teams have the time or the courage for.
 
  


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
How to Uninstall Ubuntu and Reinstall Without Losing GRUB Loboman Linux - Software 2 01-27-2012 08:11 PM
[SOLVED] Reinstall Fedora without losing my /home partition dth4h Linux - Software 6 03-08-2011 12:45 AM
Reinstall RHEL4 without losing data rrbalajikmu Linux - Server 3 05-13-2008 05:54 PM
How can boot reinstall ubunto without losing all my database? sidneylab Linux - Newbie 1 03-26-2006 06:46 AM
reinstall windows without losing linux ereeno Linux - Software 30 09-04-2003 03:55 AM

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

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