Permanently mount multiple directories from different disks under /

Posted by piotrek on Super User See other posts from Super User or by piotrek
Published on 2014-06-05T00:15:13Z Indexed on 2014/06/05 3:29 UTC
Read the original article Hit count: 336

Filed under:
|
|

I have SSD and HDD. Some directories like /var, /srv and /tmp should be on HDD, while /boot, /usr and /lib on SSD. But do I have to create separate partition for every single directory? I want to have 2 or so partitions. One for each disk and distribute directories as needed. Is it possible and how?

I've heard about symlinks, mount --bind, mhddfs but:

  • symlinks are treated differently by tools like cp, so I'm not sure if it's safe to have main system directories symlinked
  • I have no idea how can I use mount --bind or mhddfs in fstab

© Super User or respective owner

Related posts about linux

Related posts about partitioning