FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 07-17-2008, 12:47 PM
 
Default DMA is turned off on my HDD

> In the beginning of July I reinstall my Debian system (lenny). At once I
> discover that loading cache in Aptitude (ncurses-UI mode) is very slow
> and in general my system is very slow.
>
> In several days I discovered that DMA is turned off on my HDD (fsck
> sayed it while Debian booting). Please, help me turn on DMA mode.
>
>
[snip]
> I had scanned my hdd with native WD scanner and hadn't detected any
> error. Memory scan (memtest86+) also hadn't detected any error.
> Moreover, Windows XP on another partition of this hdd working normally
> and HDD Health program on it (for S.M.A.R.T viewing) don't predict
> T.E.C. in the near future. Also after previous installation of Debian
> lenny my hdd was working fast.

Use hdparm command to see if the DMS is enabled, if not enable it with the -d flag. If that action makes your system "faster" configure /etc/hdparm.conf to
enable the DMA on boot.

Hope it helps,
Pavlos




--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 07-17-2008, 01:35 PM
Ron Johnson
 
Default DMA is turned off on my HDD

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/17/08 06:48, Anton Liaukevich wrote:
> In the beginning of July I reinstall my Debian system (lenny). At once I
> discover that loading cache in Aptitude (ncurses-UI mode) is very slow
> and in general my system is very slow.
>
> In several days I discovered that DMA is turned off on my HDD (fsck
> sayed it while Debian booting). Please, help me turn on DMA mode.
>
> My hardware:
> motherboard: Epox 8RDA3I rev 3.3 (nForce 2 Ultra)
> hdd: WD1200JB (ide, 120gb)
> cpu: Sempron 2200 (k7)
>
> My software:
> Debian lenny
> kernel: linux 2.6.24-1-686
> bootloader: grub 0.97-41
>
> My Linux partitions:
> hda3: / ReiserFS
> hda4: /usr/local/ Ext3
> hda7: swap
> hda8: /home/ EXt3
>
> I had scanned my hdd with native WD scanner and hadn't detected any
> error. Memory scan (memtest86+) also hadn't detected any error.
> Moreover, Windows XP on another partition of this hdd working normally
> and HDD Health program on it (for S.M.A.R.T viewing) don't predict
> T.E.C. in the near future. Also after previous installation of Debian
> lenny my hdd was working fast.

Soon after a reboot, search dmesg for all references to that WD
drive (probably "ata0"), and for hda. Maybe that will give you some
tips.

Also, maybe it's not using the correct chipset driver.

- --
Ron Johnson, Jr.
Jefferson LA USA

"Kittens give Morbo gas. In lighter news, the city of New New
York is doomed."
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkh/SpQACgkQS9HxQb37XmfAPwCeI9//ylOnvzZ2o2WTFgAnLjMf
XQgAoLimJz3MsXA95XRGZ5P6qbnGaUXm
=C5Kq
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 07-17-2008, 01:43 PM
Ron Johnson
 
Default DMA is turned off on my HDD

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/17/08 07:47, Pavlos Parissis wrote:
>> In the beginning of July I reinstall my Debian system (lenny). At once I
>> discover that loading cache in Aptitude (ncurses-UI mode) is very slow
>> and in general my system is very slow.
>>
>> In several days I discovered that DMA is turned off on my HDD (fsck
>> sayed it while Debian booting). Please, help me turn on DMA mode.
>>
>>
> [snip]
>> I had scanned my hdd with native WD scanner and hadn't detected any
>> error. Memory scan (memtest86+) also hadn't detected any error.
>> Moreover, Windows XP on another partition of this hdd working normally
>> and HDD Health program on it (for S.M.A.R.T viewing) don't predict
>> T.E.C. in the near future. Also after previous installation of Debian
>> lenny my hdd was working fast.
>
> Use hdparm command to see if the DMS is enabled, if not enable it
> with the -d flag. If that action makes your system "faster"
> configure /etc/hdparm.conf to enable the DMA on boot.

That should not be needed if the correct SATA driver is being loaded.

- --
Ron Johnson, Jr.
Jefferson LA USA

"Kittens give Morbo gas. In lighter news, the city of New New
York is doomed."
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkh/TIQACgkQS9HxQb37XmdHYwCghdprmwCnbzeWg/YwwxxJUhaF
uskAoIKp/HDAwqAHICt1ut8Nf2E1bUGn
=KTRK
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 07-17-2008, 01:45 PM
Ron Johnson
 
