I have dietpi installed on a raspberry pi with a usb hard drive mounted to /mnt/HDD. I am trying to access the files on the hard drive from my computer using proftpd. I set it up that / is shared.
When I log into the ftp, it opens to root directory. I can access all folders except /mnt. When I select /mnt, it loads indefinitely. There aren’t any error messages.
I can view /mnt without any issues via SSH.
Any ideas on why this happening and how to fix it?
#External Drives--------------------------------------------------- #NB: Please use dietpi-drive_manager to setup and control your external drives.
samba Client------------------------------------------------------
#/mnt/samba . Please use dietpi-config and the Networking Options: NAS menu to setup this mount
#FTP Client Mount--------------------------------------------------
#/mnt/ftp_client . Please use dietpi-config and the Networking Options: NAS menu to setup this mount
#NFS Client Mount--------------------------------------------------
#/mnt/nfs_client . Please use dietpi-config and the Networking Options: NAS menu to setup this mount
a swapfile is not a swap partition, no line here
use dphys-swapfile swap[on|off] for that
UUID=2016-11-15-22-03-09-00 /mnt/2016-11-15-22-03-09-00 auto defaults,noatime,nofail,x-systemd.automount 0 0
UUID=6007-F982 /mnt/6007-F982 auto defaults,noatime,nofail,x-systemd.automount 0 0
UUID=1c2eb970-8839-3b51-9555-1d17a206366b /mnt/1c2eb970-8839-3b51-9555-1d17a206366b auto defaults,noatime,nofail,x-systemd.automount 0 0
UUID=A4D2134CD213225A /mnt/HDD auto defaults,noatime,nofail,x-systemd.automount 0 0
UUID=37d6e728-ed1a-43fe-b8da-ba4af4ee9a18 /mnt/37d6e728-ed1a-43fe-b8da-ba4af4ee9a18 auto defaults,noatime,nofail,x-systemd.automount 0 0
>
Yep, looks like you have not unmounted drives on your system, in dietpi-drive_manager, before physical removal. If you did, they would be commented out (disabled).
As the fstab entries still exists, the system still thinks the drives are available and may hang commands/dir browsing in /mnt (issue with x-systemd.automount).
You need to manually cleanup and remove unused entries in /etc/fstab.
The following unused entries/lines can be removed in /etc/fstab:
```text
UUID=37d6e728-ed1a-43fe-b8da-ba4af4ee9a18
UUID=1c2eb970-8839-3b51-9555-1d17a206366b
UUID=6007-F982