LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 10-01-2010, 08:20 PM   #1
eveningsky339
Member
 
Registered: Mar 2010
Location: Western Maine
Distribution: PCLinuxOS (LXDE)
Posts: 466

Rep: Reputation: 51
Shared /home partition


Basically, I would like to have a separate /home partition on my hard disk that will be shared by two different Ubuntu releases. In other words, I would like Maverick and Lucid to be on their own separate partitions, but to share the same /home.

I already have Lucid installed (no separate /home). I know how to use GParted with the Live CD in order to edit partitions, but the main question I have is how do I migrate my /home folder to its own partition without ruining data? I've skimmed through some GParted tutorials but they don't exactly detail what I want.

Once that is done, I need to know if it is possible for Lucid and Maverick to share the same /home partition, and how would I set that up?

Thanks in advance!
 
Old 10-01-2010, 08:32 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
(0) TAKE A BACKUP
(1) resize partitions & filesystems
(2) create new partition and create filesystem on it
(3) mount new partition, say at /mnt
(4) Copy data from /home to /mnt
(5) unmount /mnt
(6) move /home to /homeold
(7) Add fstab line to mount new partition on /home
(8) mount /home

Will sharing it work? Probably, for the most part.
 
1 members found this post helpful.
Old 10-01-2010, 09:03 PM   #3
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Buster (Fluxbox WM)
Posts: 1,390
Blog Entries: 52

Rep: Reputation: 359Reputation: 359Reputation: 359Reputation: 359
Quote:
Originally Posted by eveningsky339 View Post
Once that is done, I need to know if it is possible for Lucid and Maverick to share the same /home partition
As AlucardZero says, it will "probably" work. One of the problems is that different releases will have different versions of applications, and some applications will have changed their configuration file formats. This is usually okay moving to more recent versions (since the applications are usually backward compatible to older configuration files), but once the configuration files have been updated, the older version of the application in Lucid might no longer be able to open them.

If this is part of a migration process, my suggestion would be to retain a separate "/home" for Lucid and Maverick (whether in the main partition or in separate ones), move most of the subdirectories from your /home to the Maverick one, and use symbolic links from Lucid pointing across to the Maverick home subdirectories. That way you can share the data without sharing the configurations. Also, because most of the data will be in the Maverick partition, the Lucid partition can be kept fairly small (and eventually discarded).
 
1 members found this post helpful.
Old 10-02-2010, 03:21 AM   #4
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 292Reputation: 292Reputation: 292
See this tutorial for creating a separate home partition after Ubuntu is installed:
http://www.psychocats.net/ubuntu/separatehome
Another way to avoid conflicts between the config files in your home directory between Lucid and Maverick would be to use a different user name for Maverick from what you have for Lucid. This should keep all of your config files separate for different versions of Ubuntu.
A better way is to use a /data partition for your personal files. This way each distros home partition resides in the root partition for that distro, so there is no chance for config files to conflict with each other. This is what I do, since I always have at least 3 distros on my systems.

Last edited by tommcd; 10-03-2010 at 09:27 AM. Reason: correct careless typo!
 
Old 10-03-2010, 12:25 PM   #5
eveningsky339
Member
 
Registered: Mar 2010
Location: Western Maine
Distribution: PCLinuxOS (LXDE)
Posts: 466

Original Poster
Rep: Reputation: 51
Would enabling the Lucid Backports repository make it safer to have two releases sharing one /home?
 
Old 10-03-2010, 01:46 PM   #6
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198
+1 to neonsignal's advice
 
Old 10-03-2010, 06:18 PM   #7
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Buster (Fluxbox WM)
Posts: 1,390
Blog Entries: 52

Rep: Reputation: 359Reputation: 359Reputation: 359Reputation: 359
Quote:
Originally Posted by eveningsky339 View Post
Would enabling the Lucid Backports repository make it safer to have two releases sharing one /home?
It will help, although not all packages are backported. Still, if you were going to mainly use backports, you'd have to question why you were still keeping the old release at all?
 
Old 10-03-2010, 06:34 PM   #8
eveningsky339
Member
 
Registered: Mar 2010
Location: Western Maine
Distribution: PCLinuxOS (LXDE)
Posts: 466

Original Poster
Rep: Reputation: 51
Quote:
Originally Posted by neonsignal View Post
It will help, although not all packages are backported. Still, if you were going to mainly use backports, you'd have to question why you were still keeping the old release at all?
I refuse to put all my eggs in one basket. If Meerkat goes under I would like to fall back to Lucid. But frankly, a lot of my decision to retain Lucid is more or less nostalgic.

Not worth the trouble, perhaps...
 
  


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
Shared /home Partition JMJ_coder Fedora 3 02-22-2007 09:38 AM
/home partition shared by different distros Hungry ghost Linux - Software 12 04-02-2006 07:32 PM
two dists, shared /home partition kenneho Linux - Distributions 5 08-03-2005 03:25 AM
Users & passwords in shared /home partition mikieboy Linux - Newbie 1 02-24-2005 07:26 PM
shared home partition Big Harry Linux - Newbie 4 06-06-2004 12:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

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