Default DMA is turned off on my HDD

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/17/08 08:35, Ron Johnson wrote:
> On 07/17/08 06:48, Anton Liaukevich wrote:
>> In the beginning of July I reinstall my Debian system (lenny). At once I
>> discover that loading cache in Aptitude (ncurses-UI mode) is very slow
>> and in general my system is very slow.
>
>> In several days I discovered that DMA is turned off on my HDD (fsck
>> sayed it while Debian booting). Please, help me turn on DMA mode.
>
>> My hardware:
>> motherboard: Epox 8RDA3I rev 3.3 (nForce 2 Ultra)
>> hdd: WD1200JB (ide, 120gb)
>> cpu: Sempron 2200 (k7)
[snip]
>
> Soon after a reboot, search dmesg for all references to that WD
> drive (probably "ata0"), and for hda. Maybe that will give you some
> tips.
>
> Also, maybe it's not using the correct chipset driver.

Scratch the chipset driver. It's the SATA driver. nForce2 is old
enough that it almost definitely needs sata_nv.

- --
Ron Johnson, Jr.
Jefferson LA USA

"Kittens give Morbo gas. In lighter news, the city of New New
York is doomed."
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkh/TQQACgkQS9HxQb37XmdXlQCgj7wc00HFX2eTmIxERtLtlieh
6zIAni91AA84r2NpkKkl2JfQafWiIF7q
=YmAf
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 07-17-2008, 02:05 PM
Bob Cox
 
Default DMA is turned off on my HDD

On Thu, Jul 17, 2008 at 08:45:41 -0500, Ron Johnson (ron.l.johnson@cox.net) wrote:

> > On 07/17/08 06:48, Anton Liaukevich wrote:

[snip]

> >> My hardware:
> >> motherboard: Epox 8RDA3I rev 3.3 (nForce 2 Ultra)
> >> hdd: WD1200JB (ide, 120gb)
> >> cpu: Sempron 2200 (k7)

> Scratch the chipset driver. It's the SATA driver. nForce2 is old
> enough that it almost definitely needs sata_nv.

Is that right Ron? The OP says it's IDE. I'm using a WD2000JB IDE here
and definitely no SATA drivers.

--
Bob Cox. Stoke Gifford, near Bristol, UK.
Registered user #445000 with the Linux Counter - http://counter.li.org/


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 07-17-2008, 02:15 PM
Ron Johnson
 
Default DMA is turned off on my HDD

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/17/08 09:05, Bob Cox wrote:
> On Thu, Jul 17, 2008 at 08:45:41 -0500, Ron Johnson (ron.l.johnson@cox.net) wrote:
>
>>> On 07/17/08 06:48, Anton Liaukevich wrote:
>
> [snip]
>
>>>> My hardware:
>>>> motherboard: Epox 8RDA3I rev 3.3 (nForce 2 Ultra)
>>>> hdd: WD1200JB (ide, 120gb)
>>>> cpu: Sempron 2200 (k7)
>
>> Scratch the chipset driver. It's the SATA driver. nForce2 is old
>> enough that it almost definitely needs sata_nv.
>
> Is that right Ron? The OP says it's IDE. I'm using a WD2000JB IDE here
> and definitely no SATA drivers.

Too true. Sorry.

Maybe IDE is behind a JMicron bridge? It needs it's own driver.

$ grep JMI /boot/config-2.6.24smp
CONFIG_BLK_DEV_JMICRON=y
CONFIG_PATA_JMICRON=y

- --
Ron Johnson, Jr.
Jefferson LA USA

"Kittens give Morbo gas. In lighter news, the city of New New
York is doomed."
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkh/U+4ACgkQS9HxQb37XmdwnQCgx+J9FjC6bF/Ll7Dg3FQwz2KU
cKoAoKIs1CzIpMrNDRz5w7v6Jy8WsGQk
=1907
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 07-17-2008, 02:20 PM
Anton Liaukevich
 
Default DMA is turned off on my HDD

Pavlos Parissis wrote:

In the beginning of July I reinstall my Debian system (lenny). At once I
discover that loading cache in Aptitude (ncurses-UI mode) is very slow
and in general my system is very slow.

In several days I discovered that DMA is turned off on my HDD (fsck
sayed it while Debian booting). Please, help me turn on DMA mode.



[snip]

I had scanned my hdd with native WD scanner and hadn't detected any
error. Memory scan (memtest86+) also hadn't detected any error.
Moreover, Windows XP on another partition of this hdd working normally
and HDD Health program on it (for S.M.A.R.T viewing) don't predict
T.E.C. in the near future. Also after previous installation of Debian
lenny my hdd was working fast.


Use hdparm command to see if the DMS is enabled, if not enable it with the -d flag. If that action makes your system "faster" configure /etc/hdparm.conf to
enable the DMA on boot.


Hope it helps,
Pavlos







I have tried using "hdparm" (under root) command but it don't help.

command "hdparm -d /dev/hda" outputs:
/dev/hda:
using_dma = 0 (off)

command "hdparm -d 1 /dev/hda" outputs:
/dev/hda:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
using_dma = 0 (off)




--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 07-17-2008, 02:32 PM
 
Default DMA is turned off on my HDD

