[opensuse] Re: USB disk goes to sleep, causes "device not ready" errors
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: jschrod@acm.org Roedermark, Germany -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Wednesday 2007-06-20 at 15:48 +0200, Joachim Schrod wrote:
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.
Ah, 10.0... you are right, it should be reported against a 10.2 system at least.
But anyhow, you helped me further a lot:
And you me, because...
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:
...I had completely forgotten 'sdparm' :-)
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
I have looked at the man page, but didn't find out more. Perhaps there is another one to learn the sleep timeout. Anyway, the sequence doesn't seem to work on mine: nimrodel:~ # sdparm --command=stop /dev/sda /dev/sda: ST360020 A 0000 nimrodel:~ # sdparm --command=ready /dev/sda /dev/sda: ST360020 A 0000 Ready It is not stopped, even with the device umounted.
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.
No, smartctl doesn't work because the chipset of the usb boxes do not support the necessary commands; at least that's what I read somewhere.
But that's a minor inconvenience compared to the state before. Muchas gracias!
De nada :-) - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFGeaQitTMYHG2NR9URArxnAJ9M2tklxPPGBHaHsINSBm8wsL9d4gCfQ3u8 S+D+chBsbJfRxCNEkNnwjl4= =rKu2 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (2)
-
Carlos E. R.
-
Joachim Schrod