Still, some kind of progress 
So,
- After uncommenting the ‘root’ line in
fstab
:
- no access via SSH
- Yunohost will boot?
- After comenting out the
/mnt/hdd
line and both bind
lines:
- Yunohost does boot
- Access via web and SSH works
- but
- this way you have nothing in
/home
(it is in /home.bkp
and you have nothing in /var/mail
(it is in /var/mail.bkp
)
- maybe some programs recreate the directories under /home and /var/mail, confusing matters. Will you check?
The /mnt/hdd
line in fstab
should not hurt: it just makes things available, but does not activate anything. Will you try uncommenting that one and see if things still work, also after rebooting?
After the reboot, see that you can log in via SSH and that your stuff is indeed available under /mnt/hdd/home
and /mnt/hdd/var/mail
.
Copying was done cp -a
, to preserve ownership and permissions; your log shows correct ownership at least directory level.
Now, without changing fstab
, mount --bind /mnt/hdd/var/mail /var/mail
. See that it is mounted and ls
to verify contents.
Using a new terminal, make a second connection to your Yunohost to verify that SSH still works, or open a new tab to the web interface in your browser.
After that the same, but for the home directory. If anything makes stuff break, I suspect it is the home directories, because your user does not have a place to ‘come home’ when logging in.
If anything breaks after either mount --bind
commands, you can reboot, because we didn’t make the change persist in fstab
. If things keep working, enable first the mail
line in fstab
and then home
.
Finally, if for one reason or another, things already stop working after enabling the /mnt/hdd
line in fstdab
, you might try using /dev/sdb1
instead of UUID="5c55..."
So, summarizing once again:
- first uncomment the
/mnt/hdd
line in fstab
- check that everything still works, also after reboot
- if it does not, try the
/dev/sdb1
notation instead of UUID
- once booting with
/mnt/hdd
(one way or another) active in fstab
works
- bind mount /var/mail manually without changes in
fstab
, check that things work
- bind mount /home manually without changes in
fstab
, check that things work
- things keep working with manual bind mount?
- change
fstab
to enable /var/mail, check working
- change
fstab
to enable /home, check working
Good luck!