Disks are missing sometimes


Some times when I power up RPi with Quad sata hat some of the disks are missing which results to no creation of my raid 10 array and filesystem.

After rebooting 2-3 times everything is back to normal. I have transferred all of my files there and I am afraid that one day I will lose everything.

Any idea why is this keep happening?

May be helpful: How i fixed the hang at boot and got my sata hat working with unionfs

Ok this worked for me but only after I put in rc.local sleep 15.

WIthout sleep 15 the rc.local didn’t load.

1 Like

you add it before mount and mergefs ?

Yes. It’s the first command I added before anything else.

If don’t put sleep then rc.local is not loaded on boot for some reason. I found it as a solution in a forum.

1 Like

Can you share you rc.local content please ?

Hi. Here is my script:

#!/bin/sh -e
# rc.local
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
# In order to enable or disable this script just change the execution
# bits.
# By default this script does nothing.

sleep 15

mount -o defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl /dev/disk/by-uuid/f62cea88-cca6-4180-bb9a-c006361a835c /srv/dev-disk-by-label-storage

# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
  printf "My IP address is %s\n" "$_IP"

exit 0
1 Like

Thank you look like mine