Subject: Re: wd(4) questions
To: Dieter <netbsd@sopwith.solgatos.com>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: netbsd-help
Date: 08/19/2005 21:44:54
On Fri, Aug 19, 2005 at 10:31:00AM +0100, Dieter wrote:
> Question 1:
> 
> dd if=/dev/rwd0c count=161507 bs=1512k of=/dev/null
> dd: /dev/rwd0c: Input/output error
> 160465+0 records in
> 160465+0 records out
> 248446033920 bytes transferred in 6623.766 secs (37508274 bytes/sec)
> 
> Looking in /var/log/messages:
> 
> /netbsd: wd0: transfer error, downgrading to Ultra-DMA mode 2
> [ more read errors ]
> /netbsd: wd0: transfer error, downgrading to Ultra-DMA mode 1
> 
> Is there a way to get wd(4) to upgrade the mode back without rebooting?
> I don't see anything in wd(4) or atactl(8) man pages.

Not yet. It's still on my todo list but at very low priority ...

> 
> Question 2:
> 
> dd if=/dev/zero of=/dev/rwd0c count=161507 bs=1512k
> 
> dd: /dev/rwd0c: Input/output error
> 160466+0 records in
> 160465+0 records out
> 248446033920 bytes transferred in 37890.490 secs (6556949 bytes/sec)
> 
> I was expecting to see a disk write error logged in /var/log/messages,
> but there is nothing?

Maybe it was missed by syslog, but it's present in dmesg output ?
Also, if you're hitting the end of the disk, it's possible that the error was
reported by bounds_check_with_mediasize(), in which case no message is
printed.

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
--