I wish to mount a new disk at /disk on my raspberry server. My /home/iago-lito folder and the /root folder are standing on the SD card, which is fine to me. But I would like subsequent new user home folders to be stored on the disk.Instead of messing around with partitions and /home/newuser{1,2,3,..} mounting points, I intend to simply link each home folder to the disk, with:ln -s /disk/home/newuser1 /home/newuser1Is it okay to do something that simple? Are there downsides in terms of safety, performance or security?
Linking user's home to another disk
mount;users;symlink;disk;home
Creating symbolic links for each user home directory might get confusing if the amount of users grow and you have to take care of creating the symbolic links. Alternatively you also could configure a different user HOME directory than /home/<user> when creating the user.It also could be /disk/home/<user> which can also be changed/moved afterwards or for already existing users in /etc/passwd or by using usermod.Depending on your distribution, the option to change default user home directory when creating the user would be --home or --home-dir. In doubt look it up in the corresponding man page.An example for your case would be as follows.adduser newuser --home /disk/home/newuser