1 |
On 02.02.23 13:31, J. Roeleveld wrote: |
2 |
> On Thursday, February 2, 2023 1:15:51 PM CET Klaus Dittrich wrote: |
3 |
>> On 02.02.23 12:33, J. Roeleveld wrote: |
4 |
>>> Please only send mails to the list. |
5 |
>>> There is no need to add me to the TO or CC lists. |
6 |
>>> |
7 |
>>> On Thursday, February 2, 2023 12:22:49 PM CET Klaus Dittrich wrote: |
8 |
>>>> On 02.02.23 10:51, J. Roeleveld wrote: |
9 |
>>>>> On Thursday, February 2, 2023 10:42:40 AM CET Klaus Dittrich wrote: |
10 |
>>>>>> Is there andbody using refind? Especially in Germany? |
11 |
>>>>>> I have some questions about. |
12 |
>>>>> |
13 |
>>>>> If you have questions, feel free to ask on this list. |
14 |
>>>>> I am sure I am not the only one using it. |
15 |
>>>>> |
16 |
>>>>> -- |
17 |
>>>>> Joost |
18 |
>>>> |
19 |
>>>> Joost, |
20 |
>>>> |
21 |
>>>> my current system boots from bios(mbr) not uefi. |
22 |
>>>> |
23 |
>>>> My knowlege of uefi is poor and uefi is still confusing me. |
24 |
>>>> So it may be some of my questions will looking silly for you. |
25 |
>>> |
26 |
>>> Did you read the well-written howto on the Gentoo website? |
27 |
>>> |
28 |
>>> https://wiki.gentoo.org/wiki/Refind[1] |
29 |
>>> |
30 |
>>> |
31 |
>>> |
32 |
>>> -------- |
33 |
>>> [1] https://wiki.gentoo.org/wiki/Refind |
34 |
>> |
35 |
>> Joost, |
36 |
>> |
37 |
>> no. Thanks for the hint, I had just a short look into at it. |
38 |
>> |
39 |
>> There is presupposed that one is at a uefi system already. |
40 |
>> |
41 |
>> I have to install refind to a disk mounted to my mbr-booted-system, |
42 |
>> make all necessary adjustments there and then put it to the uefi-only |
43 |
>> machine and boot it there. |
44 |
>> |
45 |
>> So I cannot call efibootmanger to pin refind to nvram of the uefi-system. |
46 |
> |
47 |
> Use a USB boot-stick with EFI image, like the gentoo one. See the relevant section in the |
48 |
> Gentoo installguide: |
49 |
> |
50 |
> https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Media[1] |
51 |
> |
52 |
> |
53 |
> -------- |
54 |
> [1] https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Media |
55 |
> |
56 |
Joost, |
57 |
|
58 |
I installed refind to the esp partition of my disk according to what I |
59 |
have understood so far from https://wiki.gentoo.org/wiki/Refind and the |
60 |
meanwhile up again site https://www.rodsbooks.com/refind/installing.html |
61 |
|
62 |
The disk is a nvme disk put into an nvme-to-usb adapter, so I can easily |
63 |
move it between my existing (mbr) machine and the new uefi-machine. |
64 |
|
65 |
The efi partition looks like this now: |
66 |
|
67 |
. |
68 |
└── EFI |
69 |
├── BOOT |
70 |
│ ├── BOOT.CSV |
71 |
│ ├── bootx64.efi |
72 |
│ ├── icons |
73 |
│ │ |
74 |
│ ├── refind.conf |
75 |
│ ├── refind.conf-sample |
76 |
│ ├── refind.log |
77 |
│ ├── refind.log-old |
78 |
│ └── vars |
79 |
│ └── PreviousBoot |
80 |
├── myBackup |
81 |
│ ├── System.map-6.1.9 |
82 |
│ └── vmlinuz-6.1.9 |
83 |
├── mySystem |
84 |
│ ├── System.map-6.1.9 |
85 |
│ └── vmlinuz-6.1.9 |
86 |
├── refind |
87 |
└── tools |
88 |
|
89 |
I left out the numerous contents of icons. |
90 |
refind is installed to teh default BOOT/bootx64.efi as I have no access |
91 |
to nvram up to now. |
92 |
|
93 |
The disk looks like this:( gdisk /dev/sda) |
94 |
Number Start (sector) End (sector) Size Code Name |
95 |
1 2048 452607 220.0 MiB EF00 PEFI |
96 |
2 452608 461826047 220.0 GiB 8300 PSYS |
97 |
|
98 |
|
99 |
|
100 |
My EFI/BOOT/refind.conf has this entry: |
101 |
|
102 |
menuentry Linux { |
103 |
icon EFI/refind/icons/os_linux.png |
104 |
volume PSYS |
105 |
loader vmlinuz-6.1.9 |
106 |
options "root=LABEL=PSYS ro rootfstype=ext4 mds=full" |
107 |
} |
108 |
|
109 |
And /etc/fstab :(the essential parts only) |
110 |
|
111 |
LABEL=PSYS / ext4 defaults,noatime,nodiscard 1 1 |
112 |
LABEL=PEFI /boot/efi vfat umask=00755 0 0 |
113 |
efivarfs /sys/firmware/efi/efivars efivarfs nosuid,nodev,noexec,noatime |
114 |
0 0 |
115 |
|
116 |
When I am trying to boot this (uefi-machine) I get |
117 |
|
118 |
/dev/root can't open block device |
119 |
|
120 |
or |
121 |
|
122 |
please append correct root=boot option. |
123 |
|
124 |
|
125 |
The kernel is compiled with all necessary drivers built in not using |
126 |
modules. I don't like initrd or intramfs. |
127 |
|
128 |
I decided to use the partition label PSYS because I cannot see |
129 |
(like in legacy bios) to which device my disk got connected. |
130 |
So I relay on refind which can pass partition labels to the "root=" |
131 |
option of the kernel as I have read. |
132 |
|
133 |
Do you or anyone reading this thread know what mistake I have made |
134 |
in this configuration of refind. |
135 |
|
136 |
-- |
137 |
Regards Klaus |