change FAT partition type to 0Ch from 0Bh (W95 FAT32 LBA was CHS/LBA)
This commit is contained in:
@@ -57,7 +57,7 @@ if [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
|||||||
|
|
||||||
# get first partition
|
# get first partition
|
||||||
firstpart=$(lsblk -ilp -o NAME $ld | tr '\n' ' ' | awk '{print $3}')
|
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
|
# copy MBR while preserving partition table
|
||||||
dd if=$mbr_file of=$ld bs=1 count=440
|
dd if=$mbr_file of=$ld bs=1 count=440
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
label: dos
|
label: dos
|
||||||
unit: sectors
|
unit: sectors
|
||||||
|
sector-size: 512
|
||||||
|
|
||||||
start= 2048, type=b, bootable
|
start= 2048, type=c, bootable
|
||||||
|
|||||||
Reference in New Issue
Block a user