1. 程式人生 > 其它 >sd卡分割槽製作指令碼

sd卡分割槽製作指令碼

技術標籤:ubuntu環境搭建

#!/bin/sh

# partition size in MB
BOOT_ROM_SIZE=50


# call sfdisk to create partition table
# destroy the partition table

sudo dd if=/dev/zero of=/dev/sdb bs=1024 count=1


sudo sfdisk --force  /dev/sdb << EOF
${BOOT_ROM_SIZE}M,1024M,83
1025M,,83
EOF