特殊:Badtitle/NS100:DebuggingUSBStorage
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/DebuggingUSBStorage }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:DebuggingUSBStorage | UbuntuHelp:DebuggingUSBStorage | {{#if: | :}}DebuggingUSBStorage}}/af | • {{#if: UbuntuHelp:DebuggingUSBStorage|Afrikaans| [[::DebuggingUSBStorage/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingUSBStorage | UbuntuHelp:DebuggingUSBStorage | {{#if: | :}}DebuggingUSBStorage}}/ar | • {{#if: UbuntuHelp:DebuggingUSBStorage|العربية| [[::DebuggingUSBStorage/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingUSBStorage | UbuntuHelp:DebuggingUSBStorage | {{#if: | :}}DebuggingUSBStorage}}/az | • {{#if: UbuntuHelp:DebuggingUSBStorage|azərbaycanca| [[::DebuggingUSBStorage/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingUSBStorage | UbuntuHelp:DebuggingUSBStorage | {{#if: | :}}DebuggingUSBStorage}}/bcc | • {{#if: UbuntuHelp:DebuggingUSBStorage|جهلسری بلوچی| [[::DebuggingUSBStorage/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingUSBStorage | UbuntuHelp:DebuggingUSBStorage | {{#if: | :}}DebuggingUSBStorage}}/bg | • {{#if: UbuntuHelp:DebuggingUSBStorage|български| [[::DebuggingUSBStorage/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingUSBStorage | UbuntuHelp:DebuggingUSBStorage | {{#if: | :}}DebuggingUSBStorage}}/br | • {{#if: UbuntuHelp:DebuggingUSBStorage|brezhoneg| [[::DebuggingUSBStorage/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingUSBStorage | UbuntuHelp:DebuggingUSBStorage | {{#if: | :}}DebuggingUSBStorage}}/ca | • {{#if: UbuntuHelp:DebuggingUSBStorage|català| [[::DebuggingUSBStorage/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingUSBStorage | UbuntuHelp:DebuggingUSBStorage | {{#if: | :}}DebuggingUSBStorage}}/cs | • {{#if: UbuntuHelp:DebuggingUSBStorage|čeština| [[::DebuggingUSBStorage/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingUSBStorage | UbuntuHelp:DebuggingUSBStorage | {{#if: | :}}DebuggingUSBStorage}}/de | • {{#if: UbuntuHelp:DebuggingUSBStorage|Deutsch| [[::DebuggingUSBStorage/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingUSBStorage | UbuntuHelp:DebuggingUSBStorage | {{#if: | :}}DebuggingUSBStorage}}/el | • {{#if: UbuntuHelp:DebuggingUSBStorage|Ελληνικά| [[::DebuggingUSBStorage/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingUSBStorage | UbuntuHelp:DebuggingUSBStorage | {{#if: | :}}DebuggingUSBStorage}}/es | • {{#if: UbuntuHelp:DebuggingUSBStorage|español| [[::DebuggingUSBStorage/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingUSBStorage | UbuntuHelp:DebuggingUSBStorage | {{#if: | :}}DebuggingUSBStorage}}/fa | • {{#if: UbuntuHelp:DebuggingUSBStorage|فارسی| [[::DebuggingUSBStorage/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingUSBStorage | UbuntuHelp:DebuggingUSBStorage | {{#if: | :}}DebuggingUSBStorage}}/fi | • {{#if: UbuntuHelp:DebuggingUSBStorage|suomi| [[::DebuggingUSBStorage/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingUSBStorage | UbuntuHelp:DebuggingUSBStorage | {{#if: | :}}DebuggingUSBStorage}}/fr | • {{#if: UbuntuHelp:DebuggingUSBStorage|français| [[::DebuggingUSBStorage/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingUSBStorage | UbuntuHelp:DebuggingUSBStorage | {{#if: | :}}DebuggingUSBStorage}}/gu | • {{#if: UbuntuHelp:DebuggingUSBStorage|ગુજરાતી| [[::DebuggingUSBStorage/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingUSBStorage | UbuntuHelp:DebuggingUSBStorage | {{#if: | :}}DebuggingUSBStorage}}/he | • {{#if: UbuntuHelp:DebuggingUSBStorage|עברית| [[::DebuggingUSBStorage/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingUSBStorage | UbuntuHelp:DebuggingUSBStorage | {{#if: | :}}DebuggingUSBStorage}}/hu | • {{#if: UbuntuHelp:DebuggingUSBStorage|magyar| [[::DebuggingUSBStorage/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingUSBStorage | UbuntuHelp:DebuggingUSBStorage | {{#if: | :}}DebuggingUSBStorage}}/id | • {{#if: UbuntuHelp:DebuggingUSBStorage|Bahasa Indonesia| [[::DebuggingUSBStorage/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingUSBStorage | UbuntuHelp:DebuggingUSBStorage | {{#if: | :}}DebuggingUSBStorage}}/it | • {{#if: UbuntuHelp:DebuggingUSBStorage|italiano| [[::DebuggingUSBStorage/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingUSBStorage | UbuntuHelp:DebuggingUSBStorage | {{#if: | :}}DebuggingUSBStorage}}/ja | • {{#if: UbuntuHelp:DebuggingUSBStorage|日本語| [[::DebuggingUSBStorage/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingUSBStorage | UbuntuHelp:DebuggingUSBStorage | {{#if: | :}}DebuggingUSBStorage}}/ko | • {{#if: UbuntuHelp:DebuggingUSBStorage|한국어| [[::DebuggingUSBStorage/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingUSBStorage | UbuntuHelp:DebuggingUSBStorage | {{#if: | :}}DebuggingUSBStorage}}/ksh | • {{#if: UbuntuHelp:DebuggingUSBStorage|Ripoarisch| [[::DebuggingUSBStorage/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingUSBStorage | UbuntuHelp:DebuggingUSBStorage | {{#if: | :}}DebuggingUSBStorage}}/mr | • {{#if: UbuntuHelp:DebuggingUSBStorage|मराठी| [[::DebuggingUSBStorage/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingUSBStorage | UbuntuHelp:DebuggingUSBStorage | {{#if: | :}}DebuggingUSBStorage}}/ms | • {{#if: UbuntuHelp:DebuggingUSBStorage|Bahasa Melayu| [[::DebuggingUSBStorage/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingUSBStorage | UbuntuHelp:DebuggingUSBStorage | {{#if: | :}}DebuggingUSBStorage}}/nl | • {{#if: UbuntuHelp:DebuggingUSBStorage|Nederlands| [[::DebuggingUSBStorage/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingUSBStorage | UbuntuHelp:DebuggingUSBStorage | {{#if: | :}}DebuggingUSBStorage}}/no | • {{#if: UbuntuHelp:DebuggingUSBStorage|norsk| [[::DebuggingUSBStorage/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingUSBStorage | UbuntuHelp:DebuggingUSBStorage | {{#if: | :}}DebuggingUSBStorage}}/oc | • {{#if: UbuntuHelp:DebuggingUSBStorage|occitan| [[::DebuggingUSBStorage/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingUSBStorage | UbuntuHelp:DebuggingUSBStorage | {{#if: | :}}DebuggingUSBStorage}}/pl | • {{#if: UbuntuHelp:DebuggingUSBStorage|polski| [[::DebuggingUSBStorage/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingUSBStorage | UbuntuHelp:DebuggingUSBStorage | {{#if: | :}}DebuggingUSBStorage}}/pt | • {{#if: UbuntuHelp:DebuggingUSBStorage|português| [[::DebuggingUSBStorage/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingUSBStorage | UbuntuHelp:DebuggingUSBStorage | {{#if: | :}}DebuggingUSBStorage}}/ro | • {{#if: UbuntuHelp:DebuggingUSBStorage|română| [[::DebuggingUSBStorage/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingUSBStorage | UbuntuHelp:DebuggingUSBStorage | {{#if: | :}}DebuggingUSBStorage}}/ru | • {{#if: UbuntuHelp:DebuggingUSBStorage|русский| [[::DebuggingUSBStorage/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingUSBStorage | UbuntuHelp:DebuggingUSBStorage | {{#if: | :}}DebuggingUSBStorage}}/si | • {{#if: UbuntuHelp:DebuggingUSBStorage|සිංහල| [[::DebuggingUSBStorage/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingUSBStorage | UbuntuHelp:DebuggingUSBStorage | {{#if: | :}}DebuggingUSBStorage}}/sq | • {{#if: UbuntuHelp:DebuggingUSBStorage|shqip| [[::DebuggingUSBStorage/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingUSBStorage | UbuntuHelp:DebuggingUSBStorage | {{#if: | :}}DebuggingUSBStorage}}/sr | • {{#if: UbuntuHelp:DebuggingUSBStorage|српски / srpski| [[::DebuggingUSBStorage/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingUSBStorage | UbuntuHelp:DebuggingUSBStorage | {{#if: | :}}DebuggingUSBStorage}}/sv | • {{#if: UbuntuHelp:DebuggingUSBStorage|svenska| [[::DebuggingUSBStorage/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingUSBStorage | UbuntuHelp:DebuggingUSBStorage | {{#if: | :}}DebuggingUSBStorage}}/th | • {{#if: UbuntuHelp:DebuggingUSBStorage|ไทย| [[::DebuggingUSBStorage/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingUSBStorage | UbuntuHelp:DebuggingUSBStorage | {{#if: | :}}DebuggingUSBStorage}}/tr | • {{#if: UbuntuHelp:DebuggingUSBStorage|Türkçe| [[::DebuggingUSBStorage/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingUSBStorage | UbuntuHelp:DebuggingUSBStorage | {{#if: | :}}DebuggingUSBStorage}}/vi | • {{#if: UbuntuHelp:DebuggingUSBStorage|Tiếng Việt| [[::DebuggingUSBStorage/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingUSBStorage | UbuntuHelp:DebuggingUSBStorage | {{#if: | :}}DebuggingUSBStorage}}/yue | • {{#if: UbuntuHelp:DebuggingUSBStorage|粵語| [[::DebuggingUSBStorage/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingUSBStorage | UbuntuHelp:DebuggingUSBStorage | {{#if: | :}}DebuggingUSBStorage}}/zh | • {{#if: UbuntuHelp:DebuggingUSBStorage|中文| [[::DebuggingUSBStorage/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingUSBStorage | UbuntuHelp:DebuggingUSBStorage | {{#if: | :}}DebuggingUSBStorage}}/zh-hans | • {{#if: UbuntuHelp:DebuggingUSBStorage|中文(简体)| [[::DebuggingUSBStorage/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingUSBStorage | UbuntuHelp:DebuggingUSBStorage | {{#if: | :}}DebuggingUSBStorage}}/zh-hant | • {{#if: UbuntuHelp:DebuggingUSBStorage|中文(繁體)| [[::DebuggingUSBStorage/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:DebuggingUSBStorage|:DebuggingUSBStorage|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :DebuggingUSBStorage/zh | | {{#ifexist: DebuggingUSBStorage/zh | | {{#ifeq: {{#titleparts:DebuggingUSBStorage|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:DebuggingUSBStorage|1|-1|}} | zh | | }}
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/