Fstab 2x mounting to /home


Hi, now I look at my server and see in logs that fstab is mounting to /home second place. Here is my fstab:

/dev/mapper/centos-root / xfs defaults 0 0
UUID=3809867c-32ff-427a-af9d-5b742cd287b1 /boot xfs defaults 0 0
/dev/mapper/centos-home /home xfs defaults 0 0
/dev/mapper/centos-swap swap swap defaults 0 0
/var/lib/nethserver/home /home none defaults,bind 0 0

It is installed from CentOS because NS7B1 and also NS7B2 freezes in booting from instalation DVD/USB. There are two disks in mirror. How can I modify fstab for properly work? Delete /var/lib/nethserver/home and than link it to /home?


Hi @Mirko10,

the second mount is a “bind” one, that is a kind of “link” to /home. Apart from some log lines, I hope it is not an issue! It is required for backward compatibility with configurations from ns6.

Hi @davidep, thanks for reply, but when I look at /home, it is empty. And in /var/lib/nethserver/home I see users home folders.
But I need mount /dev/mapper/centos-home for home and mail folders, because it is 2x2TB raid.

You should edit your fstab like this:

  • /dev/mapper/centos-home mounts to /var/lib/nethserver/home
  • /dev/mapper/centos-home bind mounts to /home

thanks, but should it be like this?

/dev/mapper/centos-home mounts to /var/lib/nethserver/home
/var/lib/nethserver/home bind mounts to /home

Yes, sorry, my bad :slight_smile:

Thanks I will try.