nick178
(Nick U)
January 2, 2025, 8:36pm
1
After motherboard replacement i’m only able to boot into windows, even though my disks with fedora installed are visible.
How can i repair the GRUB?
My setup:
1 disk just for windows
2 separate disks bound with mdadm (raid 0) and encrypted with LUKS for fedora
nick178
(Nick U)
January 3, 2025, 1:31pm
2
output of lsblk
liveuser@localhost-live:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 7:0 0 1.6G 1 loop /run/rootfsbase
sda 8:0 1 14.4G 0 disk
└─sda1 8:1 1 14.4G 0 part /run/initramfs/live
sdb 8:16 1 7.5G 0 disk
└─sdb1 8:17 1 7.5G 0 part /run/media/liveuser/9467-CED7
zram0 252:0 0 8G 0 disk [SWAP]
nvme0n1 259:0 0 238.5G 0 disk
├─nvme0n1p1 259:1 0 100M 0 part
├─nvme0n1p2 259:2 0 16M 0 part
├─nvme0n1p3 259:3 0 231.9G 0 part
├─nvme0n1p4 259:4 0 840M 0 part
├─nvme0n1p5 259:5 0 1G 0 part
└─nvme0n1p6 259:6 0 4G 0 part /run/media/liveuser/7d687dbc-9497-42c2-8484-ee1159a8d839
nvme1n1 259:7 0 931.5G 0 disk
├─nvme1n1p1 259:8 0 822.1G 0 part
└─nvme1n1p2 259:9 0 109.5G 0 part
nvme2n1 259:10 0 931.5G 0 disk
├─nvme2n1p1 259:11 0 822.1G 0 part
└─nvme2n1p2 259:12 0 109.5G 0 part
nvme1n1
and nvme2n1
are my drives that i used to create root and home partitions.
nvme1n1p2
and nvme2n1p2
- root
nvme1n1p1
and nvme2n1p1
- home
nvme0n1p5
is my /boot/efi
partition and nvme0n1p6
my /boot
can’t determine the primary disk using mdmadm --examine
liveuser@localhost-live:~$ sudo mdadm --examine /dev/nvme1n1
/dev/nvme1n1:
MBR Magic : aa55
Partition[0] : 1953525167 sectors at 1 (type ee)
liveuser@localhost-live:~$ sudo mdadm --examine /dev/nvme2n1
/dev/nvme2n1:
MBR Magic : aa55
Partition[0] : 1953525167 sectors at 1 (type ee)
nick178
(Nick U)
January 4, 2025, 9:50am
3
dear @computersavvy could you please take a look?
i’m able to decrypt all 4 partitions from both drives separately(not as raid device), but as they were used for raid0 i can’t fetch files from there directly.
Trying to assemble the drives fails because superblock wasn’t found. Is there a chance it may be recovered from boot partition?
Once i’m able to reassemble raid, recovering grub seems to be pretty straightforward process - The GRUB2 Bootloader – Installation and Configuration :: Fedora Docs