Can I change /home to different drives on specific users?
Hello, so this is the first time I have ever had a secondary hard drive on a linux machine.
I have a 64 GB SSD and a 500 GB HDD. Here is how it is setup. Code:
[root@localhost ~]# df I am running a game server, and my goal here is to have the files for the game server (that 1 special user) to be written and read on the SSD while backups and everything else gets put on the HDD. Thank you in advance for any help :D |
A user's home directory doesn't have to be in /home, that's just the default. When you create the user you can put their home directory anywhere you want, like /home2/user, which would live on the SSD. Alternatively, you could keep their home directory at /home/user, but make /home/user a symlink to a directory elsewhere on the filesystem, somewhere on the SSD.
|
You should be able to double check the physical devices
Code:
lvs --devices There's no reason why you can't mount the SSD at eg /ssd and create eg /ssd/home/games and point the /etc/passwd entry of 'games' to there ie /ssd/home/games. |
All times are GMT -5. The time now is 06:11 PM. |