[SOLVED] /home directory and clean install of LM18.1
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.
If my /home directory is in its own partition, is it safe from being overwritten when formatting old LM17.1 & clean installing 18.1?
And directories like desktop, pdf & Thunderbird are in the /home directory? I can't easily check as not at the pc
Thanks
If you say 'format LM17.1', I imagine you mean upgrading the old Linux Mint OS with the new one.
Therefore the LM17.1 OS exists on your current /root partition.
I don't have an OS with /root and /home on 2 different partitions.
However, if you upgrade Mint17 to Mint18 on the /root partition, it is possible that the /root partition will be assigned with a new UUID.
This may mean the upgraded OS can't see your old /home partition.
Hopefully, there are knowledgeable members who can advise further.
But failing that, I would simply suggest save your /home directory onto a separate partition.
Install the new Mint18 OS with a new /root and /home partition.
And then transfer the old /home directory onto your newly installed OS.
Also, you may just need to to do:
Code:
sudo apt-get dist-updrade
to upgrade from Mint 17 to Mint18.
Of course, a lot of Linux Mint people can answer this question very quickly.
My understanding is that as LM17.n is based on Ubuntu 14.04 and that lm18 is based on Ubuntu 16, it is not recommended to upgrade and that a clean install is the correct route.
I have been on the LM-help orc channel where I haven't been helped, which is why i came here - I've always had better luck on LQ than the LM resources.
I haven't been able to copy my home directory safely as xserver is not working (HWE EOL message). I have tried rsync and various sudo CP commands but have not succeeded.
Most of my data is on a separate local disk & NAS, but I would like to recover my thunderbird profile, & a few other folders like downloads, pdf & desktop. As well as my htdocs in lampp.
Thanks
A clean install would be to install from install media, overwriting (formatting) / but being careful not to overwrite /home.
You will need to recreate the same same user names, in the same order as they presently exist.
This is so the first user corresponds to a UID of 1000 and likewise for other users.
You can find the user <-> UID correspondence in /etc/password.
Note that both /etc and /var also contain important configuration data, so if you've configured "stuff" then
you might want to preserve things like crontabs.
please read op's previous thread, most issues have been adressed & answered there.
regarding the question of this thread, i think posts #2 and #3 say it all.
I'm not sure what benefits having /home on a separate partition are - it was recommended on various installation instructions. In my situation (major upgrade from trusty to xenial), what I could expect if it (/home) remains ok, having installed the new OS - should the system pretty much be as it was before, just with a new 'heart' (OS)?
Habitual, lesson learned. Some sort of ordered backup has been on my to-do list, but always later... That said, I occasionally copy my email to NAS and my work/project data from its separate HDD to NAS. I'd like to set up some regular system for this. Your rsync commands need to be run manually or have you set it up to run automatically?
I'm not sure what benefits having /home on a separate partition are - it was recommended on various installation instructions.
IMNSHO:
it makes migration and system changes/upgrades etc. easier on NO GUI systems.
when you have a gui, there's just so much more stuff in your $HOME, and so much that can casue breakage, and many many config files you never even opened, let alone edited yourself,... it can cause a system to fail after login.
therefore, for gui systems i do not recommend a separate /home partition, but rather a separate data partition, with all the large media files and whatnot in it. Some directories can be symlinked to e.g. ~/Documents, ~/Music etc.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.