Subject: Re: CF on NetBSD
To: Nathan J. Williams <nathanw@mit.edu>
From: Peter Seebach <seebs@plethora.net>
List: current-users
Date: 09/21/2000 21:10:51
In message <mtug0mttcb5.fsf@contents-vnder-pressvre.mit.edu>, Nathan J. William
s writes:
>> Anyway, I haven't tested the PCMCIA stuff recently.  But I got a new SanDisk
>> ImageMate, and it works fine.

>It probes as a umass device and some kind of disk attached to that?

umass0 at uhub1 port 1 configuration 1 interface 0
umass0: SanDisk Corporation ImageMate CompactFlash USB, rev 1.10/0.09, addr 6
umass0: using SCSI over BBB-P
scsibus0 at umass0: 2 targets, 1 luns per target
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 1 lun 0: <SanDisk, ImageMate II, 1.30> SCSI2 0/direct removable
sd0: drive offline

If I put in a disk, the driver adapts to it.

It says:
sd0 detached
scsibus0 detached
umass0 detached
umass0 at uhub1 port 1 configuration 1 interface 0
umass0: SanDisk Corporation ImageMate CompactFlash USB, rev 1.10/0.09, addr 6
umass0: using SCSI over BBB-P
scsibus0 at umass0: 2 targets, 1 luns per target
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 1 lun 0: <SanDisk, ImageMate II, 1.30> SCSI2 0/direct
removable
sd0: mode sense (4) returned nonsense; using fictitious geometry
sd0: 15744 KB, 15 cyl, 64 head, 32 sec, 512 bytes/sect x 31489 sectors

If I take it out, it says nothing, but if I put in a new one:

umass0: at uhub1 port 1 (addr 6) disconnected
sd0 detached
scsibus0 detached
umass0 detached
uhub1: device problem, disabling port 1
umass0 at uhub1 port 1 configuration 1 interface 0
umass0: SanDisk Corporation ImageMate CompactFlash USB, rev 1.10/0.09, addr 6
umass0: using SCSI over BBB-P
scsibus0 at umass0: 2 targets, 1 luns per target
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 1 lun 0: <SanDisk, ImageMate II, 1.30> SCSI2 0/direct
removable
sd0: mode sense (4) returned nonsense; using fictitious geometry
sd0: 31488 KB, 30 cyl, 64 head, 32 sec, 512 bytes/sect x 62977 sectors

So, it looks like it works fine.

I wouldn't recommend yanking a drive without unmounting it, it doesn't look
like anything "detects" drive removal, so Bad Things Could Happen.

(I haven't tested this, I'm not that bored...)

-s