Subject: wd0f: aborted command, interface CRC error
To: None <port-i386@netbsd.org>
From: Johan Ihren <johani@pdc.kth.se>
List: port-i386
Date: 11/18/2000 16:25:14
Hi,

on a new disk, with NetBSD located about 15GB into the disk I get a
CRC error when mounting an FFS partition in the middle of the NetBSD
slice. 

As far as I can see have have not made any errors in either the DOS
fdisk partitioning nor the NetBSD disklabel. Also, the filesystem
actually gets mounted and as far as I can tell works fine.

So, what does the error say? Is it a hw problem with that block or
what?

Here is the dmesg output:

wd0 at pciide0 channel 0 drive 0: <IBM-DTLA-307045>
wd0: drive supports 16-sector pio transfers, lba addressing
wd0: 43979 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 90069840 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (using DMA data transfers)

...

wd0: transfer error, downgrading to Ultra-DMA mode 1
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 1 (using DMA data transfers)
wd0f: aborted command, interface CRC error reading fsbn 16 of 16-31 (wd0 bn 34092792; cn 33822 tn 3 sn 27), retrying
wd0: soft error (corrected)

The block number 34092792 is in the beginning of /dev/wd0f (which
starts at 34092776), which seems reasonable.

bash# cat /etc/fstab
/dev/wd1a       /       ffs     rw 1 1
/dev/wd1b       none    swap    sw 0 0
/dev/wd1f       /scratch        ffs     rw 1 2
/dev/wd1g       /usr/misc ffs   rw 1 3
kernfs          /kern   kernfs  rw
procfs          /proc   procfs  rw
/dev/wd0f       /usr/store      ffs     rw      1 2
/dev/wd0g       /audio  ffs     rw      1 3
/dev/wd0a       /altroot ffs    rw,noauto       1 4
/dev/wd0e       /msdos  msdos   rw,noauto,-u=1211,-g=20 0 0

bash# fdisk wd0
NetBSD disklabel disk geometry:
cylinders: 16383 heads: 16 sectors/track: 63 (1008 sectors/cylinder)

BIOS disk geometry:
cylinders: 1024 heads: 255 sectors/track: 63 (16065 sectors/cylinder)

Partition table:
0: sysid 12 (Primary DOS with 32 bit FAT - LBA)
    start 63, size 31471272 (15366 MB), flag 0x80
        beg: cylinder    0, head   1, sector  1
        end: cylinder 1023, head 254, sector 63
1: sysid 169 (NetBSD)
    start 31471336, size 20971520 (10240 MB), flag 0x0
        beg: cylinder 1023, head 254, sector 63
        end: cylinder 1023, head 254, sector 63
2: sysid 169 (NetBSD)
    start 52442856, size 25200000 (12304 MB), flag 0x0
        beg: cylinder 1023, head 254, sector 63
        end: cylinder 1023, head 254, sector 63
3: <UNUSED>

bash# disklabel wd0
# /dev/rwd0d:
type: ESDI
disk: IBM-DTLA-307045 
label: foo
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 16383
total sectors: 90069840
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0 

8 partitions:
#        size   offset     fstype   [fsize bsize   cpg]
  a:  2097152 31471336    4.2BSD     1024  8192    16   # (Cyl. 31221*- 33302*)
  b:   524288 33568488      swap                        # (Cyl. 33302*- 33822*)
  c: 20971520 31471336    unused        0     0         # (Cyl. 31221*- 52026*)
  d: 90069840        0    unused        0     0         # (Cyl.    0 - 89354)
  e: 31471272       63     MSDOS                        # (Cyl.    0*- 31221*)
  f: 18350080 34092776    4.2BSD     1024  8192    16   # (Cyl. 33822*- 52026*)
  g: 25200000 52442856    4.2BSD     1024  8192    16   # (Cyl. 52026*- 77026*)