17
submitted 8 months ago by peregus@lemmy.ml to c/linux@lemmy.ml

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:

Disk /dev/nvme0n1: 238.47 GiB, 256060514304 bytes, 500118192 sectors
Disk model: SAMSUNG MZVLQ256HBJD-00BH1
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 16384 bytes / 131072 bytes
Disklabel type: dos
Disk identifier: 0xab581c58

Device         Boot Start       End   Sectors   Size Id Type
/dev/nvme0n1p1       2048 500118191 500116144 238.5G fd Linux raid autodetect


Disk /dev/nvme1n1: 238.47 GiB, 256060514304 bytes, 500118192 sectors
Disk model: SAMSUNG MZVLQ256HBJD-00BH1
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 16384 bytes / 131072 bytes
Disklabel type: dos
Disk identifier: 0x863fc92a

Device         Boot Start       End   Sectors   Size Id Type
/dev/nvme1n1p1       2048 500118191 500116144 238.5G fd Linux raid autodetect


Disk /dev/sda: 14.32 GiB, 15376000000 bytes, 30031250 sectors
Disk model: Ultra Fit
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x1d46a293

Device     Boot    Start      End  Sectors  Size Id Type
/dev/sda1  *        2048 28028927 28026880 13.4G 83 Linux
/dev/sda2       28030974 30029823  1998850  976M  5 Extended
/dev/sda5       28030976 30029823  1998848  976M 82 Linux swap / Solaris

mdadm --detail --scan doesn't output anything. How do I solve this problem?

you are viewing a single comment's thread
view the rest of the comments
[-] CountVon@sh.itjust.works 2 points 8 months ago* (last edited 8 months ago)

I'm sure there would be a way to do this with Debian, but I have to confess I don't know it. I have successfully done this in the past with Clover Bootloader. You have to enable an NVMe driver, but once that's done you should see an option to boot from your NVMe device. After you've booted from it once, Clover should remember and boot from that device automatically going forward. I used this method for years in a home theatre PC with an old motherboard and an NVMe drive on a PCIe adapter.

[-] peregus@lemmy.ml 1 points 8 months ago

Clover Bootloader

Cool, I've never hear about it, I'll test it first thing on Monday, thanks!

this post was submitted on 01 Mar 2024
17 points (100.0% liked)

Linux

47933 readers
1261 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS