[Ubuntu Wiki] Update of "DebuggingKernelBoot" by penalvch

Ubuntu Wiki noreply at ubuntu.com
Sun Jul 24 20:41:40 UTC 2016


Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Ubuntu Wiki" for change notification.

The "DebuggingKernelBoot" page has been changed by penalvch:
http://wiki.ubuntu.com/DebuggingKernelBoot?action=diff&rev1=15&rev2=16

Comment:
Due to LP#1568429 & others, clarified need log from failed boot (not a working boot).

- Unfortunately it is sometimes the case that your system will fail to boot due to changes within the kernel.  It is important that when submitting bug reports about these types of failures that you include the appropriate debugging information that can help the kernel team resolve the issue.  The following wiki will document some useful tips to capture any relevant information.
+ Unfortunately it is sometimes the case that your system will fail to boot due to changes within the kernel.  It is important that when submitting bug reports about these types of failures that you include the debugging information from a failed boot (not a working boot). This article will help gather this information to provide in your report.
  
- == Boot Options ==
+ = Boot Options =
+ 
- When trying to capture relevant error messages that appear at boot it is often useful to boot with the '''quiet''' and '''splash''' options removed.  This will hopefully allow you to see any messages that come across your screen.  To edit boot option parameters, do the following:
+ When trying to capture relevant error messages that appear at boot it is often useful to boot with the '''quiet''' and '''splash''' options removed. This will hopefully allow you to see any messages that come across your screen.  To edit boot option parameters, do the following:
  
   1. Boot the machine.
   1. During the BIOS screen, press the shift key and hold it down. You should see the GRUB menu after the BIOS loads.
   1. Navigate to the kernel entry you want to boot, and press 'e'.
-  1. Then remove the '''quiet''' and '''splash''' keywords (found in the line starting with linux) 
+  1. Then remove the '''quiet''' and '''splash''' keywords (found in the line starting with linux).
   1. Starting with Natty (Ubuntu 11.04), also remove the parameter '''vt.handoff=7''', and on the line that reads '''set gfxpayload=$linux_gfx_mode''', replace with '''set gfxpayload=text'''
   1. Press 'Ctrl+x' to boot.
  
- It's best if you can attach a log file which may have captured any messages you see.  If you are unable to capture a log file, a digital photo will work just as well.  As a last resort you can even copy messages down by hand.
+ It's best if you can attach a log file which may have captured any messages you see. If you are unable to capture a log file, a digital photo will work just as well. As a last resort you can even copy messages down by hand.
  
- Depending on the type of error messages you encounter, there are other boot options you could try.  For example, if you notice ACPI errors, try booting with the '''acpi=off''' boot option.  For a full description of these options, refer to the [[http://www.kernel.org/doc/Documentation/kernel-parameters.txt|kernel parameters]] document.
+ Depending on the type of error messages you encounter, there are other boot options you could try. For example, if you notice ACPI errors, try booting with the '''acpi=off''' boot option. For a full description of these options, refer to the [[http://www.kernel.org/doc/Documentation/kernel-parameters.txt|kernel parameters]] document.
  
- == Initramfs ==
+ = Initramfs =
- Sometimes you may even be dropped into an initramfs shell.  This indicates errors in the boot sequence, for example failing to find your root partition/filesystem.  You are put into the initramfs shell in an effort to allow you to recover the system.  Hopefully, if you boot with the '''quiet''' and '''splash''' options removed you will notice error messages before being dropped into the shell which will help debug and direct you to a solution.
  
- If you are dropped into an initramfs shell you may want to also try booting with the '''debug''' boot option.  It should write a log to /tmp/initramfs.debug.  You could also specify some arbitrary argument (for example '''debug=vc''') to have the output written to the console.
+ Sometimes you may even be dropped into an initramfs shell. This indicates errors in the boot sequence, for example failing to find your root partition/filesystem. You are put into the initramfs shell in an effort to allow you to recover the system. Hopefully, if you boot with the '''quiet''' and '''splash''' options removed you will notice error messages before being dropped into the shell which will help debug and direct you to a solution.
  
- Additionally, being able to extract log files from the system would be helpful.  Once dropped into an initramfs shell, you can type '''httpd'''.  You should then be able to point a web browser to the IP address of the system and view the contents of /var/log . 
+ If you are dropped into an initramfs shell you may want to also try booting with the '''debug''' boot option.  It should write a log to /tmp/initramfs.debug. You could also specify some arbitrary argument (for example '''debug=vc''') to have the output written to the console.
  
- There is another initramfs boot parameter which can purposely drop you into the initramfs shell during different stages of the initial boot sequence.  The parameter is '''break=[option]''' where option can be: top, modules, premount, mount, bottom, or init.  The default is premount if no options are specified.  More information about the break= parameters can be found in "/usr/share/initramfs-tools/init" on your Ubuntu system.
+ Additionally, being able to extract log files from the system would be helpful. Once dropped into an initramfs shell, you can type '''httpd'''. You should then be able to point a web browser to the IP address of the system and view the contents of the /var/log folder. 
  
+ There is another initramfs boot parameter which can purposely drop you into the initramfs shell during different stages of the initial boot sequence. The parameter is '''break=[option]''' where option can be: top, modules, premount, mount, bottom, or init. The default is premount if no options are specified. More information about the break= parameters can be found in "/usr/share/initramfs-tools/init" on your Ubuntu system.
+ 
- == Links ==
+ = Links =
-  * [[http://askubuntu.com/questions/32999/what-is-vt-handoff-7-parameter-in-grub-cfg|vt.handoff]] explained
+ 
+  * [[https://help.ubuntu.com/community/vt.handoff|vt.handoff]] explained
+ 
  ----
  CategoryBugSquad CategoryDebugging
  



More information about the Ubuntu-bugsquad mailing list