From Mageia wiki
Jump to: navigation, search

Sometimes a system will give you a grub2 prompt instead of booting up nicely.

If you are left at a grub(2) prompt you can sometimes boot by using grub's built in commands.

  • ls Should list the drives that it can see.
  • You can use search.file to find which drive/partition has a specific file
    • e.g: search.file /etc/mageia-release
  • Once you have the correct drive/partition then you can set that to the root variable e.g.: root=(hd1,gpt3)
  • Assuming a simple/normal Mga installation then the following commands should boot it:
    • linux /boot/vmlinuz
    • initrd /boot/initrd.img
    • boot

The above assumes that grub2 is not broken and that the correct modules are installed to access the file system in use.

  • You can list loaded grub modules with: lsmod
  • and load modules with: insmod <modulename>