LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 04-10-2009, 04:24 PM   #1
pdurkan@yahoo.co.uk
LQ Newbie
 
Registered: Jul 2007
Posts: 12

Rep: Reputation: 0
How to install new distro but keep existing /home


Hi,

I'm running SUSE 10.2, but like the look of Ubuntu, but would like it to use my SUSE /home.

When I try to install; it proposes resizing (reducing) /home by 50%. Can I make it install in a smaller partition and use my existing /home? -'twould be nice.

If so, how ??

Thanks

Paul
 
Old 04-10-2009, 05:21 PM   #2
cmnorton
Member
 
Registered: Feb 2005
Distribution: Ubuntu, CentOS
Posts: 585

Rep: Reputation: 35
Many ways to tackle problem

The first thing that comes to mind is to rename your /home to something you'll recognize as being your old home directory. Also make copies of /etc/passwd, /etc/shadow, and /etc/group.

What you do from here, depends on how many users are using your system, and what you want to preserve. I'll write more, if you post more details.
 
Old 04-10-2009, 07:09 PM   #3
thorkelljarl
Senior Member
 
Registered: Jun 2008
Posts: 1,787

Rep: Reputation: 211Reputation: 211Reputation: 211
You can make it do what you like.

During the Ubuntu installation process it is possible to key an expert or custom option and format the partitions of the new installation such that they fill the same space and place as any previous partitions, and selectively to format only those desired.

Ubuntu usually proposes to install with two partitions, a swap and /, with home included therein, but it can be set up with three. Your openSUSE 10.2 probably has three partitions, swap, /, and /home, and /home could be left unformatted, and thereby unchanged. It would become the partition /home under an Ubuntu three partition scheme.

You might download and burn a copy of Parted Magic or GPartedLiveCD to have a tool which will let you take a look at the partitions ahead of time, without the partitioner generating its own partitioning scheme. They have both GParted with a GUI and fdisk and cfdisk as needed.

As to the linking of the files in /home to the OS files in /under Ubuntu, I believe it is possible, but I will pass on how it is done, as it is Ubuntu terrain and I speak from openSUSE ground.

Others will step up, but you might search the forum for threads regarding /home. In the worst case you can always copy the contents of /home back and forth. Good Luck

A Note...

Posting your e-mail as a login is not necessary or advisable. You will attract spam.

Last edited by thorkelljarl; 04-10-2009 at 07:29 PM.
 
Old 04-10-2009, 07:27 PM   #4
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,063

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
Quote:
Originally Posted by thorkelljarl View Post
As to the linking of the files in /home to the OS files in /under Ubuntu, I believe it is possible, but I will pass on how it is done, as it is Ubuntu terrain and I speak from openSUSE ground.
Mounting a partition is not specific to any distro. He just needs to put a line in /etc/fstab that will tell the system to mount the old home partition under /home. I understand that home lives on its own partition, of course.

Whether its contents will be fully compatible with the new installation is another matter. User data should be of course, I am talking about dot files and directories, which holds the configuration files for the programs.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
installing Ubuntu with existing /home partition lobo78 Ubuntu 4 10-13-2006 04:46 PM
install new distro WITHOUT loseing data in /home and other partitions Lleb_KCir Linux - General 5 07-20-2005 10:47 AM
How do I install a new distro & save my Home? johnmart Linux - Newbie 10 01-04-2005 11:48 AM
New Software Raid - Want to use as existing /home/ ... Migration??? How??? trekk Linux - Software 5 11-03-2003 11:32 AM
easiest way to install another Linux distro alongside existing linux frontier1 Linux - Newbie 10 03-22-2003 06:10 PM


All times are GMT -5. The time now is 07:02 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration