Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/etc/init.d/hdparm does nothing.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
lk_0
n00b
n00b


Joined: 08 Nov 2003
Posts: 6

PostPosted: Sun Nov 09, 2003 6:19 pm    Post subject: /etc/init.d/hdparm does nothing. Reply with quote

Hi! I have edited /etc/conf.d/hdparm and added to disc0_args some arugments.

Now if I execute /etc/init.d/hdparm it does nothing. On the contrary, if I run hdparm manualy with all parametrs it works.

Can you help me? 10x.
Back to top
View user's profile Send private message
fifo
Guru
Guru


Joined: 14 Jan 2003
Posts: 437

PostPosted: Mon Nov 10, 2003 3:14 pm    Post subject: Reply with quote

Are you doing
Code:
# /etc/init.d/hdparm start
?
To have it run automatically at each boot:
Code:
# rc-update add hdparm default
.
Back to top
View user's profile Send private message
lk_0
n00b
n00b


Joined: 08 Nov 2003
Posts: 6

PostPosted: Mon Nov 10, 2003 3:31 pm    Post subject: Reply with quote

fifo wrote:
Are you doing
Code:
# /etc/init.d/hdparm start
?
To have it run automatically at each boot:
Code:
# rc-update add hdparm default
.


yes. if I just run /etc/init.d/hdpram it responds with ok.

but if I run after that hdparm /dev/hda I see that it didn't change any option. this is a problem.
Back to top
View user's profile Send private message
breakerfall
Guru
Guru


Joined: 02 Aug 2003
Posts: 509
Location: Manchester, UK

PostPosted: Mon Nov 10, 2003 3:40 pm    Post subject: Reply with quote

I'm seeing this too. If I do hparm -X70 -c3 -m16 /dev/hdb it work... but then I lose at reboot. When I add these lines to /etc/conf.d/hdparm and reboot they don't stick. And I added /etc/init.d/hdparm by doing rc-update add hdparm default.

This is weird
Back to top
View user's profile Send private message
fifo
Guru
Guru


Joined: 14 Jan 2003
Posts: 437

PostPosted: Mon Nov 10, 2003 3:56 pm    Post subject: Reply with quote

Strange, don't know what the problem is. How about showing us exactly the contents of your /etc/conf.d/hdparm & /etc/init.d/hdparm.
Back to top
View user's profile Send private message
lk_0
n00b
n00b


Joined: 08 Nov 2003
Posts: 6

PostPosted: Mon Nov 10, 2003 4:21 pm    Post subject: Reply with quote

fifo wrote:
Strange, don't know what the problem is. How about showing us exactly the contents of your /etc/conf.d/hdparm & /etc/init.d/hdparm.


This hdparms output after I boot my system.

# hdparm /dev/hda
/dev/hda:
multcount = 16 (on)
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 8 (on)
geometry = 9729/255/63, sectors = 156301488, start = 0


Now I run /etc/init.d/hdparm

# /etc/init.d/hdparm start
Starting hdparm...
Running hdparm on disc0...
Running hdparm on cdrom0.

If after I ran /etc/init.d/hdparm I run "hdparm /dev/hda" I see that
nothing has changed.

# hdparm /dev/hda
/dev/hda:
multcount = 16 (on)
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 8 (on)
geometry = 9729/255/63, sectors = 156301488, start = 0

but if I run It manulay:

# hdparm -qX70 -qu1 -qc3 -qm16 -qA1 -qk1 /dev/hda

setting using_dma to 1 (on)
using_dma = 1 (on)

/dev/hda:
multcount = 16 (on)
IO_support = 3 (32-bit w/sync)
unmaskirq = 1 (on)
using_dma = 1 (on)
keepsettings = 1 (on)
readonly = 0 (off)
readahead = 8 (on)
geometry = 9729/255/63, sectors = 156301488, start = 0


this is mine /etc/conf.d/hdparm

# Copyright 2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /home/cvsroot/gentoo-x86/sys-apps/hdparm/files/hdparm-conf.d,v 1.1 2003/03/01 21:17:39 sethbc Exp $

# You can either set hdparm arguments for each drive using disc*_args and cdrom*_args..
# eg.
# disc0_args="-d1 -X66"
# disc1_args"-d1"
# cdrom0_args="-d1"

disc0_args="-qX70 -qu1 -qc3 -qm16 -qA1 -qk1"

# Or, you can set hdparm options for ALL drives using all_args..
# eg.
# this mimics the behavior of the current script
all_args="-d1"

10x
Back to top
View user's profile Send private message
fifo
Guru
Guru


Joined: 14 Jan 2003
Posts: 437

PostPosted: Mon Nov 10, 2003 7:09 pm    Post subject: Reply with quote

Well all looks ok to me, don't know why it fails. Does it make any difference if you use /dev/discs/disc0/disc instead of /dev/hda in your manual hdparm commands?
Back to top
View user's profile Send private message
mike4148
l33t
l33t


Joined: 09 Sep 2003
Posts: 641

PostPosted: Tue Nov 11, 2003 12:55 am    Post subject: Reply with quote

The q's are pointless; /etc/init.d/hdparm just sends the output of hdparm to /dev/null,
so you wouldn't see anything, anyway.

Who knows; maybe that will help....
Back to top
View user's profile Send private message
lk_0
n00b
n00b


Joined: 08 Nov 2003
Posts: 6

PostPosted: Tue Nov 11, 2003 11:08 am    Post subject: Reply with quote

fifo wrote:
Well all looks ok to me, don't know why it fails. Does it make any difference if you use /dev/discs/disc0/disc instead of /dev/hda in your manual hdparm commands?


if run hdparm -qX70 -qu1 -qc3 -qm16 -qA1 -qk1 /dev/discs/disc0/disc

it is the same as when I run dparm -qX70 -qu1 -qc3 -qm16 -qA1 -qk1 /dev/hda1
Back to top
View user's profile Send private message
lk_0
n00b
n00b


Joined: 08 Nov 2003
Posts: 6

PostPosted: Tue Nov 11, 2003 11:09 am    Post subject: Reply with quote

mike4148 wrote:
The q's are pointless; /etc/init.d/hdparm just sends the output of hdparm to /dev/null,
so you wouldn't see anything, anyway.

Who knows; maybe that will help....


I tried without q-s. same result.
Back to top
View user's profile Send private message
northern
Tux's lil' helper
Tux's lil' helper


Joined: 09 Nov 2003
Posts: 130
Location: Stoke on Trent, UK

PostPosted: Tue Nov 11, 2003 8:37 pm    Post subject: Reply with quote

Im not sure on this one, but i would comment out the all_args line, and put the "-d1" in the disc0_args line your drive, cos I think that you can use either the arg list for each drive OR the all_args line as it says, so as you've got it set up at the moment all that hdparm will do is set dma as thats the last line in your hdparm conf file.

Just have this line in /etc/conf.d/hdparm
disc0_args="-qX70 -qu1 -qc3 -qm16 -qA1 -qk1 -d1"

May be wrong but I'd give it a shot.

hth
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum