This question has surely been answered somewhere else but I'm having trouble finding it.
I'm in a situation where I'm moving my root file system from a Debian install off of a hardware RAID and onto an internal USB. I want to keep the partition small and relatively secure. The goal is to keep frequent read/writes off the root partition for stability reasons. I have prepped a RAID10 disk with a few different partitions, one for /home and I will put the rest of the movable directories on another partition and bind them in fstab.
The question I have is, what directories can/should I move out of the root partition and mount them with fstab?
I know /bin, /sbin, /etc, /boot(kinda), /dev, /mnt, and others can't/shouldn't be moved out of the root partition as they are required on boot and well, fstab to even function.
I've glanced at the FHS and saw a list of required directories but according to other answeres such as this here, /var, /tmp, /usr, and others can be moved and in some instances, reccomended.
Note: When I mention "move", I mean to say to keep the parent directory though move the contents.
/bootis usually a separate partition on Ubuntu and Ubuntu derivatives./devis a virtual filesystem./mntusually contains nothing. On Arch and Fedora, everything in/binand/sbinhas been moved to/usr, and that can be a separate partition as well. – muru Oct 27 '19 at 05:14