From 4bc256385c1c52a2310652d3b8147b16901fe2ca Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 31 Jan 2023 17:59:26 +0100 Subject: [PATCH] Allow mounting ntfs on alpine --- .templates/92-local_mounts.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.templates/92-local_mounts.sh b/.templates/92-local_mounts.sh index 491a8bc40..fc23fb5de 100755 --- a/.templates/92-local_mounts.sh +++ b/.templates/92-local_mounts.sh @@ -43,6 +43,11 @@ if bashio::config.has_value 'localdisks'; then # shellcheck disable=SC2015 [ -d /share/"$disk" ] && mount "$devpath"/"$disk" /share/"$disk" || true # Mount + # Mount if ntfs + if [[ command -v "apk" &>/dev/null && "$(fdisk -l "$devpath"/"$disk")" == *NTFS* ]]; then + bashio::log.info "NTFS on Alpine detected, mounting with ntfs-3g" + ntfs-3g "$devpath"/"$disk" /mnt/"$disk" || true + fi # shellcheck disable=SC2015 mount "$devpath"/"$disk" -o "uid=$PUID,gid=$PGID" /mnt/"$disk" && bashio::log.info "Success! $disk mounted to /mnt/$disk" || \ (mount "$devpath"/"$disk" /mnt/"$disk" && bashio::log.info "Success! $disk mounted to /mnt/$disk") || \