Subject: Re: USB Flash drives
To: None <port-i386@netbsd.org>
From: None <jeffw@pdxlug.org>
List: port-i386
Date: 12/18/2005 16:02:16
Jaromir Dolecek <jdolecek@NetBSD.org> wrote:

> On Sun, Dec 18, 2005 at 03:34:14PM -0500, Yasir Malik wrote:
> > Has anybody has success with the different USB flash drives out there? 
> > >From umass(4), I only see "Lexar Media JumpDrive Flash Disks" as "known" 
> > to work.  I would appreciate it if somebody could point out some that work 
> > on NetBSD.
>
> Pretty much any umass device works.

Here's one that doesn't:

EMPREX 128MB USB Flash Drive

I picked this up at Frys and kinda expected it to work since it says
it's Linux compatible (which it is, at least on knoppix and ubuntu).
On my laptop (Dell Latitude CPi A 366XT; NetBSD-1.6.2; GENERIC_LAPTOP)
I get the following dmesg output:

...
umass0 at uhub0 port 1 configuration 1 interface 0
umass0: vendor 0x0204 product 0x6025, rev 2.00/1.00, addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 1 luns per target
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 1 lun 0: <Memorigh, Flash Disk, 2.00> SCSI2 0/direct removable
sd0: 1094 GB, 2695963 cyl, 128 head, 0 sec, 4589319 bytes/sect x 255968 sectors

--

As you can see the values for sd0 are way wrong (1094 GB ?!) and
as soon as I try to access it either by mounting or running disklabel
the whole system freezes.  I tried reformatting it on windows (FAT32)
but it didn't help at all.  Might try formatting it as FFS but I'd
prefer not to for flexibility reasons.

I'd consider lending this thing to a netbsd developer if someone is
interested in figuring out what the problem is. 

Cheers,
Jeff