- Timestamp:
- 08/26/2022 12:30:29 PM (2 years ago)
- Branches:
- 11.2, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 12.2, 12.2-rc1, bdubbs/gcc13, multilib, renodr/libudev-from-systemd, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/loongarch-12.2, xry111/mips64el, xry111/multilib, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- bf6f9e7, e5263d5
- Parents:
- d840871
- git-author:
- Xi Ruoyao <xry111@…> (08/26/2022 12:11:57 PM)
- git-committer:
- Xi Ruoyao <xry111@…> (08/26/2022 12:30:29 PM)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter10/grub.xml
rd840871 r5353a19 156 156 </para></note> 157 157 158 <note> 159 <para>The GRUB designator for a partition may change if you added or 160 removed some disks (including removable disks like USB thumb devices). 161 The change may cause boot failure because 162 <filename>grub.cfg</filename> refers to some <quote>old</quote> 163 designators. If you wish to avoid such a problem, you may use 164 the UUID of partition and filesystem instead of GRUB designator to 165 specify a partition. 166 Run <command>lsblk -o UUID,PARTUUID,PATH,MOUNTPOINT</command> to show 167 the UUID of your filesystems (in <literal>UUID</literal> column) and 168 partitions (in <literal>PARTUUID</literal> column). Then replace 169 <literal>set root=(hdx,y)</literal> with 170 <literal>search --set=root --fs-uuid <replaceable><UUID of the filesystem where the kernel is installed></replaceable></literal>, and replace 171 <literal>root=/dev/sda2</literal> with 172 <literal>root=PARTUUID=<replaceable><UUID of the partition where LFS is built></replaceable></literal>.</para> 173 <para>Note that the UUID of a partition and the UUID of the filesystem 174 in this partition is completely different. Some online resources may 175 instruct you to use 176 <literal>root=UUID=<replaceable><filesystem UUID></replaceable></literal> 177 instead of 178 <literal>root=PARTUUID=<replaceable><partition UUID></replaceable></literal>, 179 but doing so will require an initramfs which is beyond the scope of 180 LFS.</para> 181 <para>The name of the device node for a partition in 182 <filename class='directory'>/dev</filename> may also change (more 183 unlikely than GRUB designator change though). You can also replace 184 paths to device nodes like <literal>/dev/sda1</literal> with 185 <literal>PARTUUID=<replaceable><partition UUID></replaceable></literal>, 186 in <filename>/etc/fstab</filename>, to avoid a potential boot failure 187 in case the device node name has changed.</para> 188 </note> 189 158 190 <para>GRUB is an extremely powerful program and it provides a tremendous 159 191 number of options for booting from a wide variety of devices, operating
Note:
See TracChangeset
for help on using the changeset viewer.