repair GRUB with system on mdadm RAID1



GRUB error: file not found (Debian Jessie after upgrade)


1) boot from Wheezy rescue CD

 

2) manual assembly of RAID1 (system + boot partition)

mdadm --assemble --verbose /dev/mdX /dev/sdaY /dev/sdbY

 

3) chroot in not bootable system

mount /dev/mdZ /mnt
mount /dev/mdY /mnt/boot       # if we use extra /boot partition
mount /dev/sda1 /mnt/boot/efi  # if we use UEFI boot
mount -o bind /sys /mnt/sys
mount -o bind /dev /mnt/dev
mount -t proc /proc /mnt/proc
chroot /mnt

 

4) reinstall GRUB

update-grub
update-initramfs -u
grub-install /dev/sda
grub-install /dev/sdb

on UEFI system, you can try:

grub-install --target=x86_64-efi /dev/sda

 

Last update:
2014-07-11 22:55
Author:
Daniel
Revision:
1.4
Average rating:0 (0 Votes)

You can comment this FAQ

Chuck Norris has counted to infinity. Twice.