Gentoo Archives: gentoo-user

From: Daniel Pielmeier <daniel.pielmeier@××××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: hdparm and baselayout
Date: Fri, 18 Aug 2006 20:15:30
Message-Id: 44E61ED2.60905@googlemail.com
In Reply to: Re: [gentoo-user] Re: hdparm and baselayout by Richard Fish
1 Richard Fish schrieb:
2 > On 8/18/06, Daniel Pielmeier <daniel.pielmeier@××××××××××.com> wrote:
3 >> so when my settings are correct, why doesn't the hdparm init-script
4 >> apply this settings to my dvd-rom devices /dev/hdc and /dev/hdd
5 >
6 > Try adding "set -x" at the top of the hdparm init script, and then
7 > 'stop' and 'start' it. The trace output from the 'start' may be
8 > interesting to look at.
9 >
10 > -Richard
11
12 Here is the output of /etc/init.d/hdparm start:
13
14 For /dev/hdc and /dev/hdd it says that there is no medium present, but
15 is this required for running hdparm on this devices?
16
17
18 /etc/init.d/hdparm start
19
20
21 + [[ -z start stop restart ]]
22 + shift
23 + [[ 1 -lt 1 ]]
24 + for arg in '$*'
25 + case "${arg}" in
26 + retval=0
27 + for arg in '$*'
28 + case "${arg}" in
29 + svc_start
30 + local x= y= retval=0 startinactive=
31 + is_runlevel_start
32 + [[ -d /var/lib/init.d/softscripts.old ]]
33 + service_started hdparm
34 + test_service_state hdparm started
35 + [[ -z hdparm ]]
36 + [[ -z started ]]
37 + local f=/var/lib/init.d/started/hdparm
38 + [[ -L /var/lib/init.d/started/hdparm ]]
39 + [[ ! -e /var/lib/init.d/started/hdparm ]]
40 + rm -f /var/lib/init.d/started/hdparm
41 + return 1
42 + service_inactive hdparm
43 + test_service_state hdparm inactive
44 + [[ -z hdparm ]]
45 + [[ -z inactive ]]
46 + local f=/var/lib/init.d/inactive/hdparm
47 + [[ -L /var/lib/init.d/inactive/hdparm ]]
48 + [[ ! -e /var/lib/init.d/inactive/hdparm ]]
49 + rm -f /var/lib/init.d/inactive/hdparm
50 + return 1
51 + mark_service_starting hdparm
52 + [[ -z hdparm ]]
53 + ln -sn /etc/init.d/hdparm /var/lib/init.d/starting/hdparm
54 + [[ -f /var/lib/init.d/started/hdparm ]]
55 + [[ -f /var/lib/init.d/inactive/hdparm ]]
56 + return 0
57 + trap svc_quit INT QUIT TSTP
58 + service_message 'Service hdparm starting'
59 + [[ no != \y\e\s ]]
60 + return
61 + broken hdparm
62 + check_dependency broken hdparm
63 + [[ -z broken ]]
64 + [[ -z hdparm ]]
65 + local x myservice deps
66 + [[ hdparm == \-\t ]]
67 + myservice=hdparm
68 + get_dep_info hdparm
69 + [[ -z hdparm ]]
70 + local myservice=hdparm
71 + [[ hdparm == '' ]]
72 ++ get_service_index hdparm 0
73 ++ [[ -z hdparm ]]
74 ++ [[ -z 0 ]]
75 ++ local x myservice=hdparm index=0
76 ++ [[ -n 0 ]]
77 ++ [[ 0 -gt 0 ]]
78 ++ (( x=1 ))
79 ++ (( x<=49 ))
80 ++ index=10
81 ++ [[ hdparm == \d\b\u\s ]]
82 ++ (( x++ ))
83 ++ (( x<=49 ))
84 ++ index=20
85 ++ [[ hdparm == \e\s\o\u\n\d ]]
86 ++ (( x++ ))
87 ++ (( x<=49 ))
88 ++ index=30
89 ++ [[ hdparm == \f\i\r\e\s\t\a\r\t\e\r ]]
90 ++ (( x++ ))
91 ++ (( x<=49 ))
92 ++ index=40
93 ++ [[ hdparm == \g\p\m ]]
94 ++ (( x++ ))
95 ++ (( x<=49 ))
96 ++ index=50
97 ++ [[ hdparm == \h\a\l\d ]]
98 ++ (( x++ ))
99 ++ (( x<=49 ))
100 ++ index=60
101 ++ [[ hdparm == \n\e\t\.\e\t\h\0 ]]
102 ++ (( x++ ))
103 ++ (( x<=49 ))
104 ++ index=70
105 ++ [[ hdparm == \n\e\t\.\l\o ]]
106 ++ (( x++ ))
107 ++ (( x<=49 ))
108 ++ index=80
109 ++ [[ hdparm == \h\d\p\a\r\m ]]
110 ++ echo 80
111 ++ return 0
112 + rc_index=80
113 + rc_mtime=1155931102
114 + rc_name=hdparm
115 + rc_ineed=
116 + rc_needsme=
117 + rc_iuse=
118 + rc_usesme=
119 + rc_ibefore='bootmisc local'
120 + rc_iafter=checkroot
121 + rc_broken=
122 + rc_mtime=1155931102
123 + return 0
124 + deps=rc_broken
125 + [[ -z '' ]]
126 + return 1
127 + local ib_save=
128 + unset IN_BACKGROUND
129 + [[ 0 == \0 ]]
130 + [[ '' != \y\e\s ]]
131 ++ ineed hdparm
132 ++ check_dependency ineed hdparm
133 ++ [[ -z ineed ]]
134 ++ [[ -z hdparm ]]
135 ++ local x myservice deps
136 ++ [[ hdparm == \-\t ]]
137 ++ myservice=hdparm
138 ++ get_dep_info hdparm
139 ++ [[ -z hdparm ]]
140 ++ local myservice=hdparm
141 ++ [[ hdparm == \h\d\p\a\r\m ]]
142 ++ [[ -n 1155931102 ]]
143 ++ return 0
144 ++ deps=rc_ineed
145 ++ [[ -z '' ]]
146 ++ return 1
147 ++ valid_iuse hdparm
148 ++ valid_i use hdparm
149 ++ local mylevel=boot x= valid=
150 ++ [[ use != \a\f\t\e\r ]]
151 ++ [[ use != \u\s\e ]]
152 ++ [[ -f /var/lib/init.d/softlevel ]]
153 ++ mylevel=default
154 +++ iuse hdparm
155 +++ check_dependency iuse hdparm
156 +++ [[ -z iuse ]]
157 +++ [[ -z hdparm ]]
158 +++ local x myservice deps
159 +++ [[ hdparm == \-\t ]]
160 +++ myservice=hdparm
161 +++ get_dep_info hdparm
162 +++ [[ -z hdparm ]]
163 +++ local myservice=hdparm
164 +++ [[ hdparm == \h\d\p\a\r\m ]]
165 +++ [[ -n 1155931102 ]]
166 +++ return 0
167 +++ deps=rc_iuse
168 +++ [[ -z '' ]]
169 +++ return 1
170 ++ echo ''
171 ++ return 0
172 + local 'startupservices= '
173 + local netservices=
174 ++ dolisting '/etc/runlevels/boot/net.*'
175 ++ local x=
176 ++ local y=
177 ++ local tmpstr=
178 ++ local mylist=
179 ++ local 'mypath=/etc/runlevels/boot/net.*'
180 ++ [[ /etc/runlevels/boot/net.* !=
181 \/\e\t\c\/\r\u\n\l\e\v\e\l\s\/\b\o\o\t\/\n\e\t\.\* ]]
182 ++ for x in '${mypath}'
183 ++ [[ ! -e /etc/runlevels/boot/net.lo ]]
184 ++ [[ ! -d /etc/runlevels/boot/net.lo ]]
185 ++ [[ -L /etc/runlevels/boot/net.lo ]]
186 +++ ls /etc/runlevels/boot/net.lo
187 ++ mylist=' /etc/runlevels/boot/net.lo'
188 ++ echo ' /etc/runlevels/boot/net.lo'
189 ++ dolisting '/etc/runlevels/default/net.*'
190 ++ local x=
191 ++ local y=
192 ++ local tmpstr=
193 ++ local mylist=
194 ++ local 'mypath=/etc/runlevels/default/net.*'
195 ++ [[ /etc/runlevels/default/net.* !=
196 \/\e\t\c\/\r\u\n\l\e\v\e\l\s\/\d\e\f\a\u\l\t\/\n\e\t\.\* ]]
197 ++ for x in '${mypath}'
198 ++ [[ ! -e /etc/runlevels/default/net.eth0 ]]
199 ++ [[ ! -d /etc/runlevels/default/net.eth0 ]]
200 ++ [[ -L /etc/runlevels/default/net.eth0 ]]
201 +++ ls /etc/runlevels/default/net.eth0
202 ++ mylist=' /etc/runlevels/default/net.eth0'
203 ++ echo ' /etc/runlevels/default/net.eth0'
204 ++ dolisting '/var/lib/init.d/coldplugged/net.*'
205 ++ local x=
206 ++ local y=
207 ++ local tmpstr=
208 ++ local mylist=
209 ++ local 'mypath=/var/lib/init.d/coldplugged/net.*'
210 ++ [[ /var/lib/init.d/coldplugged/net.* !=
211 \/\v\a\r\/\l\i\b\/\i\n\i\t\.\d\/\c\o\l\d\p\l\u\g\g\e\d\/\n\e\t\.\* ]]
212 ++ for x in '${mypath}'
213 ++ [[ ! -e /var/lib/init.d/coldplugged/net.* ]]
214 ++ continue
215 ++ echo ''
216 + for x in '$(dolisting "/etc/runlevels/${BOOTLEVEL}/net.*")'
217 '$(dolisting "/etc/runlevels/${mylevel}/net.*")' '$(dolisting
218 "/var/lib/init.d/coldplugged/net.*")'
219 + netservices=' net.lo'
220 + for x in '$(dolisting "/etc/runlevels/${BOOTLEVEL}/net.*")'
221 '$(dolisting "/etc/runlevels/${mylevel}/net.*")' '$(dolisting
222 "/var/lib/init.d/coldplugged/net.*")'
223 + netservices=' net.lo net.eth0'
224 + is_runlevel_start
225 + [[ -d /var/lib/init.d/softscripts.old ]]
226 + is_runlevel_start
227 + [[ -d /var/lib/init.d/softscripts.old ]]
228 + [[ == *\ \n\e\t\ * ]]
229 + [[ -n '' ]]
230 + [[ 0 == \0 ]]
231 + IN_BACKGROUND=
232 + [[ -n '' ]]
233 + [[ no == \y\e\s ]]
234 + start
235 + '[' -e /dev/.devfs ']'
236 + for device in '/dev/hd?'
237 + local errmsg status
238 ++ :
239 + errmsg=
240 + status=0
241 + [[ -b /dev/hda ]]
242 + [[ 0 == 0 ]]
243 ++ basename /dev/hda
244 + eval 'args=${hda_args}'
245 ++ args='-A1 -X70 -d1 -u1 -m16 -a64'
246 + do_hdparm
247 + [[ -n -A1 -X70 -d1 -u1 -m16 -a64 ]]
248 ++ readlink -f /dev/hda
249 + local orgdevice=/dev/hda
250 + [[ -b /dev/hda ]]
251 + ebegin 'Running hdparm on /dev/hda'
252 + local 'msg=Running hdparm on /dev/hda' dots spaces=
253 + [[ no == \y\e\s ]]
254 + [[ -n '' ]]
255 + msg='Running hdparm on /dev/hda ...'
256 + einfon 'Running hdparm on /dev/hda ...'
257 + [[ no == \y\e\s ]]
258 + [[ yes != \y\e\s ]]
259 + echo -ne ' * Running hdparm on /dev/hda ...'
260 * Running hdparm on /dev/hda ...+ LAST_E_CMD=einfon
261 + return 0
262 + [[ yes == \y\e\s ]]
263 + echo
264
265 + LAST_E_LEN=33
266 + LAST_E_CMD=ebegin
267 + return 0
268 + hdparm -A1 -X70 -d1 -u1 -m16 -a64 /dev/hda
269 + eend 0
270 + local retval=0
271 + shift
272 + _eend 0 eerror ''
273 + local retval=0 efunc=eerror msg
274 + shift 2
275 + [[ 0 == \0 ]]
276 + [[ no == \y\e\s ]]
277 + msg='[ ok ]'
278 + [[ yes == \y\e\s ]] [ ok ]'e '
279
280 [ ok ]+ return 0
281 + LAST_E_CMD=eend
282 + return 0
283 + for device in '/dev/hd?'
284 + local errmsg status
285 ++ :
286 + errmsg=
287 + status=0
288 + [[ -b /dev/hdb ]]
289 + [[ 0 == 0 ]]
290 ++ basename /dev/hdb
291 + eval 'args=${hdb_args}'
292 ++ args='-A1 -X69 -d1 -u1 -m16 -a64'
293 + do_hdparm
294 + [[ -n -A1 -X69 -d1 -u1 -m16 -a64 ]]
295 ++ readlink -f /dev/hdb
296 + local orgdevice=/dev/hdb
297 + [[ -b /dev/hdb ]]
298 + ebegin 'Running hdparm on /dev/hdb'
299 + local 'msg=Running hdparm on /dev/hdb' dots spaces=
300 + [[ no == \y\e\s ]]
301 + [[ -n '' ]]
302 + msg='Running hdparm on /dev/hdb ...'
303 + einfon 'Running hdparm on /dev/hdb ...'
304 + [[ no == \y\e\s ]]
305 + [[ yes != \y\e\s ]]
306 + echo -ne ' * Running hdparm on /dev/hdb ...'
307 * Running hdparm on /dev/hdb ...+ LAST_E_CMD=einfon
308 + return 0
309 + [[ yes == \y\e\s ]]
310 + echo
311
312 + LAST_E_LEN=33
313 + LAST_E_CMD=ebegin
314 + return 0
315 + hdparm -A1 -X69 -d1 -u1 -m16 -a64 /dev/hdb
316 + eend 0
317 + local retval=0
318 + shift
319 + _eend 0 eerror ''
320 + local retval=0 efunc=eerror msg
321 + shift 2
322 + [[ 0 == \0 ]]
323 + [[ no == \y\e\s ]]
324 + msg='[ ok ]'
325 + [[ yes == \y\e\s ]] [ ok ]'e '
326
327 [ ok ]+ return 0
328 + LAST_E_CMD=eend
329 + return 0
330 + for device in '/dev/hd?'
331 + local errmsg status
332 ++ :
333 + errmsg='/etc/init.d/hdparm: line 122: /dev/hdc: No medium found'
334 + status=1
335 + [[ -b /dev/hdc ]]
336 + [[ 1 == 0 ]]
337 + [[ /etc/init.d/hdparm: line 122: /dev/hdc: No medium found == *\:\
338 \N\o\ \m\e\d\i\u\m\ \f\o\u\n\d ]]
339 ++ basename /dev/hdc
340 + eval 'args=${hdc_args}'
341 ++ args='-d1 -u1 -a256 -E8'
342 + do_hdparm
343 + [[ -n -d1 -u1 -a256 -E8 ]]
344 ++ readlink -f /dev/hdc
345 + local orgdevice=/dev/hdc
346 + [[ -b /dev/hdc ]]
347 + ebegin 'Running hdparm on /dev/hdc'
348 + local 'msg=Running hdparm on /dev/hdc' dots spaces=
349 + [[ no == \y\e\s ]]
350 + [[ -n '' ]]
351 + msg='Running hdparm on /dev/hdc ...'
352 + einfon 'Running hdparm on /dev/hdc ...'
353 + [[ no == \y\e\s ]]
354 + [[ yes != \y\e\s ]]
355 + echo -ne ' * Running hdparm on /dev/hdc ...'
356 * Running hdparm on /dev/hdc ...+ LAST_E_CMD=einfon
357 + return 0
358 + [[ yes == \y\e\s ]]
359 + echo
360
361 + LAST_E_LEN=33
362 + LAST_E_CMD=ebegin
363 + return 0
364 + hdparm -d1 -u1 -a256 -E8 /dev/hdc
365 + eend 0
366 + local retval=0
367 + shift
368 + _eend 0 eerror ''
369 + local retval=0 efunc=eerror msg
370 + shift 2
371 + [[ 0 == \0 ]]
372 + [[ no == \y\e\s ]]
373 + msg='[ ok ]'
374 + [[ yes == \y\e\s ]] [ ok ]'e '
375
376 [ ok ]+ return 0
377 + LAST_E_CMD=eend
378 + return 0
379 + for device in '/dev/hd?'
380 + local errmsg status
381 ++ :
382 + errmsg='/etc/init.d/hdparm: line 122: /dev/hdd: No medium found'
383 + status=1
384 + [[ -b /dev/hdd ]]
385 + [[ 1 == 0 ]]
386 + [[ /etc/init.d/hdparm: line 122: /dev/hdd: No medium found == *\:\
387 \N\o\ \m\e\d\i\u\m\ \f\o\u\n\d ]]
388 ++ basename /dev/hdd
389 + eval 'args=${hdd_args}'
390 ++ args='-d1 -u1 -a256 -E8'
391 + do_hdparm
392 + [[ -n -d1 -u1 -a256 -E8 ]]
393 ++ readlink -f /dev/hdd
394 + local orgdevice=/dev/hdd
395 + [[ -b /dev/hdd ]]
396 + ebegin 'Running hdparm on /dev/hdd'
397 + local 'msg=Running hdparm on /dev/hdd' dots spaces=
398 + [[ no == \y\e\s ]]
399 + [[ -n '' ]]
400 + msg='Running hdparm on /dev/hdd ...'
401 + einfon 'Running hdparm on /dev/hdd ...'
402 + [[ no == \y\e\s ]]
403 + [[ yes != \y\e\s ]]
404 + echo -ne ' * Running hdparm on /dev/hdd ...'
405 * Running hdparm on /dev/hdd ...+ LAST_E_CMD=einfon
406 + return 0
407 + [[ yes == \y\e\s ]]
408 + echo
409
410 + LAST_E_LEN=33
411 + LAST_E_CMD=ebegin
412 + return 0
413 + hdparm -d1 -u1 -a256 -E8 /dev/hdd
414 + eend 0
415 + local retval=0
416 + shift
417 + _eend 0 eerror ''
418 + local retval=0 efunc=eerror msg
419 + shift 2
420 + [[ 0 == \0 ]]
421 + [[ no == \y\e\s ]]
422 + msg='[ ok ]'
423 + [[ yes == \y\e\s ]] [ ok ]'e '
424
425 [ ok ]+ return 0
426 + LAST_E_CMD=eend
427 + return 0
428 + retval=0
429 + [[ 0 == \0 ]]
430 + service_inactive hdparm
431 + test_service_state hdparm inactive
432 + [[ -z hdparm ]]
433 + [[ -z inactive ]]
434 + local f=/var/lib/init.d/inactive/hdparm
435 + [[ -L /var/lib/init.d/inactive/hdparm ]]
436 + [[ ! -e /var/lib/init.d/inactive/hdparm ]]
437 + rm -f /var/lib/init.d/inactive/hdparm
438 + return 1
439 + [[ 0 != \0 ]]
440 + svcstarted=0
441 + mark_service_started hdparm
442 + [[ -z hdparm ]]
443 + ln -snf /etc/init.d/hdparm /var/lib/init.d/started/hdparm
444 + rm -f /var/lib/init.d/starting/hdparm /var/lib/init.d/inactive/hdparm
445 /var/lib/init.d/wasinactive/hdparm /var/lib/init.d/stopping/hdparm
446 '/var/lib/init.d/scheduled/*/hdparm'
447 + return 0
448 + service_message 'Service hdparm started'
449 + [[ no != \y\e\s ]]
450 + return
451 + svc_trap
452 + trap 'eerror "ERROR: ${SVCNAME} caught an interrupt"; exit 1' INT
453 QUIT TSTP
454 + return 0
455 + retval=0
456 + service_started hdparm
457 + test_service_state hdparm started
458 + [[ -z hdparm ]]
459 + [[ -z started ]]
460 + local f=/var/lib/init.d/started/hdparm
461 + [[ -L /var/lib/init.d/started/hdparm ]]
462 + return 0
463 + svc_start_scheduled
464 + [[ ! -d /var/lib/init.d/scheduled/hdparm ]]
465 + return
466 + exit 0
467 --
468 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Re: hdparm and baselayout Richard Fish <bigfish@××××××××××.org>