Posts: 1
Joined: Thu Jun 13, 2019 3:16 am

Non-standard path to user homes

Thu Jun 13, 2019 3:41 am


I am new to this forum and RPi and have a question.

On my RPi 3+, I have set up an external drive to be mounted on system start. I have an entry in /etc/fstab:

Code: Select all

UUID=fd8b5119-27bd-e908-74c7-371e72514ff0 /media/data ext3 defaults 0 3
I've got the whole /home folder there, which is not the root folder of the volume. Copied the home folders from an older NAS system and made the same users with the same IDs on the RPi.

I've synchronised the original system /home folder on the SD card with that on the external drive, deleted the original folder, and made a symlink to /media/data/home instead of it.

Now, my Raspberry complains about /home not being a directory:

Code: Select all

Jun 12 01:37:49 borova18 systemd-tmpfiles[369]: "/home" already exists and is not a directory.
What is the clean way to use the /media/data/home directory? Should I replace the symlink with an empty directory and add another entry in /etc/fstab mounting the /media/data/home directory on /home with the bind flag?

Cheers and greetings from Plzeň A. K. A. Pilsen, Czechia A. K. A. Czech Republic, part of former Czechoslovakia, Central Europe

Posts: 2994
Joined: Thu May 05, 2016 9:33 am
Location: Paris, France

Re: Non-standard path to user homes

Thu Jun 13, 2019 1:12 pm

A simple mount will suffice I believe. Remove the symlink and create an empty directory /home to serve as mount point.
"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème." Les Shadoks, J. Rouxel

Return to “Troubleshooting”