LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 04-04-2017, 04:31 PM   #1
mogmog
Member
 
Registered: Jun 2012
Location: UK
Posts: 80

Rep: Reputation: Disabled
/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
 
Old 04-04-2017, 05:02 PM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
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.
Old 04-04-2017, 11:41 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 19,787

Rep: Reputation: 3574Reputation: 3574Reputation: 3574Reputation: 3574Reputation: 3574Reputation: 3574Reputation: 3574Reputation: 3574Reputation: 3574Reputation: 3574Reputation: 3574
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.
Old 04-05-2017, 03:53 PM   #4
trumpforprez
Member
 
Registered: Nov 2016
Location: UK
Distribution: Debian Jessie
Posts: 154

Rep: Reputation: Disabled
Quote:
Originally Posted by mogmog View Post
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.
Old 04-05-2017, 04:04 PM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,235
Blog Entries: 4

Rep: Reputation: 3263Reputation: 3263Reputation: 3263Reputation: 3263Reputation: 3263Reputation: 3263Reputation: 3263Reputation: 3263Reputation: 3263Reputation: 3263Reputation: 3263
"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.
 
Old 04-05-2017, 04:20 PM   #6
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by trumpforprez View Post
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.
Old 04-06-2017, 01:03 AM   #7
mogmog
Member
 
Registered: Jun 2012
Location: UK
Posts: 80

Original Poster
Rep: Reputation: Disabled
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
 
Old 04-06-2017, 08:25 AM   #8
mogmog
Member
 
Registered: Jun 2012
Location: UK
Posts: 80

Original Poster
Rep: Reputation: Disabled
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
 
Old 04-06-2017, 08:30 AM   #9
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,895

Rep: Reputation: 469Reputation: 469Reputation: 469Reputation: 469Reputation: 469
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.
Old 04-06-2017, 09:06 AM   #10
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by mogmog View Post
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.
Old 04-06-2017, 11:56 AM   #11
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,895

Rep: Reputation: 469Reputation: 469Reputation: 469Reputation: 469Reputation: 469
You would reformat & recreate file systems on selected partitions.
You wouldn't format a whole disk.
 
Old 04-06-2017, 12:43 PM   #12
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 17,426
Blog Entries: 10

Rep: Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249
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.
 
Old 04-07-2017, 01:22 AM   #13
mogmog
Member
 
Registered: Jun 2012
Location: UK
Posts: 80

Original Poster
Rep: Reputation: Disabled
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?
 
Old 04-07-2017, 05:04 AM   #14
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Yes, you can run that command as a user-owned cron.
See
Code:
man cron
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.
 
Old 04-07-2017, 11:02 AM   #15
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 17,426
Blog Entries: 10

Rep: Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249
Quote:
Originally Posted by mogmog View Post
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.
 
  


Reply

Tags
home, install


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
How to clean a home directory to install from scratch a previously installed distro? nomikos Linux - General 2 01-07-2012 09:32 AM
Clean install keeping /home partition. digger95 Slackware 10 04-19-2008 03:28 AM
how to install into home directory ishanarora Linux - Newbie 3 09-29-2007 03:25 AM
How to install to home directory. gloomz Linux - General 2 03-07-2007 12:24 PM
Does a new install of 10.0 destroy my /home directory? rwhitworth SUSE / openSUSE 3 10-24-2005 03:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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