个人工具

“UbuntuHelp:DebuggingUSBStorage”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(New page: {{From|https://help.ubuntu.com/community/DebuggingUSBStorage}} {{Languages|php5}} === USB2 Issues === This can be worked around easily. Simply run this command: <pre><nowiki> sudo rmmod ...)
 
 
(未显示2个用户的9个中间版本)
第1行: 第1行:
 
{{From|https://help.ubuntu.com/community/DebuggingUSBStorage}}
 
{{From|https://help.ubuntu.com/community/DebuggingUSBStorage}}
{{Languages|php5}}
+
{{Languages|UbuntuHelp:DebuggingUSBStorage}}
=== USB2 Issues ===
+
== USB2 Issues ==
 
+
 
This can be worked around easily. Simply run this command:
 
This can be worked around easily. Simply run this command:
 
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo rmmod ehci_hcd
 
sudo rmmod ehci_hcd
 
</nowiki></pre>
 
</nowiki></pre>
 
+
== Buffer I/O Errors ==
 
+
=== Buffer I/O Errors ===
+
 
+
 
If you see errors related to Buffer I/O when attaching a USB Storage device, there are two ways to work around it. First, try using varying max_sectors settings, as such:
 
If you see errors related to Buffer I/O when attaching a USB Storage device, there are two ways to work around it. First, try using varying max_sectors settings, as such:
 
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo sh -c "echo 120 > /sys/block/sda/queue/max_sectors_kb"
 
sudo sh -c "echo 120 > /sys/block/sda/queue/max_sectors_kb"
 
</nowiki></pre>
 
</nowiki></pre>
 
 
Try values of 120, 64 and 32.
 
Try values of 120, 64 and 32.
 
 
If this does not resolve the issue, then you may need an unusual_dev entry for your device. It would look something like this:
 
If this does not resolve the issue, then you may need an unusual_dev entry for your device. It would look something like this:
 
 
<pre><nowiki>
 
<pre><nowiki>
 
UNUSUAL_DEV(0x03eb , 0x2002, 0x0100, 0x9999,
 
UNUSUAL_DEV(0x03eb , 0x2002, 0x0100, 0x9999,
第29行: 第20行:
 
             US_FL_IGNORE_RESIDUE),
 
             US_FL_IGNORE_RESIDUE),
 
</nowiki></pre>
 
</nowiki></pre>
 
 
The vendor and device ID's can be obtained from the output of "lsusb". The entry would be placed in drivers/usb/storage/unusual_devs.h. If you cannot compile your own kernel, please file a bug report, and we'll attempt to compile a test module for you.
 
The vendor and device ID's can be obtained from the output of "lsusb". The entry would be placed in drivers/usb/storage/unusual_devs.h. If you cannot compile your own kernel, please file a bug report, and we'll attempt to compile a test module for you.
 
+
== Bug Reports ==
CategoryDocumentation CategoryCleanup
+
If you are filing a bug report, please include the following as attachments along with a detailed description of your problem.
 +
* Initiate the problem situation, then quickly get the output of <code><nowiki>dmesg</nowiki></code>
 +
* Output of <code><nowiki>uname -a</nowiki></code>
 +
* Output of <code><nowiki>lsb_release -a</nowiki></code>
 +
* Output of <code><nowiki>lsusb -v</nowiki></code>
 +
* any other data relevant to your problem
 +
== Further Help ==
 +
For help with mounting external drives, see [[UbuntuHelp:Mount/USB|Mount/USB]].
 +
For further help in troubleshooting, ask on the [[UbuntuWiki:UbuntuForums|Ubuntu Forums]] at http://ubuntuforums.org/
 +
----
 +
[[category:CategoryUsb]]
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2009年11月17日 (二) 18:52的最新版本

USB2 Issues

This can be worked around easily. Simply run this command:

sudo rmmod ehci_hcd

Buffer I/O Errors

If you see errors related to Buffer I/O when attaching a USB Storage device, there are two ways to work around it. First, try using varying max_sectors settings, as such:

sudo sh -c "echo 120 > /sys/block/sda/queue/max_sectors_kb"

Try values of 120, 64 and 32. If this does not resolve the issue, then you may need an unusual_dev entry for your device. It would look something like this:

UNUSUAL_DEV(0x03eb , 0x2002, 0x0100, 0x9999,
            "Generic",
            "MusicDrive",
            US_SC_DEVICE, US_PR_DEVICE, NULL,
            US_FL_IGNORE_RESIDUE),

The vendor and device ID's can be obtained from the output of "lsusb". The entry would be placed in drivers/usb/storage/unusual_devs.h. If you cannot compile your own kernel, please file a bug report, and we'll attempt to compile a test module for you.

Bug Reports

If you are filing a bug report, please include the following as attachments along with a detailed description of your problem.

  • Initiate the problem situation, then quickly get the output of dmesg
  • Output of uname -a
  • Output of lsb_release -a
  • Output of lsusb -v
  • any other data relevant to your problem

Further Help

For help with mounting external drives, see Mount/USB. For further help in troubleshooting, ask on the Ubuntu Forums at http://ubuntuforums.org/