Enable your parallel hard drive to work under the UltraDMA100 and UltraDMA133

Source: Internet
Author: User
Let your parallel hard drive work under UltraDMA100 and UltraDMA133-Linux Enterprise Application-Linux server application information. The following is a detailed description. Author: BOBO123

The current motherboard and hard disk support UltraDMA 100, the old motherboard such as VIA 693, Intel 810 chipset motherboard only support UltraDMA 66, however, after VIA 694 and Intel 815, both chip boards support UltraDMA 100, and some VIA chip boards even support UltraDMA 133. When the motherboard, hard disk, and data connection lines support the corresponding standards, we can use the following command to make the hard disk work in the corresponding mode to speed up Linux running. Search for Command Parameters

1) command: hdparm-d1X66-m16-c3-k1/dev/hda
Setting xfermode to 66 (UltraDMA mode2, UltraDMA 66)

2) command: hdparm-d1X68-m16-c3-k1/dev/hda
Setting xfermode to 68 (UltraDMA mode4, UltraDMA 66)

3) command: hdparm-d1X69-m16-c3-k1/dev/hda
Setting xfermode to 69 (UltraDMA mode5, UltraDMA 100)

4) command: hdparm-d1375-m16-c3-k1/dev/hda
Setting xfermode to 70 (UltraDMA mode6 UltraDMA 133)

Such as my computer:
[Root @ l ~] # Uname-
Linux l. myhome 2.6.9 Thu Feb 8 00:18:10 CST 2007 i686 i686 i386 GNU/Linux

[Root @ l ~] # Hdparm-d1X69-m16-c3-k1/dev/hda

/Dev/hda:
Setting 32-bit IO_support flag to 3
Setting multcount to 16
Setting using_dma to 1 (on)
Setting keep_settings to 1 (on)
Setting xfermode to 69 (UltraDMA mode5)
Multcount = 16 (on)
IO_support = 3 (32-bit w/sync)
Using_dma = 1 (on)
Keepsettings = 1 (on)

[Root @ l ~] # Hdparm-I/dev/hda

/Dev/hda:

Model = Maxtor 5T030H3, FwRev = tastm1dp0, SerialNo = T3H2K61C
Config = {Fixed}
RawCHS = 16383/16/63, TrkSize = 0, SectSize = 0, ECCbytes = 57
BuffType = DualPortCache, BuffSize = 2048kB, MaxMultSect = 16, MultSect = 16
CurCHS = 16383/16/63, CurSects = 16514064, LBA = yes, LBAsects = 60030432
IORDY = on/off, tPIO = {min: 120, w/IORDY: 120}, tDMA = {min: 120, rec: 120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 udma2 udma3 udma4 * udma5 current hard drive mode, ATA 100
AdvancedPM = yes: disabled (255) WriteCache = enabled
Drive conforms to: ATA/ATAPI-6 T13 1410D revision 0:

* Signifies the current active mode

Both 1) and 2) can be placed in/etc/rc. the local file is automatically loaded at the end, but 3) and 4) It seems a problem to be put there. I have no other good method, so I have to let the system automatically load when it enters the desktop, create an automatic Startup File harddisk in the/usr/share/autostart folder. desktop, which contains the following content:
[Desktop Entry]
Comment [zh_CN] = hard drive Acceleration
Exec = hdparm-d1X69-m16-c3-k1/dev/hda
Icon = cache
Name = Autorun
Name [zh_CN] = hard drive Acceleration
Type = Application


As for the icon of this file, choose whatever you like.


Today, I tested the 2.6.20 kernel and found that the kernel automatically determines the drive mode. Some parameters of the hdparm command become invalid. Let's make a small improvement in the kernel.
[Root @ l ~] # Uname-
Linux l. myhome 2.6.20 Thu Feb 8 00:18:10 CST 2007 i686 i686 i386 GNU/Linux

[Root @ l ~] # Hdparm-d1X66-m16-c3-k1/dev/hda
Set the hard disk to work in DMA 66 Mode

/Dev/hda:
Setting 32-bit IO_support flag to 3
Setting multcount to 16
Setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted. Set the hard disk DMA working mode: The Operation is not allowed, and the command parameter is invalid.
Setting keep_settings to 1 (on)
Setting xfermode to 66 (UltraDMA mode2)
Multcount = 16 (on)
IO_support = 3 (32-bit w/sync)
Using_dma = 0 (off)
Keepsettings = 1 (on)
[Root @ l ~] # Hdparm-I/dev/hda

/Dev/hda:

Model = Maxtor 5T030H3, FwRev = tastm1dp0, SerialNo = T3H2K61C
Config = {Fixed}
RawCHS = 16383/16/63, TrkSize = 0, SectSize = 0, ECCbytes = 57
BuffType = DualPortCache, BuffSize = 2048kB, MaxMultSect = 16, MultSect = 16
CurCHS = 16383/16/63, CurSects = 16514064, LBA = yes, LBAsects = 60030432
IORDY = on/off, tPIO = {min: 120, w/IORDY: 120}, tDMA = {min: 120, rec: 120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 udma2 udma3 udma4 * udma5 still works in DMA100
AdvancedPM = yes: disabled (255) WriteCache = enabled
Drive conforms to: ATA/ATAPI-6 T13 1410D revision 0:

* Signifies the current active mode
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.