On 09.07.2023 12:26, Hongyi Zhao wrote:
...

You create device.map and give names hd0, hd1, ... to your devices.

See below:

werner@X10DAi:~$ sudo grub-mkdevicemap -n
werner@X10DAi:~$ cat /boot/grub/device.map
(hd0)    /dev/disk/by-id/nvme-SAMSUNG_MZVL22T0HBLB-00B00_S677NF0R503706
(hd1)    /dev/disk/by-id/ata-WDC_WDS100T2B0A-00SM50_191533467906

Now, I see the following devices in grub-emu:

grub> ls
(proc) (hd0) (hd1) (host)

But how to access the corresponding partitions on these devices?


Did you try to load partition driver?

I tried as follows, but still failed to see the partitions:

grub> insmod lvm fat ntfs part_msdos part_gpt ext2 btrfs
grub> ls
(proc) (hd0) (hd1) (host)

Any more hints?


Are you running grub-emu as root or your normal user?

Reply via email to