Redirect fdisk output
This commit is contained in:
parent
a0671d5054
commit
2d2029137a
1 changed files with 3 additions and 2 deletions
|
@ -43,11 +43,12 @@ echo "...done"
|
||||||
|
|
||||||
echo "Preparing partition table on $DEV:"
|
echo "Preparing partition table on $DEV:"
|
||||||
dd if=/dev/zero of=/dev/sdb bs=512 count=10 >/dev/null 2>&1
|
dd if=/dev/zero of=/dev/sdb bs=512 count=10 >/dev/null 2>&1
|
||||||
echo -e "n\np\n1\n\n\nt\nb\na\n1\nw\nq\n" | fdisk $DEV >/dev/null
|
echo -e "n\np\n1\n\n\nt\nb\na\n1\nw\nq\n" | fdisk $DEV >/dev/null 2>&1
|
||||||
echo "...done"
|
echo "...done"
|
||||||
|
|
||||||
echo "Formatting partition on $DEV:"
|
echo "Formatting partition on $DEV:"
|
||||||
mkfs.vfat -F 16 -n "NOOBS" ${DEV}1
|
mkfs.vfat -n "NOOBS" ${DEV}1
|
||||||
|
# -F 16
|
||||||
echo "...done"
|
echo "...done"
|
||||||
|
|
||||||
echo "Mounting partition on $DEV:"
|
echo "Mounting partition on $DEV:"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue