Hello, Does FreeBSD (stable) have any tools that I can use to run diagnostics on an external hard drive? I have a Maxtor One Touch 250GB external hard drive (the one with both USB and Firewire connectors). This is connected to my FreeBSD 5-stable machine with firewire.>From /var/log/messages:Mar 12 21:29:38 kg-work kernel: da1 at sbp0 bus 0 target 1 lun 0 Mar 12 21:29:38 kg-work kernel: da1: <Maxtor OneTouch 0000> Fixed Direct Access SCSI-4 device Mar 12 21:29:38 kg-work kernel: da1: 50.000MB/s transfers Mar 12 21:29:38 kg-work kernel: da1: 239371MB (490232832 512 byte sectors: 255H 63S/T 30515C) Today the drive suddenly stopped working, and when I try to mount it now it says: root@kg-work# mount /dev/da1s1e /mnt mount: /dev/da1s1e: Input/output error In /var/log/messages I see lots of error messages (see attached file). Maxtor have a (Windows-only) tool that will do diagnostics, but only on "One Touch II" drives, not on those who are only "One Touch". So any tool I can use under FreeBSD will help. The drive is still under warranty, so I will not open it (yet). Any hints appreciated. -- Regards, Torfinn Ingolfsen, Norway -------------- next part -------------- Mar 12 21:48:26 kg-work kernel: (da1:sbp0:0:1:0): SCSI Status: Check Condition Mar 12 21:48:26 kg-work kernel: (da1:sbp0:0:1:0): MEDIUM ERROR asc:4b,0 Mar 12 21:48:26 kg-work kernel: (da1:sbp0:0:1:0): Data phase error Mar 12 21:48:26 kg-work kernel: (da1:sbp0:0:1:0): Retrying Command (per Sense Data) Mar 12 21:48:27 kg-work kernel: (da1:sbp0:0:1:0): READ(10). CDB: 28 0 0 0 0 4f 0 0 10 0 Mar 12 21:48:27 kg-work kernel: (da1:sbp0:0:1:0): CAM Status: SCSI Status Error Mar 12 21:48:27 kg-work kernel: (da1:sbp0:0:1:0): SCSI Status: Check Condition Mar 12 21:48:27 kg-work kernel: (da1:sbp0:0:1:0): MEDIUM ERROR asc:4b,0 Mar 12 21:48:27 kg-work kernel: (da1:sbp0:0:1:0): Data phase error Mar 12 21:48:27 kg-work kernel: (da1:sbp0:0:1:0): Retries Exhausted
On Sat, 2005-03-12 at 15:54, Torfinn Ingolfsen wrote:> Hello, > > Does FreeBSD (stable) have any tools that I can use to run diagnostics > on an external hard drive? > > I have a Maxtor One Touch 250GB external hard drive (the one with both > USB and Firewire connectors). This is connected to my FreeBSD 5-stable > machine with firewire. > > >From /var/log/messages: > Mar 12 21:29:38 kg-work kernel: da1 at sbp0 bus 0 target 1 lun 0 > Mar 12 21:29:38 kg-work kernel: da1: <Maxtor OneTouch 0000> Fixed Direct > Access SCSI-4 device > Mar 12 21:29:38 kg-work kernel: da1: 50.000MB/s transfers > Mar 12 21:29:38 kg-work kernel: da1: 239371MB (490232832 512 > byte sectors: 255H 63S/T 30515C) > > Today the drive suddenly stopped working, and when I try to mount it now > it says: > root@kg-work# mount /dev/da1s1e /mnt > mount: /dev/da1s1e: Input/output error > > In /var/log/messages I see lots of error messages > (see attached file). > > Maxtor have a (Windows-only) tool that will do diagnostics, but only on > "One Touch II" drives, not on those who are only "One Touch". > So any tool I can use under FreeBSD will help. The drive is still under > warranty, so I will not open it (yet). > > Any hints appreciated.>Mar 12 21:48:27 kg-work kernel: (da1:sbp0:0:1:0): READ(10). CDB: 28 0 00 0 4f 0 0 10 0 Reading 0x10 = 16 sectors = 8k starting at sector 0x4f = 79> MEDIUM ERROR asc:4b,0The asc is a bit strange. However Medium Error can also be used as "Something is wrong and I don't know what" ;-) I would try to read sectors using dd. dd if=/dev/da1 of=/dev/null bs=512 iseek=79 count=1 ... dd if=/dev/da1 of=/dev/null bs=512 iseek=88 count=1 and some unrelated sectors dd if=/dev/da1 of=/dev/null bs=512 iseek=0 count=1 If only a single sector (or a few) can not be read I would try to write zero to the sectors.This may clear the media error. (The previous data is obviously lost) Example: dd if=/dev/zero of=/dev/da1 bs=512 oseek=79 count=1 Good luck Stephan
On Sun, 13 Mar 2005 07:24, Torfinn Ingolfsen wrote:> Does FreeBSD (stable) have any tools that I can use to run diagnostics > on an external hard drive?Have you tried smartmontools? It probably won't work (most enclosures don't appear to implement the necessary brains to translate the SMART commands) but you could be lucky :) -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20050314/fd067a1f/attachment.bin
On Sat, 12 Mar 2005, Torfinn Ingolfsen wrote:> Hello, > > Does FreeBSD (stable) have any tools that I can use to run diagnostics > on an external hard drive? > > I have a Maxtor One Touch 250GB external hard drive (the one with both > USB and Firewire connectors). This is connected to my FreeBSD 5-stable > machine with firewire.Firewire enclosures typically just have an ATA-FW bridge, so you may get better diagnostics and accessibility if you take the disk out of the FW box and plug it into an ATA channel.>From first glance at the errors I'd say the drive has problems. If itsunder warranty I'd just replace it :) -- Doug White | FreeBSD: The Power to Serve dwhite@gumbysoft.com | www.FreeBSD.org