|
From: | Andrei Borzenkov |
Subject: | Re: Debug grub scripts without rebooting into grub shell. |
Date: | Sun, 9 Jul 2023 13:47:54 +0300 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 |
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?
[Prev in Thread] | Current Thread | [Next in Thread] |