分页: 1 / 1

[wiki]DebuggingRemovableDevices

发表于 : 2005-09-12 11:59
oneleaf
DebuggingRemovableDevices

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:

1.

disconnect the device
2.

killall gnome-volume-manager
3.

gnome-volume-manager 2>&1 | tee gvm.log
4.

connect the device
5.

wait a few seconds
6.

Press Control-C to stop the foreground gnome-volume-manager
7.

lshal > lshal.txt
8.

dmesg > dmesg.txt
9.

ls -l /dev/sd* > devices.txt
10.

attach gvm.log, lshal.txt, devices.txt, and dmesg.txt to the bug report
11.

restart your Gnome session to get a proper background g-v-m back
12.

paste the output of id into the bug report

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:

1.

disconnect the device
2.

sudo killall hald
3.

In Warty and Hoary:
*

sudo hald --drop-privileges --daemon=no --verbose=yes 2>&1 | tee hal.log

*

In Breezy:
o

sudo hald --daemon=no --verbose=yes 2>&1 | tee hal.log

1.

wait until the flood of messages settled
2.

connect the device
3.

wait again until no messages appear any more
4.

press Control-C to stop the foreground hal
5.

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)
6.

attach hal.log to the bug report


https://wiki.ubuntu.com/DebuggingRemovableDevices

初译

发表于 : 2005-09-12 13:44
leal
如果要提交可移除(移动 removable)设备如USB存储设备(“keys”密钥盘?、硬盘、读卡器、音乐播放器、数码相机等等)相关的问题报告时,请遵循如下步骤:

1.

使用下列命令断开(注:已连接的)设备

2.

killall gnome-volume-manager

3.

gnome-volume-manager 2>&1 | tee gvm.log

4.

连接该设备

5.

等待数秒钟

6.

按下Control-C终止前台gnome-volume-manager

7.

lshal > lshal.txt

8.

dmesg > dmesg.txt

9.

ls -l /dev/sd* > devices.txt

10.

把上述文件gvm.log, lshal.txt, devices.txt和dmesg.txt附加到bug报告中

11.

重新启动你的Gnome会话以使g-v-m能在后台正确运行

12.

把id的输出(??)粘贴到bug报告中

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

1.

使用下列命令断开(注:已连接的)设备

2.

sudo killall hald

3.

在Warty和Hoary(注:Ubuntu版本codename)中:

*

sudo hald --drop-privileges --daemon=no --verbose=yes 2>&1 | tee hal.log

*

在Breezy中:

o

sudo hald --daemon=no --verbose=yes 2>&1 | tee hal.log

1.

等着直到一大堆信息输出完毕

2.

连接该设备

3.

再次等待,直到不再出现任何信息

4.

按下Control-C终止前台的hal

5.

重载后台hal:

*

sudo /etc/init.d/dbus-1 restart (在Warty和Hoary中)

*

sudo /etc/dbus-1/event.d/20hal start (在Breezy中)

6.

把hal.log文件附加到bug报告中

https://wiki.ubuntu.com/DebuggingRemovableDevices

发表于 : 2005-09-22 23:16
oneleaf

发表于 : 2006-07-30 14:04
millenniumdark
校对了一下,还是有一点错误的。没改,只是把不妥的地方去掉了。
而且英文又新增了内容,感兴趣的接手啊。
http://wiki.ubuntu.org.cn/DebuggingRemovableDevices