[CentOS] rescan usb hd

Tue Sep 22 21:16:30 UTC 2009
Stewart Williams <lists at pinkyboots.co.uk>

William L. Maltby wrote:
> On Mon, 2009-09-21 at 17:05 -0700, Bazooka Joe wrote:
>> I have a usb hd that I use for backup.  Occasionally it dies.
>>
>> scsi 6:0:0:0: rejecting I/O to dead device
>> scsi 6:0:0:0: rejecting I/O to dead device
>> scsi 6:0:0:0: rejecting I/O to dead device
>> scsi 6:0:0:0: rejecting I/O to dead device
>> Buffer I/O error on device sdc1, logical block 0
>> lost page write due to I/O error on sdc1
>> EXT2-fs error (device sdc1): read_inode_bitmap: Cannot read inode
>> bitmap - block_group = 129, inode_bitmap = 4227073
>> scsi 6:0:0:0: rejecting I/O to dead device
>> scsi 6:0:0:0: rejecting I/O to dead device
>> scsi 6:0:0:0: rejecting I/O to dead device
>> Buffer I/O error on device sdc1, logical block 0
>> lost page write due to I/O error on sdc1
>> EXT2-fs error (device sdc1): ext2_readdir: bad page in #2
>> scsi 6:0:0:0: rejecting I/O to dead device
>> scsi 6:0:0:0: rejecting I/O to dead device
>> Buffer I/O error on device sdc1, logical block 0
>> lost page write due to I/O error on sdc1
>> EXT2-fs error (device sdc1): ext2_get_inode: unable to read inode
>> block - inode=2, block=1027
>> scsi 6:0:0:0: rejecting I/O to dead device
>> scsi 6:0:0:0: rejecting I/O to dead device
>> Buffer I/O error on device sdc1, logical block 0
>> lost page write due to I/O error on sdc1
>> EXT2-fs error (device sdc1): ext2_readdir: bad page in #2
>>
>> If i unmount it and try to remount it it says sdc1 does not exist.
> 
> It may not be the USB drive. I have one that daoe the same, usually only
> after long periods oh high (in)activity.
> 
> On another node, no problems ever using that same drive.
> 
> On the system with the problem, CentOS 4.7, Via Kt-400A chipset.
> 
> One the other system, Centos 5.3, Via KT-880 chipset.
> 
> I've not bothered to google yet, since it seems to occur after leaving
> it attached for long periods and what I do doesn't take long
> 
> Maybe there's a clue?

This can happen if the drive has power-saving features and it's gone to
sleep after no activity.

What does 'sdparm -a /dev/sdc' yield? And what make/model is the disk?