特殊:Badtitle/NS100:DMA/zh
![]() |
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/DMA }} |
![]() |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:DMA | UbuntuHelp:DMA | {{#if: | :}}DMA/zh}}/af | • {{#if: UbuntuHelp:DMA|Afrikaans| [[::DMA/zh/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DMA | UbuntuHelp:DMA | {{#if: | :}}DMA/zh}}/ar | • {{#if: UbuntuHelp:DMA|العربية| [[::DMA/zh/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DMA | UbuntuHelp:DMA | {{#if: | :}}DMA/zh}}/az | • {{#if: UbuntuHelp:DMA|azərbaycanca| [[::DMA/zh/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DMA | UbuntuHelp:DMA | {{#if: | :}}DMA/zh}}/bcc | • {{#if: UbuntuHelp:DMA|جهلسری بلوچی| [[::DMA/zh/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DMA | UbuntuHelp:DMA | {{#if: | :}}DMA/zh}}/bg | • {{#if: UbuntuHelp:DMA|български| [[::DMA/zh/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DMA | UbuntuHelp:DMA | {{#if: | :}}DMA/zh}}/br | • {{#if: UbuntuHelp:DMA|brezhoneg| [[::DMA/zh/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DMA | UbuntuHelp:DMA | {{#if: | :}}DMA/zh}}/ca | • {{#if: UbuntuHelp:DMA|català| [[::DMA/zh/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DMA | UbuntuHelp:DMA | {{#if: | :}}DMA/zh}}/cs | • {{#if: UbuntuHelp:DMA|čeština| [[::DMA/zh/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DMA | UbuntuHelp:DMA | {{#if: | :}}DMA/zh}}/de | • {{#if: UbuntuHelp:DMA|Deutsch| [[::DMA/zh/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DMA | UbuntuHelp:DMA | {{#if: | :}}DMA/zh}}/el | • {{#if: UbuntuHelp:DMA|Ελληνικά| [[::DMA/zh/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DMA | UbuntuHelp:DMA | {{#if: | :}}DMA/zh}}/es | • {{#if: UbuntuHelp:DMA|español| [[::DMA/zh/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DMA | UbuntuHelp:DMA | {{#if: | :}}DMA/zh}}/fa | • {{#if: UbuntuHelp:DMA|فارسی| [[::DMA/zh/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DMA | UbuntuHelp:DMA | {{#if: | :}}DMA/zh}}/fi | • {{#if: UbuntuHelp:DMA|suomi| [[::DMA/zh/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DMA | UbuntuHelp:DMA | {{#if: | :}}DMA/zh}}/fr | • {{#if: UbuntuHelp:DMA|français| [[::DMA/zh/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DMA | UbuntuHelp:DMA | {{#if: | :}}DMA/zh}}/gu | • {{#if: UbuntuHelp:DMA|ગુજરાતી| [[::DMA/zh/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DMA | UbuntuHelp:DMA | {{#if: | :}}DMA/zh}}/he | • {{#if: UbuntuHelp:DMA|עברית| [[::DMA/zh/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DMA | UbuntuHelp:DMA | {{#if: | :}}DMA/zh}}/hu | • {{#if: UbuntuHelp:DMA|magyar| [[::DMA/zh/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DMA | UbuntuHelp:DMA | {{#if: | :}}DMA/zh}}/id | • {{#if: UbuntuHelp:DMA|Bahasa Indonesia| [[::DMA/zh/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DMA | UbuntuHelp:DMA | {{#if: | :}}DMA/zh}}/it | • {{#if: UbuntuHelp:DMA|italiano| [[::DMA/zh/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DMA | UbuntuHelp:DMA | {{#if: | :}}DMA/zh}}/ja | • {{#if: UbuntuHelp:DMA|日本語| [[::DMA/zh/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DMA | UbuntuHelp:DMA | {{#if: | :}}DMA/zh}}/ko | • {{#if: UbuntuHelp:DMA|한국어| [[::DMA/zh/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DMA | UbuntuHelp:DMA | {{#if: | :}}DMA/zh}}/ksh | • {{#if: UbuntuHelp:DMA|Ripoarisch| [[::DMA/zh/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DMA | UbuntuHelp:DMA | {{#if: | :}}DMA/zh}}/mr | • {{#if: UbuntuHelp:DMA|मराठी| [[::DMA/zh/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DMA | UbuntuHelp:DMA | {{#if: | :}}DMA/zh}}/ms | • {{#if: UbuntuHelp:DMA|Bahasa Melayu| [[::DMA/zh/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DMA | UbuntuHelp:DMA | {{#if: | :}}DMA/zh}}/nl | • {{#if: UbuntuHelp:DMA|Nederlands| [[::DMA/zh/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DMA | UbuntuHelp:DMA | {{#if: | :}}DMA/zh}}/no | • {{#if: UbuntuHelp:DMA|norsk| [[::DMA/zh/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DMA | UbuntuHelp:DMA | {{#if: | :}}DMA/zh}}/oc | • {{#if: UbuntuHelp:DMA|occitan| [[::DMA/zh/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DMA | UbuntuHelp:DMA | {{#if: | :}}DMA/zh}}/pl | • {{#if: UbuntuHelp:DMA|polski| [[::DMA/zh/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DMA | UbuntuHelp:DMA | {{#if: | :}}DMA/zh}}/pt | • {{#if: UbuntuHelp:DMA|português| [[::DMA/zh/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DMA | UbuntuHelp:DMA | {{#if: | :}}DMA/zh}}/ro | • {{#if: UbuntuHelp:DMA|română| [[::DMA/zh/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DMA | UbuntuHelp:DMA | {{#if: | :}}DMA/zh}}/ru | • {{#if: UbuntuHelp:DMA|русский| [[::DMA/zh/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DMA | UbuntuHelp:DMA | {{#if: | :}}DMA/zh}}/si | • {{#if: UbuntuHelp:DMA|සිංහල| [[::DMA/zh/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DMA | UbuntuHelp:DMA | {{#if: | :}}DMA/zh}}/sq | • {{#if: UbuntuHelp:DMA|shqip| [[::DMA/zh/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DMA | UbuntuHelp:DMA | {{#if: | :}}DMA/zh}}/sr | • {{#if: UbuntuHelp:DMA|српски / srpski| [[::DMA/zh/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DMA | UbuntuHelp:DMA | {{#if: | :}}DMA/zh}}/sv | • {{#if: UbuntuHelp:DMA|svenska| [[::DMA/zh/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DMA | UbuntuHelp:DMA | {{#if: | :}}DMA/zh}}/th | • {{#if: UbuntuHelp:DMA|ไทย| [[::DMA/zh/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DMA | UbuntuHelp:DMA | {{#if: | :}}DMA/zh}}/tr | • {{#if: UbuntuHelp:DMA|Türkçe| [[::DMA/zh/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DMA | UbuntuHelp:DMA | {{#if: | :}}DMA/zh}}/vi | • {{#if: UbuntuHelp:DMA|Tiếng Việt| [[::DMA/zh/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DMA | UbuntuHelp:DMA | {{#if: | :}}DMA/zh}}/yue | • {{#if: UbuntuHelp:DMA|粵語| [[::DMA/zh/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DMA | UbuntuHelp:DMA | {{#if: | :}}DMA/zh}}/zh | • {{#if: UbuntuHelp:DMA|中文| [[::DMA/zh/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DMA | UbuntuHelp:DMA | {{#if: | :}}DMA/zh}}/zh-hans | • {{#if: UbuntuHelp:DMA|中文(简体)| [[::DMA/zh/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DMA | UbuntuHelp:DMA | {{#if: | :}}DMA/zh}}/zh-hant | • {{#if: UbuntuHelp:DMA|中文(繁體)| [[::DMA/zh/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:DMA|:DMA/zh|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :DMA/zh/zh | | {{#ifexist: DMA/zh/zh | | {{#ifeq: {{#titleparts:DMA/zh|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:DMA/zh|1|-1|}} | zh | | }}
介绍
如果你感觉你的 DVD 播放时有跳跃现象,或者拷贝音乐 CD 非常慢,或者在访问光驱时系统变慢,这可能是由于你没有启用 DMA,或者叫“内存直接访问(Direct Memory Access)”。DMA 能让硬盘或光驱等设备直接访问系统内存。Ubuntu 6.06 (Dapper Drake) 能够识别支持 DMA 的设备并自动启用 DMA。
警告:启用 DMA 在某些情况下是有风险的,这通常跟硬件故障或使用了系统不支持的设置有关。不当的使用 hdparm 命令可能导致主要数据的破坏和/或丢失!近 4 年内的系统大都支持 DMA。
启用 DMA
To enable DMA, you need to use the hdparm
command and the configuration file hdparm.conf
. These instructions assume that you are trying to enable DMA on `hdc`, usually the CD-rom drive.
- See the what the settings are on `/dev/hdc`
sudo hdparm /dev/hdc
- If you get a line like
using_dma = 1 (on)
, DMA is already enabled. Skip to step 4 to see if it has been enabled at boot time. - Enable DMA on `/dev/hdc`
sudo hdparm -d1 /dev/hdc
- You have now enabled DMA for the drive. However, in order for the settings to be automatically applied at boot there you need to edit the
/etc/hdparm.conf
script. To do this use this command:gksudo gedit /etc/hdparm.conf
Add the following to the end of your hdparm.conf
/dev/hdc { dma = on }
(another way of avoiding editing of the hdparm.conf file is to simply run sudo hdparm -d1 -k1 /dev/hdc
to keep the DMA flag).
常见问题
If your drives are configured in [Cable Select] mode and while running `hdparm` commands you receive errors related to timeouts or drive not ready, try changing the drive to be a master or slave device depending on your system configuration. This does require opening the case and as far as I know most drives are set to Cable Select from the manufacturer. Sometimes step 3 above can fail with an "Operation Not Permitted" message. You can fix this by editing the file /etc/modules: For an Intel CPU put the lines
piix ide-core
above the line ide-cd
For an AMD CPU put the line amd74xx
above ide-cd
For a VIA Chipset put via82cxxx
above ide-cd
Then reboot and try steps 3-4 again....
Further reading
The hdparm has further options that may be more risky. They can be seen using the man hdparm
command in the terminal. For a detailed description of DMA visit the IEEE http://standards.ieee.org/reading/ieee/std_public/description/busarch/1212.1-1993_desc.html IDE, EIDE and UDMA http://www.spcug.org/reviews/bl0108.htm