You are not logged in.

#1 2016-09-01 21:01:10

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Syntax in grub.cfg to 'set root' to an nvme device

I have a spare Arch partition on /dev/nvme0n1p4 and I'd like to add an entry to boot it in grub.cfg but am unclear on how to define the 'set root=' for the device... for sata devices it's the standard (hdx,y) but what is it for nvme devices?

Example that works booting a spare sata partition on sda1
/etc/grub.d/40_custom

menuentry 'Mini - Arch Linux GNU/Linux, with Linux core repo kernel' --class arch --class gnu-linux --class gnu --class os {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='(hd0,gpt1)'
linux /boot/vmlinuz-linux root=/dev/sda1 rw
initrd  /boot/intel-ucode.img /boot/initramfs-linux.img
}

EDIT: I know I can get by with the `--set=root uuid` construct, but I would like to know what the non-uuid solution is to call out a non-sata drive.  Thanks!

Last edited by graysky (2016-09-01 21:14:28)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB