Page 1 of 1

How do I move the Users/home directory to another volume?

Posted: 29 Nov 2023, 08:21
by danny6869
I would like to move `/Volume2/Users` to `/Volume1/Users`. How can this be acheived?

Basically, I don't like the home directories being on my RAID volume, as I am going to be experimenting with that, and I don't want to lose home dir files/folders while I work on it.

Thanks in advance!

Re: How do I move the Users/home directory to another volume?

Posted: 29 Nov 2023, 17:32
by TMzethar
Since you cannot directly see the User directory of two volumes at the same time on the file management page of TOS.
You can open an SSH connection and move them.
How to open a SSH connection

Re: How do I move the Users/home directory to another volume?

Posted: 30 Nov 2023, 11:30
by danny6869
So, if I ssh in and `mv /Volume2/User /Volume1/User`, the `/home` mount will still work?!

That is what I am worried about.

Re: How do I move the Users/home directory to another volume?

Posted: 30 Nov 2023, 17:01
by TMzethar
You can use all files in the folder as the target of the operation instead of the folder to avoid this issue:
For example: mv /Volume 2/User/* /Volume 1/User/
Generally speaking, copying is safer than cutting. It is recommended to use cp instead of mv.