From: Tejun Heo <htejun@gmail.com>
To: David Greaves <david@dgreaves.com>
Cc: "'linux-kernel@vger.kernel.org'" <linux-kernel@vger.kernel.org>,
IDE Linux <linux-ide@vger.kernel.org>,
ballen@gravity.phys.uwm.edu
Subject: Re: 2.6.22-rc3 hibernate(?) disables SMART on ide
Date: Sat, 02 Jun 2007 18:45:55 +0900 [thread overview]
Message-ID: <46613C53.8010205@gmail.com> (raw)
In-Reply-To: <46609290.5030701@dgreaves.com>
David Greaves wrote:
> I have 2 ide disks. If I enable SMART and hibernate/suspend2disk, SMART is
> disabled when I resume.
>
> Same as in 2.6.21.1
>
> cu:~# smartctl -son /dev/hda
> smartctl version 5.36 [i686-pc-linux-gnu] Copyright (C) 2002-6 Bruce Allen
> Home page is http://smartmontools.sourceforge.net/
>
> === START OF ENABLE/DISABLE COMMANDS SECTION ===
> SMART Enabled.
>
> cu:~# /usr/net/bin/hibernate
> [poweron resume here]
> cu:~# smartctl -a /dev/hda
> smartctl version 5.36 [i686-pc-linux-gnu] Copyright (C) 2002-6 Bruce Allen
> Home page is http://smartmontools.sourceforge.net/
>
> === START OF INFORMATION SECTION ===
> Model Family: Seagate Barracuda ATA II family
> Device Model: ST320420A
> Serial Number: 3CL04RKY
> Firmware Version: 3.21
> User Capacity: 20,404,101,120 bytes
> Device is: In smartctl database [for details use: -P show]
> ATA Version is: 4
> ATA Standard is: Exact ATA specification draft version not indicated
> Local Time is: Fri Jun 1 22:37:15 2007 BST
> SMART support is: Available - device has SMART capability.
> SMART support is: Disabled
>
> SMART Disabled. Use option -s with argument 'on' to enable it.
According to the ATA standard, the device (drive) itself is responsible
for preserving SMART enabled status over power cycles. It seems your
drive doesn't wanna do that. I don't think mangling with SMART setup in
the kernel is wise thing to do. Bruce, any ideas? Maybe hook smartd
such that it gets suspend/resume events?
Thanks.
--
tejun
next prev parent reply other threads:[~2007-06-02 11:39 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-01 21:41 2.6.22-rc3 hibernate(?) disables SMART on ide David Greaves
2007-06-02 9:45 ` Tejun Heo [this message]
2007-06-02 21:53 ` David Greaves
2007-06-04 16:29 ` Mark Lord
2007-06-04 17:22 ` David Greaves
2007-06-05 4:17 ` Mark Lord
2007-06-05 9:03 ` David Greaves
2007-06-05 15:33 ` Mark Lord
[not found] <8rnax-6XX-11@gated-at.bofh.it>
[not found] ` <8rA7H-1B4-1@gated-at.bofh.it>
2007-06-02 21:27 ` Bodo Eggert
2007-06-02 22:18 ` Jeff Garzik
2007-06-02 22:22 ` Alan Cox
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46613C53.8010205@gmail.com \
--to=htejun@gmail.com \
--cc=ballen@gravity.phys.uwm.edu \
--cc=david@dgreaves.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).