Skip to content

Instantly share code, notes, and snippets.

View fallenbeck's full-sized avatar

Niels fallenbeck

View GitHub Profile
@fallenbeck
fallenbeck / gist:204be14e81aeea5ef63079f3ba664fe0
Last active August 3, 2023 08:49
Repair GRUB boot loader after PRAM reset on MacBook [Air|Pro]
export INTERNALDISK="/dev/sda"
export VG_ROOT="mba--vg-root"
export MNT="/mnt"
cryptsetup luksOpen ${INTERNALDISK} crypt
mount /dev/mapper/${VG_ROOT} $MNT
cd ${MNT}/\@rootfs/
mount ${INTERNALDISK}2 boot/
mount ${INTERNALDISK}1 boot/efi/
mount --rbind /dev dev/
mount --rbind /proc proc/

Keybase proof

I hereby claim:

  • I am fallenbeck on github.
  • I am fallenbeck (https://keybase.io/fallenbeck) on keybase.
  • I have a public key whose fingerprint is 455F 1525 D084 805D F30E 009B 1693 0D80 300F 7E05

To claim this, I am signing this object: