change FAT partition type to 0Ch from 0Bh (W95 FAT32 LBA was CHS/LBA)

This commit is contained in:
2024-10-03 21:00:49 -04:00
parent 36b8869140
commit 36e3bd968a
2 changed files with 3 additions and 2 deletions

View File

@@ -57,7 +57,7 @@ if [[ "$OSTYPE" == "linux-gnu"* ]]; then
# get first partition
firstpart=$(lsblk -ilp -o NAME $ld | tr '\n' ' ' | awk '{print $3}')
mkfs.vfat -v -F32 $firstpart
mkfs.vfat -v -F32 -S 512 $firstpart
# copy MBR while preserving partition table
dd if=$mbr_file of=$ld bs=1 count=440