I will share my experiences below on how I managed to mount a single hard disk that was part of RAID 1 and the issues I’ve encountered during the process.
First, do lsblk
to prints all block devices.
1 | NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS |
In this case, sde1 is what I was looking for.
I proceeded to run the following command:
1 | $ mdadm --assemble --run /dev/md2 /dev/sde1 |
And encountered the following:
1 | mdadm: Found some drive for an array that is already active: /dev/md/ubuntu:0 |
This is caused by mdadm complaining that you’re trying to assemble an array with a UUID matching one already running.
We can fix this by changing the UUID on the /dev/sde1 superblock when we assemble it.
To find the old UUID:
1 | $ mdadm --examine /dev/sde1 |
Results
1 | /dev/sde1: |
Finally, excute ths following command:
1 | $ mdadm --assemble /dev/md11 --update=uuid --uuid=<newuuid> /dev/sde1 |
For me, I just changed the last character to a instead of b:
1 | $ mdadm --assemble /dev/md11 --update=uuid --uuid=cb083a67:de3131fa:ad29c9a8:7e44fbfa /dev/sde1 |