Welcome!

The kernel problem with recent updates has been solved. Find the solution here

Important information
-- Required MX 15/16 Repository Changes
-- Information on torrent hosting changes
-- Information on MX15/16 GPG Keys
-- Spectre and Meltdown vulnerabilities

News
-- Introducing our new Website
-- MX Linux on social media: here

Current releases
-- MX-18.3 Point Release release info here
-- Migration Information to MX-18 here
-- antiX-17.4.1 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

Keep home directory

Post Reply
User avatar
andreas
Forum Novice
Forum  Novice
Posts: 11
Joined: Tue May 08, 2018 3:21 pm

Keep home directory

#1

Post by andreas » Fri May 17, 2019 4:47 am

Hi,
on my old Think Pad T410 there is currently Ubuntu Linux installed. I would like to completely remove Ubuntu and replace it with MX Linux.
However, I would like to keep / transfer all the files of my Ubuntu home directory, to re-use it once MX Linux is installed.
Question: How can this be achieved the easiest way ? What do you recommend ?

Many thanks,
Andreas

User avatar
AK-47
Developer
Posts: 366
Joined: Sun Mar 24, 2019 7:04 pm

Re: Keep home directory

#2

Post by AK-47 » Fri May 17, 2019 5:29 am

Hello Andreas,

The MX Linux installer supports preserving the /home directory. You can find it if you use the custom disk setup option.
MX 18.2 only supports preserving /home that is not encrypted, however that will change with 18.3.

I would highly recommend you back up your important data on /home though, as there's still potential for things to go wrong. Consider this feature more as a matter of convenience, if it works then great.

If you are asking for how to backup your directory, you can either use dump, or copy the directory, or use tar:

Code: Select all

cd /home
sudo tar cpvzf home.tar.gz * .*
MX Linux 18.3 - Panasonic CF-30 - 3GB RAM - 160GB HDD - Core 2 Duo

User avatar
mxer
Forum Regular
Forum Regular
Posts: 205
Joined: Fri Sep 21, 2018 9:09 am

Re: Keep home directory

#3

Post by mxer » Fri May 17, 2019 7:46 am

Preferably, copy all your personal files to a back up disk, (it's always a good idea to have a back up of your files).

Whilst you can use the 'Reuse your home directory' option, you may end up with some hidden dot files that could possibly cause a problem with your new installation.
(FOSS, Linux, & BSD since 1999)

User avatar
andreas
Forum Novice
Forum  Novice
Posts: 11
Joined: Tue May 08, 2018 3:21 pm

Re: Keep home directory

#4

Post by andreas » Fri May 17, 2019 3:12 pm

Hi AK-47, hi mxer,

thanks for your feedback. I don't have a back-up disc to copy all my personal files. Would it also be possible to copy these on a USB stick ?
And if yes, would I need to compress my files, and what would be the commands using a terminal ?

Andreas

User avatar
manyroads
Forum Regular
Forum Regular
Posts: 1860
Joined: Sat Jun 30, 2018 6:33 pm

Re: Keep home directory

#5

Post by manyroads » Fri May 17, 2019 3:27 pm

andreas wrote:
Fri May 17, 2019 3:12 pm
Hi AK-47, hi mxer,

thanks for your feedback. I don't have a back-up disc to copy all my personal files. Would it also be possible to copy these on a USB stick ?
And if yes, would I need to compress my files, and what would be the commands using a terminal ?

Andreas
You may copy on to any media or cloud server of your choice, just be sure you have enough space to fit things on your destination. btw. It is a REALLY BAD idea not to have backups. Just sayin' :eek:
Pax vobiscum,
Mark Rabideau - http://many-roads.com
bspwm MX-18.3 kernel: 5.1.11-antix.1-amd64-smp
"For every complex problem there is an answer that is clear, simple, and wrong." H. L. Mencken
Testing: antiX19

User avatar
AK-47
Developer
Posts: 366
Joined: Sun Mar 24, 2019 7:04 pm

Re: Keep home directory

#6

Post by AK-47 » Fri May 17, 2019 7:32 pm

Also be sure to test the backup, by trying to read files etc. I learnt that important lesson the hard way ~10 years ago.
MX Linux 18.3 - Panasonic CF-30 - 3GB RAM - 160GB HDD - Core 2 Duo

User avatar
Jerry3904
Administrator
Posts: 25749
Joined: Wed Jul 19, 2006 6:13 am

Re: Keep home directory

#7

Post by Jerry3904 » Fri May 17, 2019 7:51 pm

With respect to commands, you can just right-click the home directory > Create Archive...
Production: 4.15.0-1-amd64, MX-17.1, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 8 GB, SSD 120 GB, Data 1TB
Testing: AAO 722: 4.15.0-1-386. MX-17.1, AMD C-60 APU, 4 GB
Personal: XPS 13, 4.18.0-19.3-liquorix, 4 GB

User avatar
andreas
Forum Novice
Forum  Novice
Posts: 11
Joined: Tue May 08, 2018 3:21 pm

Re: Keep home directory

#8

Post by andreas » Sat May 18, 2019 12:30 pm

Hi all,
thank you very much for your feedback and advice !

Post Reply

Return to “Installation”