LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 05-22-2022, 09:38 AM   #1
posec
LQ Newbie
 
Registered: May 2022
Distribution: MX Linux
Posts: 2

Rep: Reputation: Disabled
How to upgrade distro with external and encrypted /home?


Tried to ask help from MX Linux forums, but haven't got any response there...


So I am planning to upgrade from MX 19.4 to MX 21.1. I have my /home encrypted on external SSD.

I made a test setup in VBox, where I created a system similar to my current with external and encrypted home.


- I installed the MX 21.1 to the system drive using automatic allocation and formatting
- After installing and reboot I mounted the home drive from Thunar and changed its new name to crypttab file
- I moved the modified crypttab and fstab to /etc
- I renamed the useless /home to home.orig
- I created a new /home
Now when starting the system, it lets me enter the crypt key.

But after that when booting in case I select systemd, it gives error "failed to start Entropy Daemon based on the HAVEGE algorithm" and goes to CLI login.

If I select non systemd login I can log in with root in CLI. When I checked directories, it seems that everything is in correct place, but logging in does not work and the external home drive is still mounted in /media.


Also VBox changes the UUID of the external partition, even though I select "keep disk names" option while cloning the workable base system. Renaming the drive to crypttab accordingly did not solve the problem.
 
Old 05-23-2022, 02:01 AM   #2
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,828
Blog Entries: 1

Rep: Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069
If it was me, I'd remove /home from fstab, do the upgrade, then add /home back to fstab and setup crypt for it.
 
Old 05-23-2022, 11:54 PM   #3
Crippled
Member
 
Registered: Sep 2015
Distribution: MX Linux 21.3 Xfce
Posts: 595

Rep: Reputation: Disabled
I never seen your post on the MX Linux forums which could be why you didn't get any answers there. Anyway, first back up everything to a separate drive. When you install MX21 you select preserve home and then install it. Your home will still be there. Just make sure you use the same password as your home folder encryption when you encrypt.
 
Old 05-24-2022, 06:07 AM   #4
posec
LQ Newbie
 
Registered: May 2022
Distribution: MX Linux
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Crippled View Post
I never seen your post on the MX Linux forums which could be why you didn't get any answers there.
I posted my topic to Install-section, I have noticed not many users go there, as getting answers on that subforum is often really difficult.

Isn't there really any simple process such as:
- backup existing crypt data (key, hashes etc)
- detach the home drive
- install the new base system
- attach home drive and restore the crypt data
- continue using the computer with new system

I suppose the crypting adds some extra steps there, as it seems to require wiping the disk completely first. I really don't know how it works under the hood, as I just found the commands needed to make encryption and nothing failed and here I am.
 
Old 05-24-2022, 07:17 AM   #5
Crippled
Member
 
Registered: Sep 2015
Distribution: MX Linux 21.3 Xfce
Posts: 595

Rep: Reputation: Disabled
Quote:
Originally Posted by posec View Post
I posted my topic to Install-section, I have noticed not many users go there, as getting answers on that subforum is often really difficult.

Isn't there really any simple process such as:
- backup existing crypt data (key, hashes etc)
- detach the home drive
- install the new base system
- attach home drive and restore the crypt data
- continue using the computer with new system

I suppose the crypting adds some extra steps there, as it seems to require wiping the disk completely first. I really don't know how it works under the hood, as I just found the commands needed to make encryption and nothing failed and here I am.
I still don't see your post there. If I couldn't see your post there then others couldn't see your posts there which explains why you did receive any response. This is due to so many posts being pinned that show up first and new posts are displayed after which buries them making them hard to find which is a poor forum design. There is a simple intuitive process by using the G.U.I. MX Linux installer, but it seems you are doing it the complicated way by using the command line. If you would of used the G.U.I. MX Linux installer you wouldn't have to wiped your home folder clean because it has the option to preserve the home folder. Next time you don't hear any responses from your posts in a few days I would recommend bumping it even if it would cause the moderators to scold you for bumping it. Explain to them your post got buried because of so many pinned posts. I wish they would put pinned posts in a separate section this way new posts won't get buried.
 
  


Reply



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
LXer: Debian-Based antiX MX-16.1 Distro Introduces Experimental Encrypted Home Folders LXer Syndicated Linux News 0 06-11-2017 08:37 AM
Can I have an encrypted HD and a non-encrypted HD in the same computer? grumpyskeptic Linux Mint 1 02-15-2017 05:21 PM
Resizable encrypted LVM requiring just one password on boot (encrypted volume group)? Nyyr Linux - Software 9 01-24-2013 05:52 AM
New HDD install w/data recovery from old HDD w/different distro w/encrypted /home forbinproject Linux - Laptop and Netbook 1 02-27-2012 10:18 PM
upgrade to Ubuntu 11.10 with encrypted home ddaas Ubuntu 1 11-22-2011 02:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

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