> Pavlos Parissis wrote:
> >> In the beginning of July I reinstall my Debian system (lenny). At once I
> >> discover that loading cache in Aptitude (ncurses-UI mode) is very slow
> >> and in general my system is very slow.
> >>
> >> In several days I discovered that DMA is turned off on my HDD (fsck
> >> sayed it while Debian booting). Please, help me turn on DMA mode.
> >>
> >>
> > [snip]
> >> I had scanned my hdd with native WD scanner and hadn't detected any
> >> error. Memory scan (memtest86+) also hadn't detected any error.
> >> Moreover, Windows XP on another partition of this hdd working normally
> >> and HDD Health program on it (for S.M.A.R.T viewing) don't predict
> >> T.E.C. in the near future. Also after previous installation of Debian
> >> lenny my hdd was working fast.
> >
> > Use hdparm command to see if the DMS is enabled, if not enable it with the -d flag. If that action makes your system "faster" configure /etc/hdparm.conf to
> > enable the DMA on boot.
> >
> > Hope it helps,
> > Pavlos
> >
> >
> >
> >
>
> I have tried using "hdparm" (under root) command but it don't help.
>
> command "hdparm -d /dev/hda" outputs:
> /dev/hda:
> using_dma = 0 (off)
>
> command "hdparm -d 1 /dev/hda" outputs:
> /dev/hda:
> setting using_dma to 1 (on)
> HDIO_SET_DMA failed: Operation not permitted
> using_dma = 0 (off)
>
>

As Ron has written you may face a problem with the driver which is being used
by the kernel for managing this disk.
Try the following to see which driver is being used.

readlink /sys/block/hda/device/driver


Cheers,
Pavlos




--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 07-17-2008, 02:57 PM
Anton Liaukevich
 
Default DMA is turned off on my HDD

Ron Johnson wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/17/08 09:05, Bob Cox wrote:
On Thu, Jul 17, 2008 at 08:45:41 -0500, Ron Johnson (ron.l.johnson@cox.net) wrote:


On 07/17/08 06:48, Anton Liaukevich wrote:

[snip]


My hardware:
motherboard: Epox 8RDA3I rev 3.3 (nForce 2 Ultra)
hdd: WD1200JB (ide, 120gb)
cpu: Sempron 2200 (k7)

Scratch the chipset driver. It's the SATA driver. nForce2 is old
enough that it almost definitely needs sata_nv.

Is that right Ron? The OP says it's IDE. I'm using a WD2000JB IDE here
and definitely no SATA drivers.


Too true. Sorry.

Maybe IDE is behind a JMicron bridge? It needs it's own driver.

$ grep JMI /boot/config-2.6.24smp
CONFIG_BLK_DEV_JMICRON=y
CONFIG_PATA_JMICRON=y

- --
Ron Johnson, Jr.
Jefferson LA USA

"Kittens give Morbo gas. In lighter news, the city of New New
York is doomed."
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkh/U+4ACgkQS9HxQb37XmdwnQCgx+J9FjC6bF/Ll7Dg3FQwz2KU
cKoAoKIs1CzIpMrNDRz5w7v6Jy8WsGQk
=1907
-----END PGP SIGNATURE-----



I tried "grep JMI /boot/config-2.6.24-1-686" under root and it had outputed:

CONFIG_BLK_DEV_JMICRON=m
# CONFIG_PATA_JMICRON is not set


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 07-17-2008, 03:14 PM
Anton Liaukevich
 
Default DMA is turned off on my HDD

Pavlos Parissis wrote:

Pavlos Parissis wrote:

In the beginning of July I reinstall my Debian system (lenny). At once I
discover that loading cache in Aptitude (ncurses-UI mode) is very slow
and in general my system is very slow.

In several days I discovered that DMA is turned off on my HDD (fsck
sayed it while Debian booting). Please, help me turn on DMA mode.



[snip]

I had scanned my hdd with native WD scanner and hadn't detected any
error. Memory scan (memtest86+) also hadn't detected any error.
Moreover, Windows XP on another partition of this hdd working normally
and HDD Health program on it (for S.M.A.R.T viewing) don't predict
T.E.C. in the near future. Also after previous installation of Debian
lenny my hdd was working fast.

Use hdparm command to see if the DMS is enabled, if not enable it with the -d flag. If that action makes your system "faster" configure /etc/hdparm.conf to
enable the DMA on boot.

Hope it helps,
Pavlos





I have tried using "hdparm" (under root) command but it don't help.

command "hdparm -d /dev/hda" outputs:
/dev/hda:
using_dma = 0 (off)

command "hdparm -d 1 /dev/hda" outputs:
/dev/hda:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
using_dma = 0 (off)




As Ron has written you may face a problem with the driver which is being used
by the kernel for managing this disk.
Try the following to see which driver is being used.

readlink /sys/block/hda/device/driver


Cheers,
Pavlos






"readlink /sys/block/hda/device/driver" outputs:
../../../bus/ide/drivers/ide-disk


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 12:54 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org