Use o Ubuntu USB do seu amigo para fazer o chroot no seu Ubuntu USB ao vivo e reparar seu bootloader GRUB executando update-grub
.
- Boot from the other working Ubuntu live USB.
- Determine the partition number of your main partition. GParted (which should already be installed, by default, on the live session) can help you here. I'm going to assume in this answer that it's
/dev/sda2
, but make sure you use the correct partition number for your own original Ubuntu live USB!Mount your partition:
sudo mount /dev/sda2 /mnt # Replace sda2 with your partition number
Bind mount some other necessary stuff:
for i in /sys /proc /run /dev; do sudo mount --bind "$i" "/mnt$i"; done
If Ubuntu is installed in EFI mode (see this answer if you're unsure), use GParted to find your EFI partition. It will have a label of
EFI
. Mount this partition, replacingsdXY
with the actual partition number for your system:sudo mount /dev/sdXY /mnt/boot/efi
chroot
into your Ubuntu install:sudo chroot /mnt
At this point, you're in your install, not the live session, and running as root. Update grub:
update-grub
If you get errors or if going up to step 7 didn't fix your problem, go to step 8. (Otherwise, it is optional.)
Depending on your situation, you might have to reinstall grub:
grub-install /dev/sda update-grub # In order to find and add windows to grub menu.
If everything worked without errors, then you're all set:
exit sudo reboot
Fonte: link