Context
I recently migrated Windows 10 and Gentoo to 2 separate 250 GB SSD's and left my old traditional SATA HDD Drives in to use for Storage.
- I put
Users on a HDD for Windows during a new install.
- I used a GParted LiveCD to shrink my root file system, and copied it to the new drive, rebooted, and then deleted the old root I'm leaving
/home and a swap partition on my HDD Drive. This all works great, as I'm booting using the UUID's.
Since I'm on Gentoo, I need to move just the /usr directory from the SSD back to the original HDD I copied it from, so that the Portage Tree doesn't hog the small SSD space during updates. I'm not tagging this with gentoo, because this question is related to the proper command options needed for rsync For a bit of context, the portage tree is Gentoo's package repository. The entire repository is downloaded to the user's local machine before updating. Downloading it to the SSD would cause needless wear, as the tree is updated daily.
Issue
I found the following two questions related to what I'm trying to accomplish:
- ServerFault: Mount /usr on different partition
- AskUbuntu: How to move /usr to a new partition?
Now I need an answer to a few of my own questions:
- Can I use the
rsync command to move /usr while in the Gentoo install where /usr needs to be moved? The ServerFault question hints at this.
- If #1 isn't possible, and I use the GParted Live USB to issue the
rsync command, do the file/directory owners change since the LiveUSB is based on a Debian distribution?
- What are the proper options for
rsync besides -a for archive? The comments in the selected answer at AskUbuntu hint at adding -H to ensure hardlinks are followed, but then the OP contradicts the comments in his own answer.
Visual Aids
I need to move the /usr directory from the partition squared in red to the empty partition squared in blue, while the entire partition squared in red is running, or use a LiveCD to do so, without harming or changing the current permissions.
