Results 1 to 6 of 6

Thread: DMA access for drive - HD Install

  1. #1
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Nova Scotia, Canada
    Posts
    2,479

    DMA access for drive - HD Install

    If DMA access to your disk was not enabled during install then you can edit the file /etc/init.d/bootmisc.sh and remove the # from the line for your drive near the bottom of the file. ie:
    Code:
    #  /sbin/hdparm -qd1 /dev/hda
    To have DMA enabled upon re-boot. If you wish to enable DMA before re-booting then use the command /sbin/hdparm -d1 /dev/hd? other usefull hdparm options:

    /sbin/hdparm /dev/hd? - Tells you the settings currently in use.
    /sbin/hdparm -i /dev/hd? - Gives you information on your drive.
    /sbin/hdparm -Tt /dev/hd? - Tests the speed of your drive.

    Replace the ? with your drive and all this as root in a console window.

  2. #2
    Senior Member registered user
    Join Date
    Jun 2003
    Posts
    101
    /etc/init.d/bootmisc.sh

    # enable DMA
    # /sbin/hdparm -qd1 /dev/hdg <--- Comment out this line!

    # Added by
    # This sets 32 bit I/O and DMA for Hard Drive.
    # sudo hdparm -i /dev/hdg

    hdparm -X69 -d1 -u1 -m16 -c3 /dev/hdg

    # Added by
    # This sets 32 bit I/O and DMA for CD-ROM Drive.
    # sudo hdparm -i /dev/hda

    hdparm -X34 -d1 -u1 -c3 /dev/hda

    # Added by
    # This sets 32 bit I/O and DMA for DVD-ROM Drive.
    # sudo hdparm -i /dev/hdc

    hdparm -X66 -d1 -u1 -c3 /dev/hdc

    NOTE:

    Use your /dev/ [Identifiers] Can be found in /etc/fstab !
    If your Windows HDD said /dev/hdg1 - use only hdg .

    X34 = (Multi-word DMA) 16.6 MB Sec.
    X66 = ATA33
    X68 = ATA66
    X69 = ATA100
    X100 = ATA133? Not sure about this one (Try it)

  3. #3
    Senior Member registered user
    Join Date
    Jun 2003
    Posts
    101
    UPDATE

    hdparm -X69 -d1 -u1 -m16 -c3 /dev/hdg

    -c3 = 32Bit-Sync

    -c1 = 32Bit

    -W0 = Disable the IDE drive's write-caching feature (usually OFF by default)

    -W1 = Enable the IDE drive's write-caching feature (usually OFF by default)

    Use -W0 or -W1 for HDD Only.

    EAMPLE: hdparm -X69 -W0 -d1 -u1 -m16 -c1 /dev/hdg

  4. #4
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    Long Island, NY, USA
    Posts
    1,256
    I just knoppix-installer as debian an old Gateway PC with a 10GB hdd.

    When it boots its very slow and there is a message about "warning, dma is turned off!" But when I check /etc/init.d/bootmisc.sh, the hdparm -qd1 /dev/hda line is not commented out.

    Now that I'm booted-up it doesn't seem slow, but boot-up is. hdparm /dev/hda returns using_dma=1(on) - is this odd?

    TIA,

  5. #5
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Nova Scotia, Canada
    Posts
    2,479
    Quote Originally Posted by A. Jorge Garcia
    I just knoppix-installer as debian an old Gateway PC with a 10GB hdd.

    When it boots its very slow and there is a message about "warning, dma is turned off!" But when I check /etc/init.d/bootmisc.sh, the hdparm -qd1 /dev/hda line is not commented out.

    Now that I'm booted-up it doesn't seem slow, but boot-up is. hdparm /dev/hda returns using_dma=1(on) - is this odd?

    TIA,
    That is perfectly normal the bootmisc.sh script is one of the last scripts run on boot. I did some checking on my system and there is a /etc/init.d/hdparm which calls the file /etc/default/hdparm there is an example for a /dev/hda at the bottom of the file commented out I commented out my lines in the bootmisc.sh. Then uncommented in the /etc/default/hdparm rebooted and it worked and entered my second drive into standby just like I had in the bootmisc.sh so you may want to give this file a try and see if it helps. What I changed for your reference:
    Code:
    ## Uncommented by me for dma on hda
    /dev/hda {
    #       mult_sect_io = 16
    #       write_cache = off
            dma = on
    }
    
    ## Added by me for my settings on hdb
    /dev/hdb {
            spindown_time = 12
            dma = on
    }
    Edit: Another damn typo.
    Edit2: The file for the settings (/etc/default/hdparm) has changed in the newer versions of hdparm to /etc/hdparm.conf.

  6. #6
    Member registered user
    Join Date
    Mar 2003
    Location
    Berlin, Germany
    Posts
    94
    Hi Jorge,

    did you enable DMA in your BIOS settings?

    Ciao Martin

Similar Threads

  1. Unable to access CD/DVD drive
    By StumpMan in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 05-15-2005, 03:03 AM
  2. Problems with hard drive access permissions
    By willkill69 in forum General Support
    Replies: 5
    Last Post: 09-21-2004, 10:05 PM
  3. Access usb flash drive
    By anhtran81 in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 01-18-2004, 12:22 PM
  4. Knoppix 3.1 from CD - trying to access USB2 hard drive
    By VWguyBruce in forum General Support
    Replies: 0
    Last Post: 10-13-2003, 07:42 AM
  5. hard-drive access troubles
    By Colonel Sanders in forum Hardware & Booting
    Replies: 2
    Last Post: 08-21-2003, 04:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


RAM128 (GW4208B) -- 128kB RAM for Apple II ][ -- Saturn 128 compatible picture

RAM128 (GW4208B) -- 128kB RAM for Apple II ][ -- Saturn 128 compatible

$30.00



A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G picture

A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G

$13.99



HyperX FURY RAM DDR4 16GB 8GB 32GB 4GB 3200 2666 2400 2133 Desktop Memory DIMM picture

HyperX FURY RAM DDR4 16GB 8GB 32GB 4GB 3200 2666 2400 2133 Desktop Memory DIMM

$9.64



Team T-FORCE VULCAN Z 16GB (2 x 8GB) 288-Pin PC RAM DDR4 3200 (PC4 25600) Intel picture

Team T-FORCE VULCAN Z 16GB (2 x 8GB) 288-Pin PC RAM DDR4 3200 (PC4 25600) Intel

$35.99



A-Tech 16GB 2 x 8GB PC3-12800 Laptop SODIMM DDR3 1600 Memory RAM PC3L 16G DDR3L picture

A-Tech 16GB 2 x 8GB PC3-12800 Laptop SODIMM DDR3 1600 Memory RAM PC3L 16G DDR3L

$27.98



HyperX FURY DDR4 4GB 8GB 16GB 32GB 3200 2400 2666 Desktop RAM Memory DIMM 288pin picture

HyperX FURY DDR4 4GB 8GB 16GB 32GB 3200 2400 2666 Desktop RAM Memory DIMM 288pin

$21.56



TEAMGROUP T-Force Vulcan Z DDR4 32GB Kit (2x16GB) 3200MHz (PC4-25600) CL16 RAM picture

TEAMGROUP T-Force Vulcan Z DDR4 32GB Kit (2x16GB) 3200MHz (PC4-25600) CL16 RAM

$54.99



Kingston HyperX FURY DDR3 8GB 16GB 32G 1600 1866 1333 Desktop Memory RAM DIMM picture

Kingston HyperX FURY DDR3 8GB 16GB 32G 1600 1866 1333 Desktop Memory RAM DIMM

$40.40



Corsair Vengeance 32GB 16GB 8GB DDR3 1600MHz 1866MHz 2133MHz 2400MHz Memory LOT picture

Corsair Vengeance 32GB 16GB 8GB DDR3 1600MHz 1866MHz 2133MHz 2400MHz Memory LOT

$79.99



A-Tech 256GB 8x 32GB 2Rx4 PC4-21300R DDR4 2666 ECC REG RDIMM Server Memory RAM picture

A-Tech 256GB 8x 32GB 2Rx4 PC4-21300R DDR4 2666 ECC REG RDIMM Server Memory RAM

$399.92