Do not use /dev/sda1 and /dev/sdb1. These names may change on each reboot. Use the predictable UUID paths of the mount folders, something like this: /srv/dev-disk-by-uuid-5j2b7416-959e-445b-a78c-81690k1e22e7
I have now managed to connect the two hard drives together with RAID 1.
I still have problems when I don't want to log in with public.
If I use the username pi with my password to log in via Windows, it does not accept it