add format scripts to ntfs

This commit is contained in:
qiurui 2024-04-06 00:19:03 +08:00
parent 1487966ed9
commit 8063ee9cdf
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
#!/bin/bash
fdisk /dev/mmcblk0 << EOF
n
p
$1
t
7
w
EOF
mkfs.ntfs /dev/mmcblk0p2 > /dev/null
mount /dev/mmcblk0p2 /mnt > /dev/null