sd卡分区,并格式化

This commit is contained in:
霍振飞 2021-06-11 15:49:35 +08:00 committed by Gitee
parent 253a3ae818
commit c7f8d4c016
2 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,32 @@
d
d
d
d
d
n
p
1
2048
200000
n
p
2
t
1
b
t
2
b
w

6
sd-partition/make-fs.sh Normal file
View File

@ -0,0 +1,6 @@
#!/bin/bash
sudo umount ${1}*
sudo fdisk ${1} < ./fdisk-partition
sleep 2
sudo mkfs.vfat -F 32 ${1}1
sudo mkfs.vfat -F 32 ${1}2