Mount FAT32 partitions in UTF-8 mode

Fixes #21
This commit is contained in:
ValdikSS 2022-01-09 16:14:46 +03:00
parent 8354ffdc14
commit 6fc6f0ad94

View File

@ -253,7 +253,7 @@ then
ms-sys -e "$(get_dev_partition_num "${dev}" "1")" ms-sys -e "$(get_dev_partition_num "${dev}" "1")"
echo "${bold} == Mounting data partition ==${normal}" echo "${bold} == Mounting data partition ==${normal}"
mount "$(get_dev_partition_num "${dev}" "1")" "$partpath" mount -o utf8=true "$(get_dev_partition_num "${dev}" "1")" "$partpath"
# GPT FAT32 # GPT FAT32
elif [[ "$labeltype" == "gpt" ]]; elif [[ "$labeltype" == "gpt" ]];
@ -266,7 +266,7 @@ then
mkfs.vfat -n "${isolabel:0:11}" "$(get_dev_partition_num "${dev}" "1")" mkfs.vfat -n "${isolabel:0:11}" "$(get_dev_partition_num "${dev}" "1")"
echo "${bold} == Mounting data partition ==${normal}" echo "${bold} == Mounting data partition ==${normal}"
mount "$(get_dev_partition_num "${dev}" "1")" "$partpath" mount -o utf8=true "$(get_dev_partition_num "${dev}" "1")" "$partpath"
# GPT NTFS # GPT NTFS
elif [[ "$labeltype" == "gptntfs" ]]; elif [[ "$labeltype" == "gptntfs" ]];