I was trying to mount a network drive to a custom location within the /mnt folder (/mnt/NAS/GoFlex to be exact), but when I entered NAS/GoFlex as the folder name, it completely ignored the forward slash and named the folder NASGoflex instead.
I did create the folder structure manually beforehand too.
Using DietPi v6.14 Pine A64 (aarch64)
dietpi-drive_manager - Ignoring forward slashes (/)
Re: dietpi-drive_manager - Ignoring forward slashes (/)
@AndrewB
Thanks for your report. Just to verify: It was a samba drive, right?
Backslashes are currently removed by design, but from my point of view there is no reason to not allow sub directories inside /mnt.
I will fix it for v6.15, if Fourdee has no special reason for it.
Thanks for your report. Just to verify: It was a samba drive, right?
Backslashes are currently removed by design, but from my point of view there is no reason to not allow sub directories inside /mnt.
I will fix it for v6.15, if Fourdee has no special reason for it.
Re: dietpi-drive_manager - Ignoring forward slashes (/)
Yes, it was a Samba drive
Re: dietpi-drive_manager - Ignoring forward slashes (/)
PR up with above fix/solution + some other small improvements: https://github.com/Fourdee/DietPi/pull/2062
As a fast fix, also to test, you need to replace the following line
with
inside /DietPi/dietpi/dietpi-drive_manager.
As a fast fix, also to test, you need to replace the following line
Code: Select all
samba_fp_mount_target="/mnt/$(sed 's/\///g' <<< $G_WHIP_RETURNED_VALUE | sed 's/[[:space:]]/_/g')"
Code: Select all
samba_fp_mount_target="/mnt/${G_WHIP_RETURNED_VALUE//[[:space:]]/_}"