Skip to content

Instantly share code, notes, and snippets.

View pearsonc's full-sized avatar

Chris Pearson pearsonc

View GitHub Profile
@pearsonc
pearsonc / ubuntu-raid.sh
Last active April 18, 2024 14:34 — forked from umpirsky/ubuntu-raid.sh
Install Ubuntu on RAID 0 and UEFI/GPT system
sudo -s
sgdisk -z /dev/sda -g # Delete all partitions and create a gpt table
sgdisk -z /dev/sdb -g # Delete all partitions and create a gpt table
sgdisk -n 1:0:+100M -t 1:ef00 -c 1:"EFI System" /dev/sda
sgdisk -n 2:0:+8G -t 2:fd00 -c 2:"Linux RAID Swap" /dev/sda
sgdisk -n 3:0:0 -t 3:fd00 -c 3:"Linux RAID" /dev/sda
sgdisk /dev/sda -R /dev/sdb -G
mkfs.fat -F 32 /dev/sda1
Boot from Live media
Try ubuntu before installing
Launch terminal
sudo -s
Stop dmraid
dmraid -an
install mdadm
sudo -s