I want to reinstall ubuntu but I don't have to do it without losing any data in home partition(encrypted). How do I do this?
- Keeping your /home partition untouched, reinstall ubuntu (This time no seperate /home partition and keep the same user name)
- Use these guides to mount and remove remove encryption of your old encrypted /home partition
using chown and chmod, set the permissions and ownership correctly.
Set it as your new /home partition
For that type
Locate the UUID of your old /home partition.
Edit the fstab
sudo nano /etc/fstab
Add the following text to the fstab file on a new line, replacing the xxxxxxxx portion with the full UUID of your old home partition
UUID=xxxxxxxx /home ext4 nodev,nosuid 0 2
Rename your current home to home_old and create an empty /home folder
cd / && sudo mv /home /home_old && sudo mkdir /home