Boot into NVMe drives from USB
Hi all, I’ve installed Debian in 2 (mdadm RAID 1 formtted with Btrfs) NVMe drives installed into 2 PCIe adapters. The motherboard doesn’t support booting from those drives, so I’ve installed Debian into a USB stick (and it works) and I wanted to add into grub the RAID NVMe drives.
os-prober
doesn’t see the other Debian installation. fdisk -l
shows the 2 nvme drives, but it doesn’t see md0:
<span style="color:#323232;">Disk /dev/nvme0n1: 238.47 GiB, 256060514304 bytes, 500118192 sectors
</span><span style="color:#323232;">Disk model: SAMSUNG MZVLQ256HBJD-00BH1
</span><span style="color:#323232;">Units: sectors of 1 * 512 = 512 bytes
</span><span style="color:#323232;">Sector size (logical/physical): 512 bytes / 512 bytes
</span><span style="color:#323232;">I/O size (minimum/optimal): 16384 bytes / 131072 bytes
</span><span style="color:#323232;">Disklabel type: dos
</span><span style="color:#323232;">Disk identifier: 0xab581c58
</span><span style="color:#323232;">
</span><span style="color:#323232;">Device Boot Start End Sectors Size Id Type
</span><span style="color:#323232;">/dev/nvme0n1p1 2048 500118191 500116144 238.5G fd Linux raid autodetect
</span><span style="color:#323232;">
</span><span style="color:#323232;">
</span><span style="color:#323232;">Disk /dev/nvme1n1: 238.47 GiB, 256060514304 bytes, 500118192 sectors
</span><span style="color:#323232;">Disk model: SAMSUNG MZVLQ256HBJD-00BH1
</span><span style="color:#323232;">Units: sectors of 1 * 512 = 512 bytes
</span><span style="color:#323232;">Sector size (logical/physical): 512 bytes / 512 bytes
</span><span style="color:#323232;">I/O size (minimum/optimal): 16384 bytes / 131072 bytes
</span><span style="color:#323232;">Disklabel type: dos
</span><span style="color:#323232;">Disk identifier: 0x863fc92a
</span><span style="color:#323232;">
</span><span style="color:#323232;">Device Boot Start End Sectors Size Id Type
</span><span style="color:#323232;">/dev/nvme1n1p1 2048 500118191 500116144 238.5G fd Linux raid autodetect
</span><span style="color:#323232;">
</span><span style="color:#323232;">
</span><span style="color:#323232;">Disk /dev/sda: 14.32 GiB, 15376000000 bytes, 30031250 sectors
</span><span style="color:#323232;">Disk model: Ultra Fit
</span><span style="color:#323232;">Units: sectors of 1 * 512 = 512 bytes
</span><span style="color:#323232;">Sector size (logical/physical): 512 bytes / 512 bytes
</span><span style="color:#323232;">I/O size (minimum/optimal): 512 bytes / 512 bytes
</span><span style="color:#323232;">Disklabel type: dos
</span><span style="color:#323232;">Disk identifier: 0x1d46a293
</span><span style="color:#323232;">
</span><span style="color:#323232;">Device Boot Start End Sectors Size Id Type
</span><span style="color:#323232;">/dev/sda1 * 2048 28028927 28026880 13.4G 83 Linux
</span><span style="color:#323232;">/dev/sda2 28030974 30029823 1998850 976M 5 Extended
</span><span style="color:#323232;">/dev/sda5 28030976 30029823 1998848 976M 82 Linux swap / Solaris
</span>
mdadm --detail --scan
doesn’t output anything. How do I solve this problem?