From ed82962baefdf702e4f3a112b888a594c8dbe03a Mon Sep 17 00:00:00 2001 From: Recolic Date: Thu, 25 Nov 2021 17:25:40 +0800 Subject: [PATCH] Bug fix: MBF-FAT32 mode not working on /dev/loop0 ``` == Writing bootloader == /dev/loop0 seems to be a disk partition device, use the switch -f to force writing of a master boot record ``` --- windows2usb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows2usb b/windows2usb index 218a3a4..529bbab 100755 --- a/windows2usb +++ b/windows2usb @@ -244,7 +244,7 @@ then mkfs.vfat -n "${isolabel:0:11}" "$(get_dev_partition_num "${dev}" "1")" echo "${bold} == Writing bootloader ==${normal}" - ms-sys -7 "${dev}" + ms-sys -7 -f "${dev}" ms-sys -e "$(get_dev_partition_num "${dev}" "1")" echo "${bold} == Mounting data partition ==${normal}"