Changes in chapter10/grub.xml [c7f74cd:5353a19]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter10/grub.xml
rc7f74cd r5353a19 20 20 <para> 21 21 If your system has UEFI support and you wish to boot LFS with UEFI, 22 you should skip this page, and config ureGRUB with UEFI support22 you should skip this page, and config GRUB with UEFI support 23 23 using the instructions provided in 24 24 <ulink url="&blfs-book;postlfs/grub-setup.html">the BLFS page</ulink>. … … 55 55 the form of <emphasis>(hdn,m)</emphasis>, where <emphasis>n</emphasis> 56 56 is the hard drive number and <emphasis>m</emphasis> is the partition 57 number. The hard drive number s start from zero, but the partition numbers58 start from one for normal partitions (from five for extended partitions).57 number. The hard drive number starts from zero, but the partition number 58 starts from one for normal partitions and five for extended partitions. 59 59 Note that this is different from earlier versions where 60 60 both numbers started from zero. For example, partition <filename … … 84 84 this, you will need to mount the separate partition, move all files in the 85 85 current <filename class="directory">/boot</filename> directory (e.g. the 86 Linux kernel you just built in the previous section) to the new partition.86 linux kernel you just built in the previous section) to the new partition. 87 87 You will then need to unmount the partition and remount it as <filename 88 88 class="directory">/boot</filename>. If you do this, be sure to update 89 89 <filename>/etc/fstab</filename>.</para> 90 90 91 <para>Leaving <filename class="directory">/boot</filename> on 92 the current LFS partition will also work, but configuration 91 <para>Using the current lfs partition will also work, but configuration 93 92 for multiple systems is more difficult.</para> 94 93 … … 163 162 <filename>grub.cfg</filename> refers to some <quote>old</quote> 164 163 designators. If you wish to avoid such a problem, you may use 165 the UUID of a partition and the UUID of a filesystem instead of aGRUB designator to166 specify a device.164 the UUID of partition and filesystem instead of GRUB designator to 165 specify a partition. 167 166 Run <command>lsblk -o UUID,PARTUUID,PATH,MOUNTPOINT</command> to show 168 the UUID s of your filesystems (in the<literal>UUID</literal> column) and169 partitions (in the<literal>PARTUUID</literal> column). Then replace167 the UUID of your filesystems (in <literal>UUID</literal> column) and 168 partitions (in <literal>PARTUUID</literal> column). Then replace 170 169 <literal>set root=(hdx,y)</literal> with 171 <literal>search --set=root --fs-uuid <replaceable><UUID of the filesystem 172 where the kernel is installed></replaceable></literal>, and replace 170 <literal>search --set=root --fs-uuid <replaceable><UUID of the filesystem where the kernel is installed></replaceable></literal>, and replace 173 171 <literal>root=/dev/sda2</literal> with 174 <literal>root=PARTUUID=<replaceable><UUID of the partition where LFS 175 is built></replaceable></literal>.</para> 176 <para>Note that the UUID of a partition is completely different from the 177 UUID of the filesystem in this partition. Some online resources may 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 178 175 instruct you to use 179 176 <literal>root=UUID=<replaceable><filesystem UUID></replaceable></literal> 180 177 instead of 181 178 <literal>root=PARTUUID=<replaceable><partition UUID></replaceable></literal>, 182 but doing so will require an initramfs ,which is beyond the scope of179 but doing so will require an initramfs which is beyond the scope of 183 180 LFS.</para> 184 181 <para>The name of the device node for a partition in 185 <filename class='directory'>/dev</filename> may also change ( this is less186 likely than a GRUB designator change). You can also replace182 <filename class='directory'>/dev</filename> may also change (more 183 unlikely than GRUB designator change though). You can also replace 187 184 paths to device nodes like <literal>/dev/sda1</literal> with 188 185 <literal>PARTUUID=<replaceable><partition UUID></replaceable></literal>,
Note:
See TracChangeset
for help on using the changeset viewer.