summaryrefslogtreecommitdiffstats
path: root/tools/partition.sh
blob: 2637797d4ecc7c6f075f33cfe497d56622fda657 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/sh

DEVICE=$1
LABEL=Share
if [ -z "$DEVICE" ]; then
    echo "No device"
    exit 1
fi

# FT
#END1=780
#END2=1950

#END1=380
#END2=1022

END1=25000
END2=60869

fdisk $DEVICE <<EOF
o
n
p
1

$END1
n
p
2

$END2
t
1
b
t
2
b
w
EOF

mkdosfs -n $LABEL ${DEVICE}1