Re: Question about spun-down USB disk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Kit Gerrits wrote:
...
> If, for some reason, a program wants to write to a file on there without
> spinning the drive up in advance, the error pops up.
> Mind you, I haven't had the error in days now.
> 
> All I'm looking for is a way to increase the time the O/S waits for the disk
> to spin up.

Try the /sys/bus/scsi/devices/*:*:*:*/timeout attribute.

Of course increasing the timeout isn't a particularly sophisticated
method to solve the issue, but simple enough to try.  The default
timeout is 30 seconds: linux/drivers/scsi/sd.h::SD_TIMEOUT.  Can an HDD
really take longer than that to receive a request when spun down, spin
up, execute the request, and return status?
-- 
Stefan Richter
-=====-==--- =-== -=-==
http://arcgraph.de/sr/
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux