Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 23350 - defaulting hdparm to set dma mode before filesystem check occurs
Summary: defaulting hdparm to set dma mode before filesystem check occurs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
: 27464 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-06-23 19:33 UTC by Will
Modified: 2003-09-04 18:10 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Will 2003-06-23 19:33:00 UTC
this is really just a minor thing, buy anyways...when my system boots up it
gives me warnings about "Your drives are not set to DMA mode this could really
slow down fsck." so i went about setting up hdparm and i have that working, but
the problem is the order in which the script is executed. it executes the
checkfs <-- (i ~think~ that's the name of the config file) before it executes my
hdparm configuration file. i have only had time to spend like half an hour on
this, but i think its pretty fixable. once i get KDE and stuff installed i'll
look at it a little more closely. but, if you guys no of a fix or if i'm doing
something just totally stupid (quite possible :) please lemme know. also if this
 could be default ordering for future gentoo installers i'm sure it would be a
nice little perk :). thanks for your time guys.

Reproducible: Always
Steps to Reproduce:
1.edit hdparm how i want it
2.do "rc-update add hdparm boot"
3.reboot and then watch the dma warnings abound :), and then hdparm sets the dma
just a few steps down the init script.

Actual Results:  
dma is mounted on system drives, but warnings occur every boot up because hdparm
doesn't turn dma on before the checkfs executes.

Expected Results:  
i would like it if hdparm was physically (code-block) ahead of checkfs in the
init script.

gentoo is awesome, please keep updates coming! :)
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-07-17 12:43:19 UTC
> dma is mounted on system drives, but warnings occur every boot up because hdparm
> doesn't turn dma on before the checkfs executes.

I think I do not read this properly, but I read:

  hdparm warns about dma that is not enabled because it is not run before
  the checkfs script.

Which is not true, as it stops whining if you edit its (hdparm) config file.

I am assuming you want to be able to run hdparm before checkfs, and that
the warning stuff do not really have anything to do with this ?
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2003-08-28 16:40:25 UTC
*** Bug 27464 has been marked as a duplicate of this bug. ***
Comment 3 Will 2003-08-29 12:28:18 UTC
actually sorry i forgot about this bug report, but i did find a fix. i set the kernel to enable DMA by default under whatever that menu name is (not at my gentoo box right now). but after i did that there was no need for hdparm anymore. thanks for the time, and i hope this helps others with the same problem.

-Will
Comment 4 Hinrik Örn Sigurðsson 2003-09-04 18:10:21 UTC
The thing is that even tough I turned on "Always use DMA if possible" (or similar), the dma still isn't enabled by default, which makes the hdparm script neccessary. But, the fielsystems are checked before the hdparm script is executed, so it slows down the boot process a bit.