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 |
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-04-2017, 04:31 PM
|
#1
|
Member
Registered: Jun 2012
Location: UK
Posts: 91
Rep:
|
/home directory and clean install of LM18.1
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
|
|
|
04-04-2017, 05:02 PM
|
#2
|
LQ Veteran
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Rep:
|
No. not safe. you could easily format it it during install.
"Something else"... mount at /home - do not format.
|
|
1 members found this post helpful.
|
04-04-2017, 11:41 PM
|
#3
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,251
|
And if you do it that way, it is safe. I do it all the time. However things can still go wrong - note my sig.
|
|
1 members found this post helpful.
|
04-05-2017, 03:53 PM
|
#4
|
Member
Registered: Nov 2016
Location: UK
Distribution: Debian Jessie
Posts: 154
Rep:
|
Quote:
Originally Posted by mogmog
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.
|
|
1 members found this post helpful.
|
04-05-2017, 04:04 PM
|
#5
|
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,870
|
"Formatting" ... anything ... completely erases it.
But if you are simply upgrading, from one version of Linux to another, there's no need to format before doing so. (In fact, you would not do that.)
You can expect that Linux-upgrade procedures will not mess with /home.
|
|
|
04-05-2017, 04:20 PM
|
#6
|
LQ Veteran
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Rep:
|
Quote:
Originally Posted by trumpforprez
Also, you may just need to to do:
Code:
sudo apt-get dist-updrade
to upgrade from Mint 17 to Mint18.
|
Negative. Update Manager is the recommended method.
|
|
1 members found this post helpful.
|
04-06-2017, 01:03 AM
|
#7
|
Member
Registered: Jun 2012
Location: UK
Posts: 91
Original Poster
Rep:
|
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
|
|
|
04-06-2017, 08:25 AM
|
#8
|
Member
Registered: Jun 2012
Location: UK
Posts: 91
Original Poster
Rep:
|
I had another go at sudo cp. I think I had missed the -r flag off. I now appear to have my /home & /opt directories copied successfully.
Before I format the hard disk, are there any other directories worth retrieving?
Thanks
|
|
|
04-06-2017, 08:30 AM
|
#9
|
Senior Member
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,950
|
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.
|
|
1 members found this post helpful.
|
04-06-2017, 09:06 AM
|
#10
|
LQ Veteran
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Rep:
|
Quote:
Originally Posted by mogmog
I had another go at sudo cp. I think I had missed the -r flag off. I now appear to have my /home & /opt directories copied successfully.
Before I format the hard disk, are there any other directories worth retrieving?
Thanks
|
7 years and exactly two /home partitions later...
I still backup to USB using rsync
Code:
cd && sync && ionice -c 3 rsync -azv . /media/jj/external/debian/ --delete
backups you should have had before this, just sayin' it doesn't help.
But you said /home is its own, so you're only half upside-down.
Good luck, take it slow.
|
|
1 members found this post helpful.
|
04-06-2017, 11:56 AM
|
#11
|
Senior Member
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,950
|
You would reformat & recreate file systems on selected partitions.
You wouldn't format a whole disk.
|
|
|
04-06-2017, 12:43 PM
|
#12
|
LQ Addict
Registered: Dec 2013
Posts: 19,872
|
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.
|
|
|
04-07-2017, 01:22 AM
|
#13
|
Member
Registered: Jun 2012
Location: UK
Posts: 91
Original Poster
Rep:
|
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?
|
|
|
04-07-2017, 05:04 AM
|
#14
|
LQ Veteran
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Rep:
|
Yes, you can run that command as a user-owned cron.
See something like
Code:
cd /home/user/ && /sbin/sync && /usr/sbin/ionice -c 3 /usr/bin/rsync -azv . /media/jj/external/debian/ --delete
This ^^^ is non-functional, on purpose.
|
|
|
04-07-2017, 11:02 AM
|
#15
|
LQ Addict
Registered: Dec 2013
Posts: 19,872
|
Quote:
Originally Posted by mogmog
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.
|
|
|
All times are GMT -5. The time now is 03:18 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
|
|