Tuesday, January 19, 2010

[Solved] Problem(IDE cable) adding Disk.

Hi,

I added the disk in Disk Management, then went to format it as UFS and got this:

Code: Select all
Creating partition:
gpt create: unable to open device '/dev/ad2': Input/output error
gpt add: unable to open device '/dev/ad2': Input/output error
Creating filesystem with 'Soft Updates':
newfs: /dev/ad2p1: could not find special device
Done!

Nov 21 16:55:24 kernel: ad2: FAILURE - READ_DMA status=51 error=84 LBA=16
Nov 21 16:55:24 kernel: ad2: WARNING - READ_DMA UDMA ICRC error (retrying request) LBA=16
Nov 21 16:55:24 kernel: ad2: WARNING - READ_DMA UDMA ICRC error (retrying request) LBA=16
Nov 21 16:55:24 kernel: ad2: FAILURE - READ_DMA status=51 error=84 LBA=2
Nov 21 16:55:24 kernel: ad2: WARNING - READ_DMA UDMA ICRC error (retrying request) LBA=2
Nov 21 16:55:24 kernel: ad2: WARNING - READ_DMA UDMA ICRC error (retrying request) LBA=2
Nov 21 16:55:24 kernel: ad2: FAILURE - READ_DMA status=51 error=84 LBA=2
Nov 21 16:55:24 kernel: ad2: WARNING - READ_DMA UDMA ICRC error (retrying request) LBA=2
Nov 21 16:55:24 kernel: ad2: WARNING - READ_DMA UDMA ICRC error (retrying request) LBA=2
Nov 21 16:55:24 kernel: ad2: FAILURE - READ_DMA status=51 error=84 LBA=16
Nov 21 16:55:24 kernel: ad2: WARNING - READ_DMA UDMA ICRC error (retrying request) LBA=16
Nov 21 16:55:24 kernel: ad2: WARNING - READ_DMA UDMA ICRC error (retrying request) LBA=16
Nov 21 16:55:24 kernel: ad2: FAILURE - READ_DMA status=51 error=84 LBA=2
Nov 21 16:55:24 kernel: ad2: WARNING - READ_DMA UDMA ICRC error (retrying request) LBA=2
Nov 21 16:55:24 kernel: ad2: WARNING - READ_DMA UDMA ICRC error (retrying request) LBA=2

===========================================

Hardware issue

1. check cable(IDE,SATA, PATA) and connectors
2. check disk and disk controllers

===========================================

Back up any data you care about now. Use the smartmontools port or hunt down a utility from Samsung which'll do a surface test (read only, nondestructive).

You can also run a "dd if=/dev/ad10 of=/dev/null bs=8192" to do a full read test under FreeBSD, and see how many CRC errors show up.

===========================================
This is *not* a FreeBSD/hard disk compatibility issue, this is probably a hardware problem, or a configuration problem (less likely).

Does the error always occur at the same location (LBA=64093375)? It may be that this part has bad sectors (i.e. the disk is physically damaged).

As mentioned before, install /usr/ports/sysutils/smartmontools, and run % smartctl -a /dev/ad0, this will read the disks' SMART information.
If you're not sure what it means, then just post the output of this command.

I would above all highly recommend running a hard disk test, MHDD is an excellent program, Ultimate Boot CD includes many (Including MHDD).

A basic test can be done with dd(1):
# dd if=/dev/ad0 of=/dev/null bs=1m conv=noerror
But note that this test is far from perfect since it does not report speed.

The reason Windows XP and Ubuntu work fine may be because they don't use the damaged area of the disk or because they silently ignore the error.
===========================================

Reference:
http://sourceforge.net/apps/phpbb/freenas/viewtopic.php?f=78&t=288
http://freebsd.monkey.org/freebsd-stable/200508/msg00150.html
http://forums.freebsd.org/showthread.php?t=879

No comments: