Skip to content

Instantly share code, notes, and snippets.

@Ne00n
Last active February 29, 2024 15:23
Show Gist options
  • Save Ne00n/48d2aed61e289fc6348d61344a3a64a6 to your computer and use it in GitHub Desktop.
Save Ne00n/48d2aed61e289fc6348d61344a3a64a6 to your computer and use it in GitHub Desktop.
archlinux systemrescuecd storage raid fix
mount -o remount,size=8G /run/archiso/cowspace
mdadm --stop /dev/md/*
#install fucking ubuntu
qemu-system-x86_64 -net nic -net user,hostfwd=tcp::80-:80,hostfwd=tcp::443-:443 -m 1024M -localtime -enable-kvm -hda /dev/sda -hdb /dev/sdb -vnc 0.0.0.0:0 -cdrom /tmp/proxmox-ve_7.1-1.iso -boot d
#fix the fucking boot parition that the installer did not install because fucking ubuntu
#source https://serverfault.com/questions/1019079/how-do-i-make-grub-install-on-a-software-raid-disk
mdadm --fail /dev/md0 /dev/sda
mdadm --remove /dev/md0 /dev/sda
sfdisk -d /dev/sdd > raidinfo-partitions.sdd
sfdisk /dev/sda < raidinfo-partitions.sdd
mdadm --add /dev/md0 /dev/sda1
mount /dev/md127 /mnt
arch-chroot /mnt /bin/bash
export PATH=$PATH:/sbin
grub-install /dev/sda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment