LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 12-23-2005, 07:49 PM   #1
trainee
Member
 
Registered: Dec 2004
Distribution: Slackware
Posts: 142

Rep: Reputation: 16
"DMA on your hard drive was turned off" what is it?


I compiled the kernel on my laptop using the 2.6.14 kernel.
Right now, whenever I boot my laptop, I receive a message

*******************************************************
* Warning: The dma on your hard drive was turned off. *
* This may really slow down the fsck process. *
*******************************************************

So, what is the dma? And how to turn it on.
Besides, I also noticed that my laptop take longer when it run the command to update the shared library link
(It stopped longer at the line
Updating shared library links: /sbin/ldconfig
)
 
Old 12-23-2005, 08:00 PM   #2
Furlinastis
Member
 
Registered: Dec 2004
Location: Ball of Confusion
Distribution: Artix,Arch,Slackware,Bluewhite64
Posts: 261

Rep: Reputation: 40
DMA = direct memory access as oppose to the older PIO = programmed input output. It means it accesses the memory directly instead of going through the CPU.

sorry, I only know how to enable it in windows so that isn't much help here. I would look through make menuconfig and see what you can find, although I'm pretty sure someone else could probably give you a better answer.
 
Old 12-23-2005, 08:03 PM   #3
BrianW
Member
 
Registered: Jul 2003
Location: Montana
Posts: 297

Rep: Reputation: Disabled
You can try hdparm -d 1 /dev/hda1 or whatever your disk drive is.
The other thing I can think of since its a new kernel compile, you forgot to enable DMA in the kernel.
In Device Drivers there is an ATA/ATAPI support (something to that effect) where you can find some generic DMA support options, maybe you forgot to enable these?

There probably is more to it that I can't think of off the top of my head. I'm sure someone will pop by that can help you out more.
 
Old 12-23-2005, 08:09 PM   #4
trainee
Member
 
Registered: Dec 2004
Distribution: Slackware
Posts: 142

Original Poster
Rep: Reputation: 16
Thanks Brian and Furlinastis.
I have some issue with my sound so I am going to build the kernel once again.
Besides, about the command you said, was it /dev/hda or /dev/hda1
 
Old 12-23-2005, 09:22 PM   #5
BrianW
Member
 
Registered: Jul 2003
Location: Montana
Posts: 297

Rep: Reputation: Disabled
Its the specific partition device name. /dev/hda1 or /dev/sda1 or /dev/hda2 etc... Whatever your partition that linux is on is named.
 
Old 12-23-2005, 10:07 PM   #6
dmartins
Member
 
Registered: Oct 2005
Location: Ontario, Canada
Distribution: Arch, Gentoo
Posts: 98

Rep: Reputation: 15
Quote:
Originally Posted by BrianW
Its the specific partition device name. /dev/hda1 or /dev/sda1 or /dev/hda2 etc... Whatever your partition that linux is on is named.
I just set this up today and used /dev/hda and /dev/hdc. I don't think you can make changes to the way the drive accesses certain partitions.

Device Drivers ---> ATA/ATAPI/MFM/RLL support --->

Enable PCI IDE chipset support and Generic PCI bus-master DMA support

this will provide a big list of drivers, choose the one for your motherboard chipset. You can find more info about your chipset with the command 'lspci'

Check out http://axljab.homelinux.org/Hdparm. It's written for gentoo but all that would change is how to install hdparm and possibly the location of the hdparm file in /etc to load the configuration on boot.

Hope this helps
 
Old 12-27-2005, 09:46 AM   #7
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
Is this by any chance a relatively new Dell laptop? If so, it has a SATA controller and your machine will run like a three legged dog with a busted tail with the 2.4.x kernel. With the 2.4.x kernel you're emulating IDE on SATA and that's why the messages and why it's so bloody slow.

