Skip to content

Instantly share code, notes, and snippets.

Chris Pearson pearsonc

View GitHub Profile
View Switch to MDADM raid before installing Ubuntu
Boot from Live media
Try ubuntu before installing
Launch terminal
sudo -s
Stop dmraid
dmraid -an
install mdadm
sudo -s
@pearsonc
pearsonc / ubuntu-raid.sh
Created Nov 9, 2019 — forked from umpirsky/ubuntu-raid.sh
Install Ubuntu on RAID 0 and UEFI/GPT system
View ubuntu-raid.sh
# http://askubuntu.com/questions/505446/how-to-install-ubuntu-14-04-with-raid-1-using-desktop-installer
# http://askubuntu.com/questions/660023/how-to-install-ubuntu-14-04-64-bit-with-a-dual-boot-raid-1-partition-on-an-uefi%5D
sudo -s
apt-get -y install mdadm
apt-get -y install grub-efi-amd64
sgdisk -z /dev/sda
sgdisk -z /dev/sdb
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" /dev/sda
You can’t perform that action at this time.