You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
404 B
Bash
19 lines
404 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
# root 440GiB
|
|
# boot 2GiB
|
|
# free 5GiB
|
|
|
|
parted /dev/sda mklabel msdos
|
|
parted /dev/sda mkpart primary 1 440GiB
|
|
parted /dev/sda mkpart primary 440GiB 442GiB
|
|
parted /dev/sdb mklabel msdos
|
|
parted /dev/sdb mkpart primary 1 440GiB
|
|
parted /dev/sdb mkpart primary 440GiB 442GiB
|
|
|
|
sleep 1
|
|
|
|
echo 'yes' | mdadm -C /dev/md0 -l1 -n2 /dev/sd[ab]1
|
|
echo 'yes' | mdadm -C /dev/md1 -l1 -n2 /dev/sd[ab]2
|