mirror of
https://review.haiku-os.org/userguide
synced 2026-02-04 07:53:42 +01:00
Synchronize.
This commit is contained in:
@@ -146,16 +146,16 @@ Note that in KDL your keyboard may not work. PS/2 keyboards always do, with USB
|
||||
<p><b>这是从无法引导的系统中获取信息的首选方法。</b>
|
||||
<br />
|
||||
系统日志(syslog,system log 的缩写)中包含了关于系统问题的有用信息,包括 KDL 会话的输出信息 。通常将它附带到有关内核问题的报告中是个不错的主意。系统日志将会写入文件 <span class="path">/boot/system/var/log/syslog</span>。由于写入文件需要系统处于运行状态,因此当内核出现问题时(尤其是,系统自动重启,或者无法持续 KDL 会话),最新的输出信息可能无法写入日志文件。</p>
|
||||
<p>引导程序的 <span class="menu">Debug menu</span> 中的<span class="menu">Enable debug syslog</span> 选项可以使系统日志持久存在。如果启用了引导菜单中的 <span class="menu">Save syslog from previous session during boot</span> 选项(默认情况下启用),您可以在 <span class="path">/boot/system/var/log/previous_syslog</span> 中找到最近登陆会话的系统日志。<br />
|
||||
如果您无法启动并获取最近的日志文件 previous_syslog,您需要在引导时按下 <span class="key">SHIFT</span> 进入引导程序菜单。<br />
|
||||
在引导程序的 <span class="menu">Debug menu</span> 中,您可以找到 <span class="menu">Display syslog from previous session</span> 和 <span class="menu">Save syslog from previous session</span> 两个入口。前者将系统日志显示于屏幕,后者允许您将其保存到硬盘。需要注意的是,目前只有 FAT32 卷支持保存该文件。如果您使用 USB 磁盘,但是插入晚了,可能它将不被识别;您可以重置机器,然后再次进入引导程序菜单。但是还要注意:不要无故的启动任何操作系统,否则数据将会丢失。</p>
|
||||
<p>The option <span class="menu">Enable debug syslog</span> in the boot loader's <span class="menu">Debug menu</span> makes the syslog persistent. If the option <span class="menu">Save syslog from previous session during boot</span> is activated in the boot loader options (as it is by default), you'll find the syslog of your last session as <span class="path">/boot/system/var/log/previous_syslog</span>.<br />
|
||||
If you're not able to boot to get to the previous_syslog, you have to enter the boot loader menu by holding down <span class="key">SHIFT</span> (or <span class="key">SPACE</span> when booting via UEFI) while booting.<br />
|
||||
In the boot loader's <span class="menu">Debug menu</span> you should find the entries <span class="menu">Display syslog from previous session</span> and <span class="menu">Save syslog from previous session</span>. The former displays the syslog on screen, the latter allows you to save it as a file to disk. Note that at the moment only FAT32 volumes are supported for saving the file. If you want to use a USB stick, but have plugged it in too late so that it isn't recognized yet, you can reset the machine and re-enter the boot loader menu. Note: Don't accidentally boot any operating system or the data will be lost.</p>
|
||||
|
||||
<h3><a href="#"><img src="../images/up.png" style="border:none;float:right" alt="index" /></a>
|
||||
<a id="onscreen" name="onscreen">屏幕调试</a></h3>
|
||||
<p><b>屏幕调试输出仅对调试特殊问题有用,而且自身也有(定时)问题。若非必须,不要使用它。</b><br />
|
||||
只有当 Haiku 引导机器失败,而且 <span class="menu">Debug syslog option</span> 出于某些原因无法使用,它才具有重要意义。 在Haiku的引导徽标出现之前,按下 <span class="key">SHIFT</span> 进入引导程序菜单。 选择 <span class="menu">Select safe mode options</span>。 在接近屏幕底部,<span class="menu">[ ] Enable on screen debug output</span> 将会列出。(注意:如果尝试启动Haiku,您可以启用另一个选项。如果 Haiku 只有在启用多个选项时才可以启动,您在错误报告中一定要给出这些选项。)<br />
|
||||
最后,选择 <span class="menu">Return to main menu</span> 和 <span class="menu">Continue booting</span>。<br />
|
||||
在屏幕上将会显示一页或者多页文本,只有最后几行才需要附带到您的错误报告。更多信息,参阅 <a href="../../userguide/zh_CN/bootloader.html">引导程序</a>。</p>
|
||||
<p><b>The on-screen debug output is useful only for debugging very specific issues and is known to have (timing) issues. Don't use it, if you don't have to.</b><br />
|
||||
This is only relevant when Haiku fails to boot on your machine and the <span class="menu">Debug syslog</span> option doesn't work for some reason. Before the Haiku boot logo appears, hold <span class="key">SHIFT</span> (or <span class="key">SPACE</span> when booting via UEFI) to enter the boot loader menu. Select <span class="menu">Select debug options</span>. Near the bottom, <span class="menu">Enable on screen debug output</span> will be listed. (Note: The other options could be enabled in an attempt to boot Haiku. If Haiku will boot only when one or more options are activated, be sure to mention which ones.)<br />
|
||||
Finally select <span class="menu">Return to main menu</span> and then <span class="menu">Continue booting</span>.<br />
|
||||
One or more pages of text will display on the screen, only the last few lines need to be included on your ticket. There's more information on the <a href="../../userguide/zh_CN/bootloader.html">Boot Loader</a>.</p>
|
||||
|
||||
<h2><a href="#"><img src="../images/up.png" style="border:none;float:right" alt="index" /></a>
|
||||
<a id="hardware" name="hardware">硬件错误</a></h2>
|
||||
@@ -168,7 +168,7 @@ Note that in KDL your keyboard may not work. PS/2 keyboards always do, with USB
|
||||
<tr><td class="onelinetop">- <span class="cli">listimage | grep drivers/</span></td><td> </td><td> 列出所有使用的驱动。</td></tr>
|
||||
<tr><td>- <span class="cli">usb_hid_report</span></td><td> </td><td>In case of USB input devices, add the <span class="cli">/tmp/usb_hid_report_descriptor_*.bin</span> file.</td></tr>
|
||||
<tr><td>- <span class="cli">ints</span></td><td> </td><td>只在 <i>内核调试状态</i> 可用(参阅下文)。它用显示中断使用情况。不可能有许多由不同硬件共享的中断。</td></tr>
|
||||
<tr><td colspan="3">- 屏幕调试输出(一种安全模式引导时间选项,查看 <a href="#onscreen">上述</a>)。</td></tr>
|
||||
<tr><td colspan="3">- On screen debug output (a debug boot time option, see <a href="#onscreen">above</a>).</td></tr>
|
||||
</table>
|
||||
|
||||
<p>前四个命令需要在终端中进行输入。在命令后添加 <span class="cli"> > output.txt</span> ,然后输出的信息将会重定向到“output.txt”文本文件,您可以将其附带到您的错误报告或者邮件。</p>
|
||||
|
||||
Reference in New Issue
Block a user