how to move grub boot from one partition to another in linux
Solution 1:
Yes, this can be done. The command is grub-install
and its syntax is like so:
grub-install [OPTION...] [OPTION] [INSTALL_DEVICE]
Since you asked for a live media recovery, here's a procedure from this tutorial:
Boot the Ubuntu Live CD.
Press Ctrl-Alt-F1
sudo mount /dev/sda1 /mnt
sudo mount --bind /dev /mnt/dev
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
sudo chroot /mnt
Now the fun stuff. Lets say I want grub to be on /dev/sda2
, I'd run sudo grub-install /dev/sda2
or alternatively sudo grub-install /dev/sda
to be partition/OS independent