CryptoZSH/tools/v3das/linux_chroot_grub_install.txt

13 lines
264 B
Plaintext
Raw Normal View History

2021-10-19 12:23:19 +00:00
# Start a live image, then reinstall grub.
fdisk -l
mount /dev/sda2 /mnt/
mount -t proc none /mnt/proc
mount -o bind /dev /mnt/dev
mount -t sysfs sys /mnt/sys
chroot /mnt/ /bin/bash
update-grub
/usr/sbin/grub-install --recheck --no-floppy /dev/sda
sync & reboot