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.

11 lines
232 B
Bash

7 years ago
#!/bin/bash
set -e
parted /dev/sda mklabel msdos Yes
parted /dev/sda mkpart primary 1 440GiB
parted /dev/sdb mklabel msdos Yes
parted /dev/sdb mkpart primary 1 440GiB
mdadm -C /dev/md0 --force -l1 -n2 /dev/sda1 /dev/sdb1 <<< yes