LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-17-2007, 08:26 AM   #1
rohanak
Member
 
Registered: Aug 2007
Posts: 38

Rep: Reputation: 15
setting UDMA-6 with hdparm


Hello,
I have a 160GB SATA hard disk for which I have enabled UDMA-6 in my motherboard as the motherboard does not have native SATA support.
the hdparm -I /dev/sda shows that UDMA-6 exists but it sets the device to UDMA-5.I have included the output of hdparm command below---
hdparm -I /dev/sda

/dev/sda:

ATA device, with non-removable media
Model Number: ST3160211AS
Serial Number: 5PT0G98G
Firmware Revision: 3.AAE
Standards:
Supported: 7 6 5 4
Likely used: 7
Configuration:
Logical max current
cylinders 16383 16383
heads 16 16
sectors/track 63 63
--
CHS current addressable sectors: 16514064
LBA user addressable sectors: 268435455
LBA48 user addressable sectors: 312581808
device size with M = 1024*1024: 152627 MBytes
device size with M = 1000*1000: 160041 MBytes (160 GB)
Capabilities:
LBA, IORDY(can be disabled)
Queue depth: 32
Standby timer values: spec'd by Standard, no device specific minimum
R/W multiple sector transfer: Max = 16 Current = 16
Recommended acoustic management value: 208, current value: 0
DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 *udma5 udma6
Cycle time: min=120ns recommended=120ns
PIO: pio0 pio1 pio2 pio3 pio4
Cycle time: no flow control=120ns IORDY flow control=120ns
Commands/features:
Enabled Supported:
* SMART feature set
Security Mode feature set
* Power Management feature set
* Write cache
* Look-ahead
* Host Protected Area feature set
* WRITE_BUFFER command
* READ_BUFFER command
* DOWNLOAD_MICROCODE
SET_MAX security extension
* 48-bit Address feature set
* Device Configuration Overlay feature set
* Mandatory FLUSH_CACHE
* FLUSH_CACHE_EXT
* SMART error logging
* SMART self-test
* General Purpose Logging feature set
* SATA-I signaling speed (1.5Gb/s)
* Native Command Queueing (NCQ)
* Phy event counters
Device-initiated interface power management
* Software settings preservation
Security:
Master password revision code = 65534
supported
not enabled
not locked
not frozen
not expired: security count
not supported: enhanced erase
Checksum: correct

The command hdparm -X70 /dev/sda gives an error.How do I set my hard disk to UDMA-6.
 
Old 09-17-2007, 08:51 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
DMA does not need to be set with SATA drives, see; http://www.linuxquestions.org/questi...d.php?t=458088
 
Old 09-17-2007, 12:46 PM   #3
rohanak
Member
 
Registered: Aug 2007
Posts: 38

Original Poster
Rep: Reputation: 15
but then why does hdparm show the mode as UDMA-5 and how do I ensure that i get maximum data transfer speed from my hard disk.
 
Old 09-17-2007, 01:04 PM   #4
rohanak
Member
 
Registered: Aug 2007
Posts: 38

Original Poster
Rep: Reputation: 15
why does hdparm show the mode as UDMA-5 and how do I ensure that i get maximum data transfer speed from my hard disk.
the command hdparm -tT /dev/sda gives these results------->

hdparm -tT /dev/sda

/dev/sda:
Timing cached reads: 958 MB in 2.00 seconds = 479.06 MB/sec
Timing buffered disk reads: 200 MB in 3.00 seconds = 66.64 MB/sec

are these values optimal for a SATA hard disk??
 
Old 09-18-2007, 05:32 AM   #5
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Your timings look good, the values depend on the system specs. The motherboard/system specs and hard drive specs influence the overall timings. For comparison reasons only the output from my laptop;

Code:
$ sudo hdparm -tT /dev/sda

/dev/sda:
 Timing cached reads:   1416 MB in  2.00 seconds = 708.41 MB/sec
 Timing buffered disk reads:  106 MB in  3.03 seconds =  34.99 MB/sec
$ sudo hdparm -I /dev/sda

/dev/sda:

ATA device, with non-removable media
        Model Number:       ST98823AS
        Serial Number:      5PK3ZEP5
        Firmware Revision:  3.06
Standards:
        Supported: 7 6 5 4
        Likely used: 7
Configuration:
        Logical         max     current
        cylinders       16383   16383
        heads           16      16
        sectors/track   63      63
        --
        CHS current addressable sectors:   16514064
        LBA    user addressable sectors:  156301488
        LBA48  user addressable sectors:  156301488
        device size with M = 1024*1024:       76319 MBytes
        device size with M = 1000*1000:       80026 MBytes (80 GB)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting DMA with hdparm narc Linux - Hardware 2 06-15-2006 09:06 AM
HDD setting with hdparm powadha Debian 1 04-20-2006 03:40 PM
Strange UDMA setting problem | hdparm Cockton Linux - Hardware 5 12-01-2004 03:53 PM
hard drive setting UDMA PIO etc cevjr Linux - Hardware 3 07-30-2003 05:39 PM
hdparm write caching setting nouse66 Linux - Hardware 3 03-10-2003 10:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration