Mounting is going wrong on nextcloudpi

Hi,

After one of the last updates nextcloud mounted the wrong drives to the wrong /media/USBdrive, and now even mounted USBdrive -> /media/USBdrive1 which doesn`t make much sense.

So I have a SSD /dev/sda1 called myCloudDrive which should be mounted to /media/USBdrive

And an HDD called zexternalhdd which should be mounted to /media/USBdrive1#

ls of /media gives me

fritz@nextcloudpi:/media$ ls -al
total 28
drwxr-xr-x  4 root root 4096 Apr  8 19:56 .
drwxr-xr-x 22 root root 4096 Nov  4 15:02 ..
lrwxrwxrwx  1 root root   16 Apr  8 19:56 USBdrive -> /media/USBdrive1
drwxr-xr-x  3 root root 4096 Apr  8 03:00 USBdrive1
drwxr-xr-x  1 root root   60 Dec  5 11:10 myCloudDrive

Automount enabled, no settings changed until this happened.

lsblk:

fritz@nextcloudpi:/media$ lsblk 
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda           8:0    0 465.8G  0 disk 
`-sda1        8:1    0 465.7G  0 part /media/myCloudDrive
mmcblk1     179:0    0  59.7G  0 disk 
`-mmcblk1p1 179:1    0    59G  0 part /
zram0       253:0    0    50M  0 disk /var/log
zram1       253:1    0 249.6M  0 disk [SWAP]
zram2       253:2    0 249.6M  0 disk [SWAP]
zram3       253:3    0 249.6M  0 disk [SWAP]
zram4       253:4    0 249.6M  0 disk [SWAP]
zram5       253:5    0 249.6M  0 disk [SWAP]

sometimes my external hdd doesn’t show up for some reason, like in this case.

It would be perfect to get this working again, and prevent it from happening again, maybe by permanently assigning the drives to the folders.

Have you tried disabling automout and mounting it via fstab with UUID? Are the external drives removed often or permanent?

sounds like a HW issue, make sure you can mount manually, and check your power supply