# Re: Linux RAID autodetect partitions go missing from /dev, but fdisk can see them

- From: Richard Scobie \<hidden\>
- Date: 2009-01-31 18:50:09 
- List: linux-raid
- Page: https://ratatoskr.run/linux-raid/2009/01/6605037
- Thread: https://ratatoskr.run/linux-raid/2009/01/6604913/t.md

```text
Tor Arne Vestbø wrote:

> Changed the DEVICE line in my mdadm.conf from:
>
>   DEVICE partitions
>
> to
>
>   DEVICE /dev/sd[bcdef]1
>
> Now the array is assembled correctly at boot.

A safer way of acheiving this is to list the array in mdadm.conf by UUID, which will guarantee all the correct devices are used - sd devices can move around under some conditions.

eg.

ARRAY /dev/md1 level=raid1 num-devices=2 UUID=f6bd7495:52288189:40f44282:1c220686
ARRAY /dev/md0 level=raid1 num-devices=2 UUID=f7d720fe:a5d0724c:c9bd10fa:a496ed51

Note each ARRAY entry and UUID are entered as a single line.

Regards,

Richard
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
```
