Sometimes you need to restore grub 2, even after reinstalling windows (dual boot) and very nice and without any concession by Our overwrites the master boot record (MBR), thus making it impossible to upload. To restore
we boot from a cd / dvd live distribution installed on your computer and then issue the following commands from terminal:
to check what is the root partition:
to check what is the root partition:
sudo fdisk-l / dev / sda
in my case sda3, then carry out the chroot to work on our partition:
mount / dev/sda3 / mnt mount-o bind / dev / mnt / dev chroot /mnt
ora che siamo dentro possiamo ricreare il file grub.conf e ripristinare l'mbr:
update-grub
grub-install /dev/sda
usciamo dall'ambiente chroot e smontiamo il tutto per riavviare e vedere il risultato:
exit
umount /mnt/dev umount /mnt reboot
Sometimes it may happen that the windows partition is removed from the configuration of grub and therefore not listed in the Start menu ... Although I find it a positive thing and a quick way to have another partition to be formatted and used for storing data more useful, if you can not do without the commands to restore the whole are as follows:
sudo os-prober
sudo update-grub
0 comments:
Post a Comment