Mailinglist Archive: opensuse (2442 mails)
| < Previous | Next > |
[opensuse] Re: USB disk goes to sleep, causes "device not ready" errors
- From: Joachim Schrod <jschrod@xxxxxxx>
- Date: Thu, 21 Jun 2007 00:52:03 +0200
- Message-id: <f5cb2j$qdo$1@xxxxxxxxxxxxx>
Carlos E. R. wrote:
At my disk, the sleep timeout is shown by the -alf command:
pussy:~/log # sdparm -al -f /dev/sdc
/dev/sdc: Seagate FreeAgentDesktop 100D
RBC device parameters (RBC) [PS=1] mode page:
WCD 0 [cha: n, def: 0, sav: 0] Write cache disable
LBS 512 [cha: n, def:512, sav:512] Logical block size
NLBS 0x3a386030 [cha: y, def:0x3a386030, sav:0x3a386030] Number of logical blocks
P_P 0 [cha: n, def: 0, sav: 0] Power/performance
READD 0 [cha: n, def: 0, sav: 0] Read disable
WRITED 0 [cha: n, def: 0, sav: 0] Write disable
FORMATD 0 [cha: n, def: 0, sav: 0] Format disable
LOCKD 0 [cha: n, def: 0, sav: 0] Lock disable
Power condition [PS=0] mode page:
IDLE 0 [cha: n, def: 0, sav: 0] Idle timer active
STANDBY 1 [cha: y, def: 1, sav: 1] Standby timer active
ICT 0 [cha: n, def: 0, sav: 0] Idle condition timer (100 ms)
SCT 9000 [cha: y, def:9000, sav:9000] Standby condition timer (100 ms)
The standby timer is set to 900sec (last line).
Does "sdparm -p po -l /dev/sda" output any values on your system?
It does only work on my USB disks; my SATA disks output
>> Power condition mode page not supported
probably the stop command wouldn't work there either. (I don't want to stop one of them, they're in use. :-))
Joachim
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Joachim Schrod Email: jschrod@xxxxxxx
Roedermark, Germany
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
...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.
At my disk, the sleep timeout is shown by the -alf command:
pussy:~/log # sdparm -al -f /dev/sdc
/dev/sdc: Seagate FreeAgentDesktop 100D
RBC device parameters (RBC) [PS=1] mode page:
WCD 0 [cha: n, def: 0, sav: 0] Write cache disable
LBS 512 [cha: n, def:512, sav:512] Logical block size
NLBS 0x3a386030 [cha: y, def:0x3a386030, sav:0x3a386030] Number of logical blocks
P_P 0 [cha: n, def: 0, sav: 0] Power/performance
READD 0 [cha: n, def: 0, sav: 0] Read disable
WRITED 0 [cha: n, def: 0, sav: 0] Write disable
FORMATD 0 [cha: n, def: 0, sav: 0] Format disable
LOCKD 0 [cha: n, def: 0, sav: 0] Lock disable
Power condition [PS=0] mode page:
IDLE 0 [cha: n, def: 0, sav: 0] Idle timer active
STANDBY 1 [cha: y, def: 1, sav: 1] Standby timer active
ICT 0 [cha: n, def: 0, sav: 0] Idle condition timer (100 ms)
SCT 9000 [cha: y, def:9000, sav:9000] Standby condition timer (100 ms)
The standby timer is set to 900sec (last line).
Does "sdparm -p po -l /dev/sda" output any values on your system?
It does only work on my USB disks; my SATA disks output
>> Power condition mode page not supported
probably the stop command wouldn't work there either. (I don't want to stop one of them, they're in use. :-))
Joachim
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Joachim Schrod Email: jschrod@xxxxxxx
Roedermark, Germany
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
| < Previous | Next > |