Skip to content

Instantly share code, notes, and snippets.

@kkappel
Created November 15, 2017 12:02
Show Gist options
  • Select an option

  • Save kkappel/563644ec4299a273aef37bbf0f396e95 to your computer and use it in GitHub Desktop.

Select an option

Save kkappel/563644ec4299a273aef37bbf0f396e95 to your computer and use it in GitHub Desktop.
mkdir /syspart
mount /dev/sdaX /syspart [WICHTIG: "X" durch die jeweilige Nummer der System-Partition ersetzen, z.B. "/dev/sda2"]
mount -o bind /dev /syspart/dev
mount -o bind /proc /syspart/proc
mount -o bind /sys /syspart/sys
chroot /syspart
update-grub
grub-install /dev/sda
rmdir /syspart
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment