search
Log In
Ask Solus is a community edited knowledge base and support forum for Solus. We are not endorsed or supported by Solus Project.
0 votes
19 views

Hello everybody,

How can we fix GUB in one command line ?

The Case :

I have computers with 5 Linux distros and I want to keep only 1 or 2 Distros with bigger partitions by erasing  the partitions of the other distros

Then :

  • I used gparted live 
  • I 've deleted the boot, swap, root, home partitions not used anymore
  • I've made bigger home partitions for Solus & CentOS,  for Solus & openSuSE Leap15.1 ( or for Solus only for my small Netbooks )

But, to enlarge the Home partitions I need to move all the partitions including the 2 boot partitions ( MBR ) and to fix GRUB...

TO FIX / REBUILD GRUB :

Windows + Solus & CentOS 7 = OK

  • I've started CentOS with GRUB2 live
  • I've used de following commands to rebuild GRUB : su ' grub2-mkconfig -o /etc/grub2.cfg '
  • Reboot and it is OK 

Windows + Solus & openSuSE Leap15.1 = OK

  • I've started openSuSE with GRUB2 live 
  • I've used de following commands to rebuild GRUB : su '  grub2-install /dev/sda;  grub2-mkconfig -o /boot/grub2/grub.cfg ' 
  • Reboot and it is OK 

Windows + Solus only = ???

  • Is there a simple command to fix GRUB on MBR ???

Thanks for your help,

Best regards.

220 points 1 5

Please log in or register to answer this question.

...