I used to have a raid1 array on the mountpoint
/mnt/md0, however I re-installed my OS and now I don't know how to re assemble it.
I believe I should be doing something along the lines of
mdadm --assemble, but I don't know how to add this information into a configuration file which is persistent between reboots. (I don't recall the location of the config file either.)
I followed this information to create the array in the first place
but there is no info about how to create an array using existing disks.
Can someone point me in the right direction?
Update: I found this config file: /etc/mdadm/mdadm.conf
This is what it contains
# mdadm.conf # # !NB! Run update-initramfs -u after updating this file. # !NB! This will ensure that initramfs has an uptodate copy. # # Please refer to mdadm.conf(5) for information about this file. # # by default (built-in), scan all partitions (/proc/partitions) and all # containers for MD superblocks. alternatively, specify devices to scan, using # wildcards if desired. #DEVICE partitions containers # automatically tag new arrays as belonging to the local system HOMEHOST <system> # instruct the monitoring daemon where to send mail alerts MAILADDR root # definitions of existing MD arrays ARRAY /dev/md/0 metadata=1.2 UUID=(uuid here) name=(system name here):0 # This configuration was auto-generated on Fri, 19 Jun 2020 13:52:02 +0100 by mkconf