Lumalab

Search entriesDeutsch English
  
User:   Password:    
Forum > Linux > Archlinux reinstall Grub
StartStopPage 1 of 1StopEnde
Author: EngysTopic: Archlinux reinstall GrubLast change: 2014-12-03 18:54:58 

If the Grub is corrupted and you are not able to boot from your existing Archlinux system you will need an Archlinux installation CD or something similar on a bootable USB stick to install a new Grub.

In this case the Grub is on /dev/sda and after booting from CD

fdisk -l

will show up the following partitions:

Device     Boot      Start        End    Sectors  Size Id Type
/dev/sda1  *          2048 3774875647 3774873600  1,8T 83 Linux
/dev/sda2       3774875648 3907029167  132153520   63G 82 Linux swap / Solaris

In this case the complete Linux filesystem is on /dev/sda1.

To replace the corrupted Grub we will need the following steps:

mount /dev/sda1 /mnt
arch-chroot /mnt
grub-mkconfig -o /boot/grub/grub.cfg
grub-install /dev/sda
exit
umount /dev/sda1

After rebooting the system the Grub should be fine.


UpReply 
StartStopPage 1 of 1StopEnde