Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: something is broken with ata in netbsd-5



On Sun, Dec 21, 2008 at 12:15:06PM +0100, Manuel Bouyer wrote:

> On Sat, Dec 20, 2008 at 01:14:21PM +0000, Andrew Doran wrote:
> > # dmesg|grep wd2
> > wd2 at atabus2 drive 0: <WDC WD2500JS-75NCB2>
> > wd2: drive supports 16-sector PIO transfers, LBA48 addressing
> > wd2: 232 GB, 484406 cyl, 16 head, 63 sec, 512 bytes/sect x 488281250 sectors
> > wd2: 32-bit data port
> > wd2: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
> > wd2(piixide1:1:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (usingDMA)
> > boot device: wd2
> > root on wd2a dumps on wd2b
> > 
> > ...
> > 
> > # mount /dev/wd2a /mnt
> > mount: cannot open `/dev/wd2a': Device not configured
> > # disklabel wd2
> > disklabel: /dev/rwd2d: Device not configured
> > # fdisk wd2
> > fdisk: cannot opendisk /dev/rwd2d: Device not configured
> 
> Works fine for me:
> rochebonne# uname -a
> NetBSD rochebonne.antioche.eu.org 5.0_BETA NetBSD 5.0_BETA (ROCHEBONNE) #1: 
> Sat Dec 20 16:56:03 CET 2008  
> bouyer@roll:/dsk/l1/misc/bouyer/tmp/i386/obj/dsk/l1/misc/bouyer/netbsd-5/src/sys/arch/i386/compile/ROCHEBONNE
>  i386
> wd0 at atabus0 drive 0: <ST38410A>
> wd0: drive supports 32-sector PIO transfers, LBA addressing
> wd0: 8223 MB, 16708 cyl, 16 head, 63 sec, 512 bytes/sect x 16841664 sectors
> wd0: 32-bit data port
> wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
> wd0(piixide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA)
> wd2 at atabus2 drive 0pdcsata0:0:0: lost interrupt
> wd2: drive supports 16-sector PIO transfers, LBA addressing
> wd2: 76319 MB, 155061 cyl, 16 head, 63 sec, 512 bytes/sect x 156301488 sectors
> wd2: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
> wd2(pdcsata0:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA)
> 
> rochebonne# disklabel wd0
> # /dev/rwd0d:
> type: unknown
> disk: Maxtor 90845U2 
> label: 
> flags:
> bytes/sector: 512
> sectors/track: 63
> tracks/cylinder: 16
> sectors/cylinder: 1008
> [...]
> rochebonne# disklabel wd2
> # /dev/rwd2d:
> type: ESDI
> disk: WDC WD800JD-60JR
> label: fictitious
> flags:
> bytes/sector: 512
> sectors/track: 63
> tracks/cylinder: 16
> sectors/cylinder: 1008
> [...]
> rochebonne# ll /dev/rwd0d /dev/rwd2d
> crw-r-----  1 root  operator        3,  3 Mar 17  2005 /dev/rwd0d
> crw-r-----  1 root  operator        3, 19 Dec  4  2004 /dev/rwd2d

I tried it again. I can access wd2 fine, but only when it is not the root
device. If root I get ENXIO.

Thanks,
Andrew


Home | Main Index | Thread Index | Old Index