Thursday, February 19, 2015

How to Repair, Restore, or Reinstall Grub 2 with a Ubuntu Live CD



















Mount the partition your Ubuntu Installation is on (with the root partition "/").


sudo mount /dev/sdc2 /mnt

sudo mount --bind /dev /mnt/dev &&
sudo mount --bind /dev/pts /mnt/dev/pts &&
sudo mount --bind /proc /mnt/proc &&
sudo mount --bind /sys /mnt/sys



sudo chroot /mnt

grub-install /dev/sdc # grub-install --recheck /dev/sdc
update-grub

exit &&
sudo umount /mnt/sys &&
sudo umount /mnt/proc &&
sudo umount /mnt/dev/pts &&
sudo umount /mnt/dev &&
sudo umount /mnt




Reboot your computer, and Grub2 screen will be on.
 

No comments:

How to Encrypt and Decrypt Files With GPG on Linux

https://www.howtogeek.com/427982/how-to-encrypt-and-decrypt-files-with-gpg-on-linux/