Carlos E. R. wrote:
The Tuesday 2007-06-19 at 16:17 +0200, Joachim Schrod wrote:

I bought an external USB disk, Seagate FreeAgent, [...]
After some time, the disk puts itself in some "sleep" mode.

All hardddisks made have that feature: after some minutes (15') without any activity, they spin down. The time is configurable, and can be activated/dissabled.

Now, external drives... that's interesting. I would report the problem to bugzilla, the kernel should survive a disk sleep.

I'll think about that -- have to judge the entry writing effort with the anticipated results of a 10.0 kernel error report.

But anyhow, you helped me further a lot:

In fact, I have reproduced your problem in my system (or a related problem):
The command to enable/disable the sleep mode is hdparm:

nimrodel:~ # hdparm -C /dev/sdb

/dev/sdb:
 drive state is:  unknown

This did not work here either, but I got reminded that there is sdparm to check and change the SCSI disk parameters. And voila, here we are:

sdparm --command=ready /dev/sdc         # check ready state
sdparm --command=start /dev/sdc         # start a sleeping disk
sdparm --command=stop /dev/sdc          # put a disk in standby
sdparm -al -f /dev/sdc                  # list all known mode flags
sdparm -6 -p po --clear=STANDBY /dev/sdc # turn off standby feature
sdparm -6 -p po --defaults /dev/sdc     # establish it again

Now I just need to observe if the disk gets too hot after I turned off the standby feature. Sadly, smartctl doesn't work for that disk, so I have no reliable method of checking its temperature.

But that's a minor inconvenience compared to the state before.
Muchas gracias!

        Joachim

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Joachim Schrod                          Email: [EMAIL PROTECTED]
Roedermark, Germany

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to