Nextcloudpi nc-automount problem with secondary HDD

Hello! I have formatted 2 USB HDD with nc-format-USB tool. But only primary HDD is automounting (luckily that one :slight_smile: ). I see, that /media folder has two soft links for secondary HDD. How should I fix this?

NextCloudPi version v1.34.7
NextCloudPi image NextCloudPi_11-27-20
distribution Debian GNU/Linux 10 \n \l
automount yes
USB devices sda sdb
datadir /media/primaryDrive/ncdata

i@nextcloudpi:~ $ ls -altr /media
total 28
drwxr-xr-x 21 root root 4096 Jan 29 16:10 …
drwxr-xr-x 1 root root 38 Jan 30 20:50 primaryDrive
drwxr-xr-x 4 root root 4096 Feb 12 15:40 secondaryDrive
lrwxrwxrwx 1 root root 21 Feb 12 18:39 USBdrive1 -> /media/secondaryDrive
lrwxrwxrwx 1 root root 19 Feb 12 18:39 USBdrive -> /media/primaryDrive
lrwxrwxrwx 1 root root 22 Feb 12 18:39 USBdrive2 -> /media/secondaryDrive1
drwxr-xr-x 4 root root 4096 Feb 13 06:39 .
pi@nextcloudpi:~ $

pi@nextcloudpi:~ $ df -hT
Filesystem Type Size Used Avail Use% Mounted on
/dev/root ext4 59G 3.9G 53G 7% /
devtmpfs devtmpfs 3.7G 0 3.7G 0% /dev
tmpfs tmpfs 3.9G 0 3.9G 0% /dev/shm
tmpfs tmpfs 3.9G 8.6M 3.9G 1% /run
tmpfs tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
/dev/mmcblk0p1 vfat 253M 30M 223M 12% /boot
/dev/sdb1 btrfs 932G 23G 908G 3% /media/primaryDrive
tmpfs tmpfs 782M 0 782M 0% /run/user/1000

pi@nextcloudpi:~ $ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 931.5G 0 disk
└─sda1 8:1 0 931.5G 0 part
sdb 8:16 0 931.5G 0 disk
└─sdb1 8:17 0 931.5G 0 part /media/primaryDrive
mmcblk0 179:0 0 59.7G 0 disk
├─mmcblk0p1 179:1 0 256M 0 part /boot
└─mmcblk0p2 179:2 0 59.4G 0 part /
pi@nextcloudpi:~ $

● nc-automount.service - Automount USB drives
Loaded: loaded (/usr/lib/systemd/system/nc-automount.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2021-02-13 06:39:12 GMT; 1h 22min ago
Main PID: 9177 (udiskie)
Tasks: 3 (limit: 4915)
CGroup: /system.slice/nc-automount.service
└─9177 /usr/bin/python3 /usr/bin/udiskie -NTF

Feb 13 06:39:12 nextcloudpi systemd[1]: Starting Automount USB drives…
Feb 13 06:39:12 nextcloudpi bash[9175]: rmdir: failed to remove ‘/media/primaryDrive’: Device or resource busy
Feb 13 06:39:12 nextcloudpi bash[9175]: rmdir: failed to remove ‘/media/secondaryDrive’: Directory not empty
Feb 13 06:39:12 nextcloudpi bash[9175]: rmdir: failed to remove ‘/media/USBdrive’: Not a directory
Feb 13 06:39:12 nextcloudpi bash[9175]: rmdir: failed to remove ‘/media/USBdrive1’: Not a directory
Feb 13 06:39:12 nextcloudpi bash[9175]: rmdir: failed to remove ‘/media/USBdrive2’: Not a directory
Feb 13 06:39:12 nextcloudpi systemd[1]: Started Automount USB drives.
Feb 13 06:39:38 nextcloudpi udiskie[9177]: failed to mount /org/freedesktop/UDisks2/block_devices/sda1: Timeout was reached

pi@nextcloudpi:~ $ systemctl status nc-automount-links
● nc-automount-links.service - Monitor /media for mountpoints and create USBdrive* symlinks
Loaded: loaded (/usr/lib/systemd/system/nc-automount-links.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2021-02-13 06:39:12 GMT; 1h 23min ago
Main PID: 9180 (nc-automount-li)
Tasks: 4 (limit: 4915)
CGroup: /system.slice/nc-automount-links.service
├─9180 /bin/bash /usr/local/etc/nc-automount-links-mon
├─9181 inotifywait --monitor --event create --event delete --format %f %e /media/
├─9182 grep --line-buffered ISDIR
└─9183 /bin/bash /usr/local/etc/nc-automount-links-mon

Feb 13 06:39:12 nextcloudpi systemd[1]: Started Monitor /media for mountpoints and create USBdrive* symlinks.
Feb 13 06:39:12 nextcloudpi nc-automount-links-mon[9180]: Setting up watches.
Feb 13 06:39:12 nextcloudpi nc-automount-links-mon[9180]: Watches established.

Seems, that my secondary HDD was broken, i replaced it and now everything works ok. But these old mounts and soft links are in /media/ folder still. Is there way to clean/refresh them?