LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 03-08-2007, 03:55 AM   #1
props666999
Member
 
Registered: Oct 2003
Location: Greece
Posts: 260

Rep: Reputation: 30
hdparm risky parameters


Hi

I will stuck valuable data on a 200Gig hard disk and was wondering if
the following hdparm parameters stress my cdrom and hard drive
hdparm -X34 -d1 -u1 /dev/hda (hard disk)
hdparm -X34 -d1 -u1 /dev/hdb (cdrom)

i found those on the net

if it is safe, is there anything i could do to improve speed

using the above rules i can copy data from cdrom to hard disk
at 3.7MB/Sec.


it seems very slow to me


regards
 
Old 03-08-2007, 07:21 AM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,024
Blog Entries: 1

Rep: Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364
Quote:
Originally Posted by props666999
Hi

I will stuck valuable data on a 200Gig hard disk and was wondering if
the following hdparm parameters stress my cdrom and hard drive
hdparm -X34 -d1 -u1 /dev/hda (hard disk)
hdparm -X34 -d1 -u1 /dev/hdb (cdrom)

i found those on the net

if it is safe, is there anything i could do to improve speed

using the above rules i can copy data from cdrom to hard disk
at 3.7MB/Sec.


it seems very slow to me


regards
Hi,

You should first read the 'man hdparm' to get some reference. The use of arbitrary commands on a drive can cause major problems.

Next do a 'hdparm -I /dev/hda' to find out your known drive information. This information will assist you in determining what you should or can do.

A sample output;
Code:
# hdparm -I /dev/hda

/dev/hda:

ATA device, with non-removable media
        Model Number:       TOSHIBA MK4025GAS                       
        Serial Number:      X5EP9507S
        Firmware Revision:  KA100A  
Standards:
        Supported: 6 5 4 3 
        Likely used: 6
Configuration:
        Logical         max     current
        cylinders       16383   65535
        heads           16      1
        sectors/track   63      63
        --
        CHS current addressable sectors:    4128705
        LBA    user addressable sectors:   78140160
        device size with M = 1024*1024:       38154 MBytes
        device size with M = 1000*1000:       40007 MBytes (40 GB)
Capabilities:
        LBA, IORDY(can be disabled)
        bytes avail on r/w long: 48     Queue depth: 1
        Standby timer values: spec'd by Standard, no device specific minimum
        R/W multiple sector transfer: Max = 16  Current = 16
        Advanced power management level: unknown setting (0x0080)
        DMA: sdma0 sdma1 sdma2 mdma0 mdma1 mdma2 udma0 udma1 *udma2 udma3 udma4 udma5 
             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:
           *    NOP cmd
           *    READ BUFFER cmd
           *    WRITE BUFFER cmd
           *    Host Protected Area feature set
           *    Look-ahead
           *    Write cache
           *    Power Management feature set
                Security Mode feature set
                SMART feature set
           *    Mandatory FLUSH CACHE command 
           *    Device Configuration Overlay feature set 
                SET MAX security extension
           *    Advanced Power Management feature set
           *    SMART self-test 
           *    SMART error logging 
Security: 
        Master password revision code = 65534
                supported
        not     enabled
        not     locked
        not     frozen
        not     expired: security count
        not     supported: enhanced erase
        36min for SECURITY ERASE UNIT. 
HW reset results:
        CBLID- above Vih
        Device num = 0 determined by the jumper
Checksum: correct
 
Old 03-08-2007, 12:50 PM   #3
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
There's also this guide:

http://www.linuxdevcenter.com/pub/a/...29/hdparm.html

and yes, do read 'man hdparm', try to avoid options that say 'dangerous' or 'massive filesystem corrupiton', etc. unless you know very well what you are doing.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Making hdparm parameters permanent Sabinou Linux - Hardware 2 11-29-2006 08:07 AM
hdparm refdoc Ubuntu 5 09-08-2005 07:07 PM
add user to root group - risky? BroX Linux - Security 7 01-07-2005 11:10 AM
hdparm ash4stuff Linux - Hardware 4 08-14-2003 03:05 AM
hdparm -g NOT= hdparm -i ---LILO hangs @ L stevewalsh Linux - General 4 07-23-2001 09:37 PM


All times are GMT -5. The time now is 11:04 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration