[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to mount or link as extention of fs?



On 18/03/18 11:32, Dennis Wicks wrote:
Greetings!
I have separated my /home file system from root so I can
install new systems without clobbering it. To make it most
useful is there any way I can mount, link, whatever, it so
that it appears to be an extension of, or included in,
/home? That is not just another mount on the root fs.
TIA Dennis

Are you trying to separate your own (for example) /home/dennis while leaving other /home subdirectories on the /home filesystem? You can do this by mounting /home/dennis under /home. Just make a mount point /home/dennis and add fstab entries. Nested mount points work, and are the way other filesystems are mounted on root. The only tricky part is that your /home/dennis should still contain lost+found owned by root (if ext4) and you will need to move all files and directories into the root of the /home/dennis filesystem.

I recommend using a mount point with root:root ownership and no access to others to prevent unintentional modification while /home/dennis is not mounted.

Kind regards,

--
Ben Caradoc-Davies <ben@transient.nz>
Director
Transient Software Limited <https://transient.nz/>
New Zealand


Reply to: