Moving several users to a new partition / Splitting home between multiple drives
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Moving several users to a new partition / Splitting home between multiple drives
Hi!
We currently have 5 users on our home directory (hdd1, raid0). Now, we got a new harddrive and want to move 2 of the users to that new drive. The filesystem should still be able to treat all users as coming from the same home directory.
So, basically we want to split our home directory between multiple partitions.
Is this possible?
Generally I'd suggest using an LVM container to flexibily aggregate all disk into a single filesystem for home, but certainly you could do something less elegant and mount another partition under /home, and update those user directories to, say, /home/anotherdisk/userE. Really depends what level of solution you're after here.
LVM would be weird, as far as i understood it, some RAID protection is recommended. The thing is, our system runs a 2x2 TB HDD in RAID, and our new HDD is just added to the system without being part of the RAID system. We just need the space.
If i understood you correctly, you suggest to mount the new drive under /home? That's it?
Then i just move the user dirs to the new disk with usermod?
In the end, i would like to have my home showing all user directories as if they were in a single folder. Is that feasible that way?
Innocent question.
Why not simply re-specify the user's home directories, as directories under another partition on the new HDD ? A user's home directory is simply a directory after all. Or do you have some other special requirement to have all the users branch to separate directories under a single unified \home directory ?
Is there some reason that a soft link would not work.
>> ln -s /sdab/home/user4 /home/user4
A listing of /home will still show all the directories.
The user will not notice.
It only adds a few characters to the length of the expanded file name, if they even see that.
Easy to implement, easy to change, easy to modify.
All the files of the moved 2 users are all on one drive.
Can backup /home by specifying each user independently, or specify to follow soft links.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.