Linux - NewbieThis 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
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.
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.
Hi, I'm currently running Mandrake 10, and I'm ready to switch distros, but I don't want to lose my /home directory
now, I know I can install the new distro over the old, leaving my /home partition untouched, but will I have major conflict issues with config settings & the like?
It depends on the individual program really. the most likely conflict would be your bash settings, as these are normally heavily personalised per distro, but other than that, it's down to each program, wether it's a different version that requires different config settings. Generally it's not somethign to worry about.
In theory, if you have a seperate /home then you shouldn't experience any problems. I didn't when changing from a debian derivative (knoppix on the hard drive), to mandrake, then to gentoo, back to mandriva. Though when it came to moving from the Mandriva to the SuSE that I currently use, I had problems.
Sorry, I can't recall what the probs where exactly as I've been doing lots of stuff that I've never done before, as well as learning the differences.
But, on a previous occassion, I wanted to do some meddling with my partitions. I was walked through doing that by one of the blokes from my LUG. He explained a way of using the "tar" command to copy/compress the entire home directory, in such a way that I could store it elsewhere, then I did the partitioning changes that I wanted, and then just put the tarred version of my /home directory back into the new version (I'd shrunken it from about 50 gigs down to 30 gigs - obviously you have to have a rough idea that the compressed old version of it will fit).
Again, that's about 6 to 9 months ago so I no longer recall how I actually did this.
But you may want to look into doing that.
If I can, I'll post the stuff that I was told about, how that works.
maybe that helps/points you in the right direction (if nothing else, it would ensure that you have a back up of you /home, just in case things go wrong when you try the switch).
Ok, the only bit I found of how to do what I suggested in my previous post is this
Quote:
<snip>
> # cd /home
> # tar cvfz /home-backup.tar.gz .< Note the dot, it's important
> # cd
> # cd /home
> # tar xcfz /home-backup.tar.gz (no dot need this time)
at this point, it didn't like "xcfz" it replied something about only a
certain number of actruxz (and a few others) switch(es) so I tried the
one that I've used in the past when untarring stuff xvzf, which seemed
to work (well it appears to have as I'm typing this from my /home at the
moment).
The above is the bit that was about compressing the /home (I just chopped out the other bits where I was doing the partitioning).
So the stages, well as you can see from the # I had to cd into my /home directory, then did the tar command, then cd out of the /home. I'm presuming that that is the point where you would be doing the distro change/install - if you are gonna use a distro that has a graphic installer, then its easy just to tell the installer not to format that part of the hard drive where you have your /home. You then just have to make sure further down the line that you can mount the /home partition, as far as I understand, you just have to use the same username, plus you have to nominate the /home by putting an entry into your /etc/fstab.
When you then get to log in for the first time (again provided you've used the same username) then you should be able to check whether you have the stuff that you wanted to keep still in the /home. If you have, and after testing it, you then don't need to do the second part of the above (the bit in between the cd and the cd /home prior to where it says tar xcfz......). Because you will have managed to do retain the /home info/settings/customisation/data
If you find that you have problems, then that's the stage where you'd have to format the /home partition and then get the compressed /home-backup.tar.gz file and copy it into the new /home and uncompress it. from there you would probably find that you end up with /home/home/username - but you can the at least just move the files and/or directories to the correct place and then delete the backed up stuff.
Sorry if thats not very well explained, but I can't think of any other way to explain it!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.