Let's say I'd like to keep /home
and /var
and possibly several more folders on one single separate partition, but all on the same partition. How should I accomplish this?
I know how I could put all those on individual partitions with the mount
command and editing fstab
, but how do I do if I want them all on the same partition that is separate from root partition?
So as an example. Let's say I have the root on /dev/sda1
and /home
on /dev/sda2
. No problems there. If I would want /var
on /dev/sda3
, that would not be any problem. But what if I want both /home
and /var
to be on /dev/sda2
?
I mean, you mount a partition to a folder, so you could for instance have this in fstab
:
/dev/sda1 //dev/sda2 /home/dev/sda3 /var
But I want both /home
and /var
to be on /dev/sda2
while everything else is on /dev/sda1
. I fail to see how the question marked as a dupe, Move home folder to second drive, answers this.