Recuperar GRUB2 després de moviments de particions
Per recuperar el GRUB2 ho farem a través d’una distribució Live{CD|USB} i utilitzant la comanda chroot.
Mount your normal system partition:
Substitute the correct partition: sda1, sdb5, etc.
sudo mount /dev/sdXX /mnt # Example: sudo mount /dev/sda1 /mnt
Only if you have a separate boot partition:
sdYY is the /boot partition designation (for example sdb3)
sudo mount /dev/sdYY /mnt/boot
Mount the critical virtual filesystems:
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
Chroot into your normal system device:
sudo chroot /mnt
If there is no /boot/grub/grub.cfg or it’s not correct, create one using
update-grub
Reinstall GRUB 2:
Substitute the correct device – sda, sdb, etc. Do not specify a partition number.
grub-install /dev/sdX
https://help.ubuntu.com/community/Grub2
![[FSF Associate Member] Fes-te membre associat de la fundació del programari lliure FSF Membership](http://viladelpingui.net/imatges/FSF_Button.png)
