问题与hdparam [英] Problem with hdparam

查看:334
本文介绍了问题与hdparam的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我正在尝试使用-k(或-K)切换到hdparam,这意味着

保持设置重新启动后。


但是如果我这样做,那么
hdparam -k1 / dev / hda

然后重新启动,调用

hdparam -k / dev / hda

查找保持设置状态显示它现在再次关闭




有人可以解释发生了什么吗?

非常感谢提前!


MJB

Hi,

I''m trying to use the -k (or -K) switch to hdparam, which is meant to
keep settings after a restart.

But if I do
hdparam -k1 /dev/hda
and then reboot, calling
hdparam -k /dev/hda
to find the "keep settings" status shows that it''s now turned itself off
again!

Can anyone explain what''s going on?

Very many thanks in advance!

MJB

推荐答案

在文章< ft **********@aioe.org> ;, Mark Berry< no **** @ nospam.comwrote:
In article <ft**********@aioe.org>, Mark Berry <no****@nospam.comwrote:

>我'我试图使用-k(或-K)开关到hdparam,这意味着在重启后保持设置。
>I''m trying to use the -k (or -K) switch to hdparam, which is meant to
keep settings after a restart.


>但是如果我做了
hdparam -k1 / dev / hda
然后重启,请致电
hdparam -k / dev / hda
找到保持设置状态显示它现在再次关闭

>But if I do
hdparam -k1 /dev/hda
and then reboot, calling
hdparam -k /dev/hda
to find the "keep settings" status shows that it''s now turned itself off
again!


>有谁可以解释发生了什么?
>Can anyone explain what''s going on?



不是线索。 C标准描述的C部分是什么?
hdparam?


当我查看时,hdparam似乎更有可能成为Linux

实用程序,而不是C库调用。如果是这样的话,我不仅仅有关于C库中的内容的主要内存失效,你会更好地检查专门讨论你的Linux品牌的论坛吗? 。

-

毕竟,知识分子遇到了什么问题?

- Robert Gilman

Not a clue. Which section of the C which C standard describes
hdparam ?

When I check around, hdparam seems more likely to be a Linux
utility, not a C library call. If so and I haven''t merely had
a major memory lapse about what is in the C library, you would
be better checking a forum devoted to your brand of Linux.
--
"After all, what problems has intellectualism ever solved?"
-- Robert Gilman


Mark Berry写道:
Mark Berry wrote:

>




我正在尝试将-k(或-K)开关用于hdparam,这意味着

重启后保持设置。


但是如果我这样做,那么
hdparam -k1 / dev / hda

然后重新启动,调用

hdparam -k / dev / hda

来查找保持设置状态显示它现在再次关闭




有人可以解释发生了什么吗?
>
Hi,

I''m trying to use the -k (or -K) switch to hdparam, which is meant to
keep settings after a restart.

But if I do
hdparam -k1 /dev/hda
and then reboot, calling
hdparam -k /dev/hda
to find the "keep settings" status shows that it''s now turned itself off
again!

Can anyone explain what''s going on?



是的。第42行出现错误。


-

+ ----------------- -------- + -------------------- + -------------------- --- +

| Kenneth J. Brody | www.hvcomputer.com | #include |

| kenbrody / at\spamcop.net | www.fptech.com | < std_disclaimer.h |

+ ------------------------- + --------- ----------- + ----------------------- +

不要 - 请发邮件至:< mailto:Th ************* @ gmail.com>

Yes. There''s an error on line 42.

--
+-------------------------+--------------------+-----------------------+
| Kenneth J. Brody | www.hvcomputer.com | #include |
| kenbrody/at\spamcop.net | www.fptech.com | <std_disclaimer.h|
+-------------------------+--------------------+-----------------------+
Don''t e-mail me at: <mailto:Th*************@gmail.com>


2008年4月10日在19:06,Mark Berry写道:
On 10 Apr 2008 at 19:06, Mark Berry wrote:

我正在尝试使用-k(或-K)切换到hdparam,这意味着

重启后保持设置。


但如果我这样做

hdparam -k1 / dev / hda

然后重新启动,调用

hdparam -k / dev / hda

查找保持设置状态显示它现在再次关闭




有人可以解释发生了什么吗?
I''m trying to use the -k (or -K) switch to hdparam, which is meant to
keep settings after a restart.

But if I do
hdparam -k1 /dev/hda
and then reboot, calling
hdparam -k /dev/hda
to find the "keep settings" status shows that it''s now turned itself off
again!

Can anyone explain what''s going on?



首先,程序叫做hdparm,而不是hdparam。


关于你的问题,你是误会-k和-K标志的作用是什么:

它们保留了某些设置(-k的dmu选项,以及-K的APWSXZ选项

),但仅限于软复位(例如,如果IDE总线被重置为错误恢复序列的一部分) - 没有理由期望

标志在重启时保留任何内容。

First up, the program is called hdparm, not hdparam.

As to your problem, you''re misunderstanding what the -k and -K flags do:
they preserve certain settings (dmu options for -k, and APWSXZ options
for -K), but only across soft resets (e.g. if the IDE bus gets reset as
part of an error recovery sequence) - there''s no reason to expect the
flags to preserve anything across a reboot.


这篇关于问题与hdparam的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