Moving $HOME to a separate data partition?

Bo Berglund bo.berglund at gmail.com
Wed Oct 13 21:26:00 UTC 2021


On Wed, 13 Oct 2021 20:59:06 +0200, Bo Berglund <bo.berglund at gmail.com> wrote:

>But I am not sure if I should just rsync the whole $HOME dir as is and then
>mount it to /home/bosse in fstab.
>
>With *all* of the home dir on the data partition as one entity mounted to the
>/home/bosse dir I would not have to go through the hooplas like above.
>
>If I keep the overall file structure the same as now even though the data has
>changed partition, will then things like the nfs and samba shares I have
>configured still work if the roots are "in place" albeit being mounted from
>another partition?

Replying to self:
-----------------
After considering all of the issues in my original post and reading this howto
for moving the home dir:
https://www.maketecheasier.com/move-home-folder-ubuntu/

I decided to do just that.

It will result in my home dir looking exactly like before and everything in the
same place in the file system, but with all of the data occupying the bulk of
disk space relocated to a separate partition.

I am just now waiting for the rsync step to finish, it will take some time
because we are talking about circa 150 GiB of data.
An hour or two at least on this slow machine with source and destination on the
same physical (2010 vintage mechanical) drive also slowing down the process.
The DParted operations last night took 1-2 hours for shrinking partitions and
copying content from one drive to the other.

We'll see tomorrow how it plays out.
I am hopeful.


-- 
Bo Berglund
Developer in Sweden





More information about the ubuntu-users mailing list