Re: dummy scsi read or scsi command periodically for external USB Hard Disk

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

 



On Tue, 8 Jul 2014, loody wrote:

> > An alternative is to write a positive value, such as 240000, to
> >
> >         /sys/block/sdX/events_poll_msecs
> >
> > where X is replaced with the proper drive letter.  (240000 ms = 240 s =
> > 4 m.)  I'm not sure this will work, but it's worth a try.
> 
> I cannot find events_poll_msecs you mentioned in my system.
> Is this capability related to kernel version?
> ( my kernel version is 2.6.38.8 )

Well, the in-kernel disk events mechanism was added in 2.6.38, but it 
may not have been implemented for your type of drive.

Probably you don't actually need to do a read.  Simply opening the 
device file ought to be sufficient.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux