On Mon, 28 Nov 2022, Andrew Wood wrote:
Hi Can someone help me with a Grub problem please.
I have 2 disks in a RAID1 mirrror with 2 partitions. sda1 & sdb1 = md0 swap
parition and sda2 & sdb2 = md1 root parition. The disks are MBR style
partitiions.
For some reason Grub has got corrupted on both and it wont boot.
Ive tried running the following at the grub prompt
ls (hd0,msdos2)
which says file system is ext2
set boot=(hd0,msdos2)
set prefix=(hd0,msdos2)/boot/grub
insmod normal
error: file /boot/grub/i386-pc/normal.mod not found
Can anyone please help me restore the MBR to both disks?
can you boot and not worry about the grub menu for now?
Something like: (sorry, I do this so rarely that I can only give
approximate commands. grub should have filename completion to help)
root=(hd0,msdos2)
linux /boot/vmlinuz-4.19.0-22-686-pae root=/dev/md1
initrd /boot/initrd.img-4.19.0-22-686-pae
boot
once it's booted you can then grub-install /dev/sda and sdb and
hopefully fix things. (obviously use the right kernel/initrd that you
have in /boot and not something I've copied randomly)