You might try the sata.i kernel, which is 2.4.x, on the distribution CD-ROM (in which case your disk drive will be sdaN, not hdN). I've had great luck with the 2.6.13 kernel, however, and I'd suggest that you try that (it's test26.s on the distribution CD-ROM) -- there's much, much better support of laptop stuff in 2.6.x than there is in any 2.4.x. If you haven't got too much invested with 2.4.x, try installing with test26.s and see what happens. If you do that, after it starts for the first time, you'll need to insert the disk with extra (or test, I'm sorry I don't have them in front of me), get into the linux-2.6.13 directory and "upgradepkg *.tgz"). That will upgrade all of the 2.4.x that was installed (whether you use the test26.s installation or not) and replace the source, headers, modules and all that. Reboot after doing that and you'll be pleasantly surprised.
 
Old 12-27-2005, 11:27 AM   #8
trainee
Member
 
Registered: Dec 2004
Distribution: Slackware
Posts: 142

Original Poster
Rep: Reputation: 16
It's not a Dell computers. I built the kernel again, this time made sure that I check the
Device Drivers ---> ATA/ATAPI/MFM/RLL support --->

Enable PCI IDE chipset support and Generic PCI bus-master DMA support

And that error did not show up again.
 
Old 12-27-2005, 03:10 PM   #9
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
Glad you got it. If the machine seems to perform poorly -- meaning slow -- try the 2.6.13 kernel and see that improves things. Laptops (of whatever ilk) appear to work better with 2.6.x than they do with 2.4.x.

Best wishes for the new year.
 
Old 12-27-2005, 03:17 PM   #10
trainee
Member
 
Registered: Dec 2004
Distribution: Slackware
Posts: 142

Original Poster
Rep: Reputation: 16
Do you mean that the kernel 2.6.13 was known to perform better than the newer kernel?
Besides since I am thinking of installing Slackware 10.2 on a 64 bit laptop, then build a new 2.6 kernel, is there anything that I should pay attention, to avoid running into trouble. (I mean I don't want to end up with a 64 bit kernel after I build the kernel)
 
Old 12-27-2005, 04:03 PM   #11
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
I meant that the 2.6.x kernel appears to perform better on a laptop than the 2.4.x kernel (newer or not). In my experience (a Dell Inspiron 6000), it does and others (people I work with and some folk using Dells and Gateways and a couple of I-don't-know-whats) have reported the same thing. The suggestion is to install Slackware 10.2 using the test26.s kernel on the CD-ROM, then, because the modules are not installed with the test26.s kernel (get it? test26?), you have to boot once, mount the Disk 2 CD-ROM and upgradepkg everything in the linux-2.6.13 directory on that disk; that will be
/mnt/cdrom/linux-2.6.13/alsa-driver-1.0.9b_2.6.13-i486-1.tgz
/mnt/cdrom/linux-2.6.13/kernel-generic-2.6.13-i486-1.tgz
/mnt/cdrom/linux-2.6.13/kernel-headers-2.6.13-i386-1.tgz
/mnt/cdrom/linux-2.6.13/kernel-modules-2.6.13-i486-1.tgz
/mnt/cdrom/linux-2.6.13/kernel-source-2.6.13-noarch-1.tgz
or simply "upgradepkg /mnt/cdrom/linux-2.6.13/*.tgz" and reboot.

You can, of course, get the latest 2.6.x kernel and build it after installing 2.6.13 (or, what the heck, after installing 2.4.x for that matter). Up to you.
 
Old 12-27-2005, 04:07 PM   #12
trainee
Member
 
Registered: Dec 2004
Distribution: Slackware
Posts: 142

Original Poster
Rep: Reputation: 16
Thanks. That sounds good. Best wishes for the new year. (Hopefully, I won't have to bother you before new year come)
 
Old 12-27-2005, 04:17 PM   #13
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
No problem; hope it all works out the way you want.
 
  


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
Onkyo MB-S1 "Digital Music Libary" CD Player (Hard Drive Format?) bpk Linux - Hardware 3 08-12-2006 12:33 AM
error partioning hard drive "Windows did not shut down completely" emissary Linux - Laptop and Netbook 3 12-25-2005 01:43 PM
mandriva 10.1 install stops at "hard drive detection" Devoid_Janitor Mandriva 0 08-08-2005 11:30 AM
Mandrake 10.1 - Linux doesn't "see" free hard drive space scottlyter Linux - General 3 10-15-2004 04:39 PM
Not able for activate 'dma' or 'hdparm -d1..." tom2 Linux - Hardware 0 03-10-2003 05:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:41 PM.

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