Re: Bad Sectors on a SATA Drive

"Tom G. Christensen" <tgc-QOZTYAA+/Ks+nozOxzIu92SdvHPH+/[email protected]> Fri, 19 Jan 2007 09:12:10 +0100
Newsgroups gmane.linux.redhat.release.taroon.general
Message-ID <[email protected]>
Lawrence Houston wrote:
> John:
> 
> On Thu, 18 Jan 2007, John Haxby wrote:
> 
>> Lawrence Houston wrote:
>>> Question 2: Is there any way to have RHEL3 complete a Surface Scan while
>>>             it is still running in the Networked Multi-User Mode (I am
>>>             located 100 Miles away)?  I ask since dropping into Single
>>>             User Mode and Remounting in Read-ONLY Mode to run Utilities
>>>             from the Command-Line on the Console is NOT something the 
>>> less
>>>             experienced computer users are willing to do on their own!
>> You can run badblocks read-only without bringing the system down -- I 
>> did it this morning on a disk I was suspicious of that doesn't support 
>> SMART. Well, the disk does, but the USB enclosure doesn't so I'm 
>> planning to put it in a machine and see what smartctl has to say.   
>> It'll probably say it's not well :-(
> 
> Running a SMARTCTL Query reports the Device does NOT support SMART??
> 
> --------------------------------------------------------
> [root]# /usr/sbin/smartctl -i /dev/sda
> smartctl version 5.1-11 Copyright (C) 2002-3 Bruce Allen
> Home page is http://smartmontools.sourceforge.net/
> 
> Device: ATA      ST3160023AS      Version: 8.12
> Serial number:             5MT0MLQB
> Device type: disk
> Local Time is: Thu Jan 18 14:20:49 2007 EST
> Device does not support SMART [bad value in scsi command]
> ---------------------------------------------------------
> 
> The 160 GIG Seagate is accessed via SCSI Emulation (not sure if that is 
> a SATA, RHEL3 or DELL "Thing"?), should that affect whether a SATA Disk 
> can return SMART Inforation???
>
It's not accessed via SCSI Emulation according to dmesg.
It's a SATA drive and claimed by libata which exports devices as SCSI 
devices. However smartctl needs to know that it's accessing a libata 
device to work correctly.

Try this instead:
# smartctl -d ata -i /dev/sda

-tgc

--
Taroon-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/taroon-list