个人工具

DebuggingRemovableDevices

来自Ubuntu中文

跳转至: 导航, 搜索

可移除设备故障提交流程

原文出处:https://wiki.ubuntu.com/DebuggingRemovableDevices

原文作者:UbuntuWiki

授权许可:

翻译人员:Leal

校正人员:MillenniumDark

贡献人员:

适用版本: 文章状态:等待翻译


When reporting a problem with removable devices, such as USB storage devices ("keys", hard drives, card readers, music players, digital cameras, etc.), please do the following steps:

如果要提交可移除(移动 removable)设备如USB存储设备(“keys”密钥盘?、硬盘、读卡器、音乐播放器、数码相机等等)相关的问题报告时,请遵循如下步骤: 0. disconnect the device 使用下列命令断开设备 0. `killall gnome-volume-manager` 0. In Ubuntu 5.10 (Breezy Badger) and older `gnome-volume-manager 2>&1 | tee gvm.log` In Ubuntu 6.06 (Dapper Drake) : `gnome-volume-manager -n 2>&1 | tee gvm.log`
and in another terminal `sudo udevmonitor -e | tee udev.log` FIXME 完成上面的翻译 0. connect the device 连接该设备 0. wait a few seconds 等待数秒钟 0. Press Control-C to stop the foreground gnome-volume-manager 按下Control-C终止前台gnome-volume-manager 0. In Dapper press Control-C to stop the udevmonitor FIXME 完成上面的翻译 0. `lshal > lshal.txt` 0. `dmesg > dmesg.txt` 0. `ls -l /dev/sd* > devices.txt` 0. attach `gvm.log`, `lshal.txt`, `devices.txt`, `dmesg.txt` and `udev.log` (dapper only) to the bug report 把上述文件gvm.log, lshal.txt, devices.txt和dmesg.txt附加到bug报告中 FIXME 修正上面的翻译 0. Press Alt-F2 and type `gnome-volume-manager` to get your background g-v-m back (or just log out and back in again) FIXME 完成上面的翻译 0. paste the output of `id` into the bug report 把id的输出粘贴到bug报告中 0. paste the output of `id hal` into the bug report 0. paste the output of `id haldaemon` into the bug report 0. paste the output of `uname -a` into the bug report FIXME 完成上面的翻译 In easy cases this is everything that is needed. However, you might be asked for a "hal debug output"; please do the following steps to get it:

如果情况简单,上面就是要做的所有事。当然,你也有可能被要求提交一份“hal调试输出”(hal debug output),请按照下列步骤取得这份输出:

0. disconnect the device 使用下列命令断开设备 0. `sudo killall hald` 0. In Warty and Hoary: `sudo hald --drop-privileges --daemon=no --verbose=yes 2>&1 | tee hal.log` In Breezy and Dapper: `sudo hald --daemon=no --verbose=yes 2>&1 | tee hal.log` FIXME 完成上面的翻译 0. wait until the flood of messages settled 等着直到一大堆信息输出完毕 0. connect the device 连接该设备 0. wait again until no messages appear any more 再次等待,直到不再出现任何信息 0. press Control-C to stop the foreground hal 按下Control-C终止前台的hal 0. Restore the background hal:

    • `sudo /etc/init.d/dbus-1 restart` (in Warty and Hoary)
    • `sudo /etc/dbus-1/event.d/20hal start` (in Breezy and Dapper)

FIXME 完成上面的翻译 0. attach hal.log to the bug report 把hal.log文件附加到bug报告中 0. Restart your desktop session