I really appreciate the instructions @gui1ty !
I just have some questions/clarifications.
1. Remove /dev/sda1 from md0 with mdadm --fail --remove /dev/md/md0 /dev/sda1
2. Remove /dev/sdb1 from md1 with mdadm --fail --remove /dev/md/md1 /dev/sdb1
Do you mean
1. Remove /dev/sda1 from md0 with mdadm --fail --remove /dev/md0 /dev/sda1
2. Remove /dev/sda2 from md1 with mdadm --fail --remove /dev/md1 /dev/sda2
I am thinking that were are removing /dev/sda{1,2} from the /dev/md{0,1} and just leaving /dev/sdb{1,2} in /dev/md{0,1}.
Then
3. Wipe the superblock from /dev/sda1 with mdadm --zero-superblock /dev/sda1
4. Wipe the superblock from /dev/sdb1 with mdadm --zero-superblock /dev/sdb1
Do you mean
3. Wipe the superblock from /dev/sda1 with mdadm --zero-superblock /dev/sda1
4. Wipe the superblock from /dev/sda2 with mdadm --zero-superblock /dev/sda2
I am thinking we are wiping the superblock of the removed /dev/sda{1,2}.
Then
5. Change partition type of sda1 to 0b (W95 FAT32) (not entirely sure about the type)
6. Change partition type of sdb1 to 83 (Linux)
7. Format /dev/sda1 as vfat
8. Format /dev/sdb2 as ext4
Should that be
5. Change partition type of sda1 to 0b (W95 FAT32) (not entirely sure about the type)
6. Change partition type of sda2 to 83 (Linux)
7. Format /dev/sda1 as vfat
8. Format /dev/sda2 as ext4
I am thinking we are changing the partition type and formatting of the removed /dev/sda{1,2}
Then
9. Copy EFI partition with dd if=/dev/md/md0 of=/dev/sda1
10. Copy boot partition with dd if=/dev/md/md1 of=/dev/sdb1
Do you mean
9. Copy EFI partition with dd if=/dev/md0 of=/dev/sda1
10. Copy boot partition with dd if=/dev/md1 of=/dev/sda2
I am thinking we are copying the data of /dev/sdb{1,2} which are still in /dev/md{0,1} to the removed /dev/sda{1,2}.
Then
Add the newly created partitions to /etc/fstab. You can either use the UUIDs or the partitions, whatever you prefer. Just make sure that /dev/sdb1 is mounted on /boot and /dev/sda1 on /boot/efi.
Do you mean
Replace the UUID values of /boot/efi and /boot in /etc/fstab with the UUID of /dev/sda1 and /dev/sda2 respectively.
I am thinking adding the new entries instead of replacing them would cause conflicts because there would be 2 entries of /boot/efi and /boot in /etc/fstab. Would that be the case? I haven’t done that so having 2 different partitions mounted on the same mount point is new to me.