Difference between revisions of "GRUB/Restore the GRUB Bootloader"

no edit summary
imported>Verityproductions
imported>Roland
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
= Overview =
= Overview =


As with any Linux operating system, the GRUB ('''GR'''and '''U'''nified '''B'''ootloader) is responsible for booting up Manjaro. If for any reason your GRUB is not working - perhaps due to being corrupted, mis-configured, or even deleted - then it may not be necessary to reinstall Manjaro. '''The GRUB can instead be fully repaired and restored, retaining your installed Manjaro system'''.
As with any Linux operating system, the GRUB ('''GR'''and '''U'''nified '''B'''ootloader) is responsible for booting up Manjaro. If for any reason your GRUB is not working - perhaps due to being corrupted, mis-configured, or even deleted - then it may not be necessary to reinstall Manjaro as a consequence. '''The GRUB can instead be fully repaired and restored, retaining your installed Manjaro system'''. To undertake this task, you will need to use your Manjaro installation media (e.g. CD/DVD or USB Flashdrive).




= Boot the Manjaro Installation Media =
= Boot the Manjaro Installation Media =


'''1.''' Insert and boot your Manjaro installation media (e.g. CD/DVD or USB).  
'''1.''' Insert and boot your Manjaro installation media.  


'''2.''' Select your '''preferred language''' (F2) and '''keyboard layout''' (F3).
'''2.''' Select your '''preferred language''' (F2) and '''keyboard layout''' (F3).
Line 64: Line 64:
  mount /dev/'''sda1''' /mnt/boot
  mount /dev/'''sda1''' /mnt/boot


{{note|'''Again, if you do have not used a seperate boot partition, then it (obviously) does not need to be mounted!''' If you are not sure, then check the size of the partitions: a seperate partition used just for the GRUB should be the recommended size of 100MB.}}
{{note|Again, if you have not used a seperate boot partition, then it (obviously) does not need to be mounted!}}




'''3.''' Change to the root directory of your mounted partitions (i.e. so you are working from and using your installed system, rather than the live CD). To do so, it will be necessary to enter a series of command:
'''3.''' Change to the root directory of your mounted partitions. This is undertaken so that you are working from - and with - your installed system, rather than the installation media. To do so, it will be necessary to enter a series of commands in the following order:


  mount -t proc proc /mnt/proc
  mount -t proc proc /mnt/proc
Line 76: Line 76:




'''4.''' Install mtools and os-prober. mtools is a collection of tools to access Microsoft Operating Systems. os-prober is a utility that detects if there are any other operating systems present. Install them with the following command:
'''4.''' Install the software applications ''mtools'' and ''os-prober''. mtools is a collection of tools to access Microsoft Operating Systems (i.e. MS-DOS). os-prober is a utility that detects if there are any other operating systems present. Install them with the following command:


  pacman -S mtools os-prober
  pacman -S mtools os-prober
Line 83: Line 83:
= Restore the GRUB =
= Restore the GRUB =


'''1.''' Install a new GRUB bootloader
'''1.''' Install a new GRUB bootloader with the following command:


  grub-install /dev/sda
  grub-install /dev/sda




'''2.''' Recheck to ensure the that installation has completed without any errors.
'''2.''' Recheck to ensure the that installation has completed without any errors:


  grub-install --recheck /dev/sda
  grub-install --recheck /dev/sda




'''3.''' Configure the freshly installed GRUB bootloader
'''3.''' Finally, configure the freshly installed GRUB bootloader:
 
update-grub
 
or manually with


  grub-mkconfig -o /boot/grub/grub.cfg
  grub-mkconfig -o /boot/grub/grub.cfg
All done. Now you can close the terminal and reboot your system for the change to take effect.




Once complete, close the terminal and reboot your system.
= Troubleshooting =


=== Arch Linux is not recognized ===
If Arch Linux wasn't recognized after an update-grub then probably your Arch installation is missing the package lsb-release.


[[Category:Troubleshooting]]
[[Category:Troubleshooting]]
[[Category:Contents Page]]
[[Category:Contents Page]]
Anonymous user