Subject: re: U3 flash disks on NetBSD?
To: None <smb@cs.columbia.edu>
From: Dave J. Barnes <djb_netbsd@charter.net>
List: netbsd-users
Date: 09/18/2006 11:09:33
>Has anyone played with U3 flash disks on NetBSD? ...
>First, given our sometimes
>quirky USB support, do the devices show up properly 
>(and if so, which brand did you use)?

umass0 at uhub0 port 2 configuration 1 interface 0
umass0: SanDisk Corporation U3 Cruzer Micro, rev 2.00/0.10, addr 2
umass0: using SCSI over Bulk-Only
scsibus2 at umass0: 2 targets, 2 luns per target
sd2 at scsibus2 target 0 lun 0: <SanDisk, U3 Cruzer Micro, 2.15> disk removable
sd2: 483 MB, 983 cyl, 16 head, 63 sec, 512 bytes/sect x 990865 sectors
cd3 at scsibus2 target 0 lun 1: <SanDisk, U3 Cruzer Micro, 2.15> cdrom removable

# mbrlabel sd2
Found MSDOS partition; size 990627 (483 MB), offset 237
  skipping existing MSDOS partition at slot e.

5 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 d:    990865         0     unused      0     0        # (Cyl.      0 -    983*)
 e:    990627       237      MSDOS                     # (Cyl.      0*-    982)

Not updating disk label.

# mbrlabel /dev/cd3d
4 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 a:   1599996         0     4.2BSD      0     0     0  # (Cyl.      0 -  15999+)
 d:   1599996         0    ISO9660       0             # (Cyl.      0 -  15999+)

Not updating disk label.

# df (trimmed)
Filesystem              1K-blocks      Used     Avail Capacity  Mounted on
/dev/sd2e                  495168     31472    463696     6%    /mnt
/dev/cd3d                    3930      3930         0   100%    /mnt2

# ls -al /mnt
total 978
drwxr-xr-x   1 root  wheel   16384 Dec 31  1979 .
drwxr-xr-x  32 root  wheel    1024 Sep 18 10:49 ..
drwxr-xr-x   1 root  wheel   16384 Feb  9  2006 Documents
-r-xr-xr-x   1 root  wheel  921600 Sep 15  2005 LaunchU3.exe
-rwxr-xr-x   1 root  wheel      13 Sep 18 10:48 NETBSD
drwxr-xr-x   1 root  wheel   16384 Feb  9  2006 System

# ls -al /mnt2
total 3879
dr-xr-xr-x   1 root  wheel     2048 Oct 11  2005 .
drwxr-xr-x  32 root  wheel     1024 Sep 18 10:49 ..
-r-xr-xr-x   1 root  wheel  3046200 Oct 11  2005 LaunchPad.zip
-r-xr-xr-x   1 root  wheel   921600 Oct 11  2005 LaunchU3.exe
-r-xr-xr-x   1 root  wheel      145 Jun 27  2005 autorun.inf

# uname -v
NetBSD 4.0_BETA (GENERIC) #0: Sat Sep  2 15:53:56 UTC 2006  builds@b0.netbsd.org:/home/builds/ab/netbsd-4/i386/200609020000Z-obj/home/builds/ab/netbsd-4/src/sys/arch/i386/compile/GENERIC

>Second, and just as important, what does it take to write the "CD-ROM" device under NetBSD?
I didn't know that you could write to the CD-ROM part of the U3. Investigating.....

djb