commit cb6b56e4610505b2a06f45d5a77b331449e63db0
Author: Pete Travis <immanetize(a)fedoraproject.org>
Date: Fri Jun 27 16:01:58 2014 -0600
updating troubleshooting section re: incorrect memory to reflect grub2 behavior
en-US/Trouble_After_Ram.xml | 54 +++++++++++++++++++++++++-----------------
1 files changed, 32 insertions(+), 22 deletions(-)
---
diff --git a/en-US/Trouble_After_Ram.xml b/en-US/Trouble_After_Ram.xml
index 13fafba..e058172 100644
--- a/en-US/Trouble_After_Ram.xml
+++ b/en-US/Trouble_After_Ram.xml
@@ -35,7 +35,7 @@
</step>
<step>
<para>
- You are presented with a list of items in the configuration file for the boot label you have selected. Choose the line that starts with <computeroutput moreinfo="none">kernel</computeroutput> and type <command moreinfo="none">e</command> to edit this boot entry.
+ You are presented with a list of items in the configuration file for the boot label you have selected. Move to the line that starts with <computeroutput moreinfo="none">linux</computeroutput> or <computeroutput>linuxefi</computeroutput>.
</para>
</step>
<step>
@@ -46,17 +46,12 @@
<screen>
<userinput moreinfo="none">mem=<replaceable>xx</replaceable>M</userinput></screen>
<para>
- where <replaceable>xx</replaceable> equals the amount of RAM in your system, then press <keycap moreinfo="none">Enter</keycap> to exit edit mode.
+ where <replaceable>xx</replaceable> equals the amount of RAM in your system in megabytes, then press <keycap moreinfo="none">F10</keycap> to boot the system.
</para>
</step>
<step>
<para>
- Once the boot loader screen has returned, type <command moreinfo="none">b</command> to boot the system.
- </para>
- </step>
- <step>
- <para>
- Run <command moreinfo="none">cat /proc/meminfo</command> again. If the known amount of RAM in your system is now displayed, add the following line to the <filename moreinfo="none">/etc/grub.d/10_linux</filename> file to make the change permanent:
+ Run <command moreinfo="none">cat /proc/meminfo</command> again. If the known amount of RAM in your system is now displayed, add the following to the <varname>GRUB_CMDLINE_LINUX</varname> line in <filename moreinfo="none">/etc/default/grub</filename>, inside the quotes, to make the change permanent:
</para>
<screen>
@@ -68,23 +63,38 @@
<step>
<para>
To update the <filename>grub.cfg</filename> file so that the change will take effect, run the following command with root privileges.
- </para>
-<screen><command>grub2-mkconfig --output=/boot/grub2/grub.cfg</command></screen>
+ </para>
+ <screen>
+ # for BIOS systems
+ <command>grub2-mkconfig --output=/boot/grub2/grub.cfg</command>
+ </screen>
+ <screen>
+ # for UEFI systems
+ <command>grub2-mkconfig --output=/boot/efi/EFI/fedora/grub.cfg</command>
+ </screen>
</step>
</procedure>
<para>
- In <filename moreinfo="none">10_linux</filename>, the above example would look similar to the following:
- </para>
-
-<screen>
-default=0
-timeout=30
-splashimage=(hd0,1)/grub/splash.xpm.gz
-menuentry 'Fedora Linux, with Linux 3.1.0-0.rc6.git0.3.fc16.x86_64'
-set root=(hd0,1)
-linux /vmlinuz-(2.6.32.130.el6.i686 ro root=UUID=04a07c13-e6bf-6d5a-b207-002689545705 mem=8192M
-initrd /initrd-(2.6.32.130.el6.i686.img
-</screen>
+ The resulting grub menu entry might look like this:
+ </para>
+ <screen>
+ menuentry 'Fedora (3.16.0-0.rc2.git2.1.fc21.x86_64) 21 (Rawhide)' {
+ load_video
+ set gfxpayload=keep
+ insmod gzio
+ insmod part_gpt
+ insmod ext2
+ set root='hd1,gpt2'
+ if [ x$feature_platform_search_hint = xy ]; then
+ search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2 b34a57d9-03d7-415f-94f6-91689404d951
+ else
+ search --no-floppy --fs-uuid --set=root b34a57d9-03d7-415f-94f6-91689404d951
+ fi
+ linuxefi /vmlinuz-3.16.0-0.rc2.git2.1.fc21.x86_64 root=UUID=ece86abc-6419-4f29-84b6-1b810128f98d ro rootflags=subvol=root vconsole.font=latarcyrheb-sun16 vconsole.keymap=us LANG=en_US.UTF-8 mem=8192M
+ initrdefi /initramfs-3.16.0-0.rc2.git2.1.fc21.x86_64.img
+ }
+
+ </screen>
</section>