D
D
DimAntushev2018-08-31 14:17:31
linux
DimAntushev, 2018-08-31 14:17:31

How to move separate user folders "Desktop" and "Downloads" to another drive?

Good afternoon.
There are conditionally several users: user1-user10.
There are two partitions: / dev / sda3 - / home (SSD 330GB) and / dev / sdb1 - / data (HDD RAID 1 3.6 TB)
Please tell me how you can transfer the "Desktop" and "Downloads" folders to sdb1 in folder /data/users/
That is, it should look like this:
/data/users/user1/Desktop
/data/users/user1/Downloads
...
/data/users/user10/Desktop
/data/users/user10/Downloads
This the separation is necessary so that all local configuration files of installed programs remain in the /home /dev/sda1 directory of the faster SSD drive, while the user's "Desktop" and "Downloads" directories are on the larger RAID 1 HDD.
Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Radjah, 2018-08-31
@DimAntushev

Symlink to do, for example.

V
vaut, 2018-08-31
@vaut

mount --bind
in fstab you prescribe which directories to mount on top of which and that's it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question