Relocate Home folder

Hello,

I just have a silly question, I have a 256GB SSD and some data such musics and pictures are on it, Now I relocated my Home folder to there by writing its path in .profile file.
I know this is not a correct way, But I have one user and everything seems to work fine.
My question is, doesn't it make problem for system such update or other issues?
What is your suggestion to relocate the Home dir?

Regards.

Hi,

I am not sure if the method you have chosen will introduce problems.

I have however had success following the detailed instructions from this page on howtogeek.

Remember to take a backup before you begin.

Richard.

2 Likes

I think it's unlikely, other than maybe when Flatpak packages need updating themselves, since those are typically installed in your home directory. I suppose the same is true for Snaps. But even then, it's probably not going to crash or anything.

However, @rmorris' solution is much better since you are not changing the layout of the file system. Essentially, you move your files to another drive, and then mount that drive on top of the existing /home partition.
With this method, any application that interacts with the file system (like the file manager, Firefox, etc.) can't tell that there are two physical drives. All of that is handled transparently by the kernel.

1 Like

Thank you guys,
I have checked the link, I didn't do that steps, but I had a mounted drive and somehow editing .profile file as HOME=/mnt/[drive name] works just like that article, anyway I don't use Flatpak and Snapd... So I guess I am OK.
Thank you guys...

PS. I found a little issue with uBlockOrigin extension in FF , it doesn't work as expect, I had to remove FF config folder from main HOME dir and it works now

Be careful with that setup. You are telling your system that your home folder is in one location, but your actual home folder is still is at /home/zenzen (whatever your username is). This may work for some programs, but not others, and can cause issues that are difficult to track down.

1 Like

:grin: :grin: OK, I always have a Zorin OS USB drive to reinstall the OS :joy:

1 Like