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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-28-2004, 01:42 AM
|
#1
|
Member
Registered: Mar 2004
Location: Canberra Area, Australia
Distribution: Kubuntu
Posts: 242
Rep:
|
Going from distribution to distribution safe?
Hi Guys,
When trying out different distributions, if I choose to keep the same partitions and not format the partitions, is it possible to load on a different distribution without losing user accounts, settings and home directories?
I am using Fedora Core 2 Test 1 and it has a stack of problems. I want to either go back to RedHat 9 or Mandrake 10.
|
|
|
04-28-2004, 02:26 AM
|
#2
|
Senior Member
Registered: Nov 2002
Location: British Columbia, Canada
Distribution: Gentoo x86_64; FreeBSD; OS X
Posts: 3,764
Rep:
|
Yes and no. You can keep /home on a separate partition and simply add it to fstab to be mounted normally in your new distro...however, you will not be able to save /etc/passwd and /etc/shadow unless you copy them somewhere beforehand. Because /etc holds all the init scripts et al that can vary widely from distro to distro, you cannot preserve it accross different distros.
So my advice...keep your /home partition, but install everything else as normal. If you create the same users on the new install your /home directories should work without a hassle.
|
|
|
04-28-2004, 06:21 PM
|
#3
|
Member
Registered: Mar 2004
Location: Canberra Area, Australia
Distribution: Kubuntu
Posts: 242
Original Poster
Rep:
|
They /home dir lives on the same partition as /
I would imagine copying /home back after a new install of a new distro would not work correctly 100%?
|
|
|
04-29-2004, 10:20 AM
|
#4
|
Member
Registered: Dec 2003
Location: Johannesburg, South Africa
Distribution: Mandrake
Posts: 48
Rep:
|
the short answer is no. even if you keep your home dir anything it needs outside that partition is stuffed. just tarball your home dir, back it up somewhere if you have space, and redo the whole thing. Then take the installs and other stuff you need out of your backup again.
I made the move from redhat to mandrake 3 months ago, believe me you will not regret the move. mandrake seems easier while in fact being more powerful with less config hassles. of course some other folks would disagree, but that is my personal experience.
|
|
|
04-29-2004, 06:37 PM
|
#5
|
Member
Registered: Mar 2004
Location: Canberra Area, Australia
Distribution: Kubuntu
Posts: 242
Original Poster
Rep:
|
Yep done, Mandrake community 10.0 is now my distribution. I backed up and restored. I had to set up all my preferences again and I miss a few redhat tools, but that's life I guess. (Might try and install them from the fedoras disks anyway)
At least I can now play mp3s and compile drivers right out of the box. Maybe when Fedora Core 2 is complete I'll give it another look.
|
|
|
04-30-2004, 01:11 AM
|
#6
|
Senior Member
Registered: Nov 2002
Location: British Columbia, Canada
Distribution: Gentoo x86_64; FreeBSD; OS X
Posts: 3,764
Rep:
|
Did you set up /home on a separate partition this time? You know, just in case you decide to switch again...
|
|
|
04-30-2004, 01:17 AM
|
#7
|
Member
Registered: Mar 2004
Location: Canberra Area, Australia
Distribution: Kubuntu
Posts: 242
Original Poster
Rep:
|
Nah I just backed it up. Mind you, when I restored it, the settings didn't take anyway. I just wanted to avoid configuring all the kde candy again.
Not sure why it doesn't work. I can't see the difference between tarring up the /home and /root directories then restoring them compared to having these on their own partition.
|
|
|
04-30-2004, 02:03 AM
|
#8
|
Senior Member
Registered: Nov 2002
Location: British Columbia, Canada
Distribution: Gentoo x86_64; FreeBSD; OS X
Posts: 3,764
Rep:
|
Did you create the same users again? Another thing to check is the UID number of the users. Some distros start regular users at UID 500 and some at UID 1000.
Well, I wouldn't put /root on its own partition, but /home is great to put on its own partition. Why tar it up every time you want to try a new distro? Just leave the partition alone when you reinstall. /home is one of the few directories that remains pretty much untouched during a typical install. Create the same users during the install, then mount your partition at /home. No tarring, no bZipping, and no moving files around when you don't have to. 
Last edited by bulliver; 04-30-2004 at 02:07 AM.
|
|
|
04-30-2004, 02:27 AM
|
#9
|
Member
Registered: Mar 2004
Location: Canberra Area, Australia
Distribution: Kubuntu
Posts: 242
Original Poster
Rep:
|
I'm probably one of those "bad" users. I run everything as root. I also don't use a home directory. Instead I create a /work directory at top level for all my stuff.
I guess I should use the whole /home system but I couldn't be bothered. 
|
|
|
All times are GMT -5. The time now is 09:48 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|