1.\" Copyright (c) 1999 2.\" Nick Hibma <n_hibma@FreeBSD.org>. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. 9.\" 2. Redistributions in binary form must reproduce the above copyright 10.\" notice, this list of conditions and the following disclaimer in the 11.\" documentation and/or other materials provided with the distribution. 12.\" 3. Neither the name of the author nor the names of any co-contributors 13.\" may be used to endorse or promote products derived from this software 14.\" without specific prior written permission. 15.\" 16.\" THIS SOFTWARE IS PROVIDED BY NICK HIBMA AND CONTRIBUTORS ``AS IS'' AND 17.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19.\" ARE DISCLAIMED. IN NO EVENT SHALL NICK HIBMA OR THE VOICES IN HIS HEAD 20.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 26.\" THE POSSIBILITY OF SUCH DAMAGE. 27.\" 28.\" $FreeBSD$ 29.\" 30.Dd November 22, 2006 31.Dt UMASS 4 32.Os 33.Sh NAME 34.Nm umass 35.Nd USB Mass Storage Devices driver 36.Sh SYNOPSIS 37To compile this driver into the kernel, 38place the following line in your 39kernel configuration file: 40.Bd -ragged -offset indent 41.Cd "device umass" 42.Ed 43.Pp 44Alternatively, to load the driver as a 45module at boot time, place the following line in 46.Xr loader.conf 5 : 47.Bd -literal -offset indent 48umass_load="YES" 49.Ed 50.Sh DESCRIPTION 51The 52.Nm 53driver provides support for Mass Storage devices that attach to the USB 54port. 55.Pp 56To use the 57.Nm 58driver, 59.Xr usb 4 60and one of 61.Xr uhci 4 62or 63.Xr ohci 4 64must be configured in the kernel. 65Additionally, since 66.Nm 67uses the SCSI subsystem and sometimes acts as a SCSI device, it 68requires 69.Xr da 4 70and 71.Xr scbus 4 72to be included in the kernel. 73.Sh HARDWARE 74The 75.Nm 76driver supports USB Mass Storage devices, including: 77.Pp 78.Bl -bullet -compact 79.It 80ADTEC Stick Drive AD-UST32M, 64M, 128M, 256M 81.It 82Denno FireWire/USB2 Removable 2.5-inch HDD Case MIFU-25CB20 83.It 84FujiFilm Zip USB Drive ZDR100 USB A 85.It 86GREEN HOUSE USB Flash Memory "PicoDrive" GH-UFD32M, 64M, 128M 87.It 88IBM 32MB USB Memory Key (P/N 22P5296) 89.It 90IBM 256MB USB Drive (MSYSTEM DiskOnKey2) 91.It 92IBM ThinkPad USB Portable CD-ROM Drive (P/N 33L5151) 93.It 94I-O DATA USB CD/CD-R/CD-RW/DVD-R/DVD-RW/DVD-RAM/DVD-ROM Drive DVR-iUH2 (CDROM, DVD-RAM only) 95.It 96I-O DATA USB x6 CD-RW Drive CDRW-i64/USB (CDROM only) 97.It 98I-O DATA USB/IEEE1394 Portable HD Drive HDP-i30P/CI, HDP-i40P/CI 99.It 100Iomega USB Zip 100/250 drive 101.It 102Iomega Zip750 USB2.0 drive 103.It 104Keian USB1.1/2.0 3.5-inch HDD Case KU350A 105.It 106Kurouto Shikou USB 2.5-inch HDD Case GAWAP2.5PS-USB2.0 107.It 108LaCie P3 HardDrive USB 200GB 109.It 110Logitec LDR-H443U2 DVD-RAM/-R/+R/-RW/+RW drive 111.It 112Logitec Mobile USB Memory LMC-256UD 113.It 114Logitec USB1.1/2.0 HDD Unit SHD-E60U2 115.It 116Logitec USB Double-Speed Floppy Drive LFD-31U2 117.It 118Logitec USB/IEEE1394 DVD-RAM/R/RW Unit LDR-N21FU2 (CDROM only) 119.It 120MELCO USB Flash Disk "ClipDrive", RUF-C32M, -C64M, -C128M, -C256M, -C512M 121.It 122MELCO USB Flash Disk "PetitDrive", RUF-32M, -64M, -128M, -256Mm 123.It 124MELCO USB2.0 Flash Disk "PetitDrive2", RUF-256M/U2, -512M/U2 125.It 126MELCO USB2.0 MO Drive MO-CH640U2 127.It 128Matshita CF-VFDU03 floppy drive 129.It 130Merlin SM300 MP3/WMA Player (256Mb) 131.It 132Microtech International, Inc.\& USB-SCSI-HD 50 USB to SCSI cable 133.It 134Motorola E398 Mobile Phone (TransFlash memory card) 135.It 136NOVAC USB2.0 2.5/3.5-inch HDD Case NV-HD351U 137.It 138PNY Attache Flash Drive 139.It 140Panasonic ("Matshita FDD CF-VFDU03") 141.It 142Panasonic KXL-CB20AN Portable DVD-ROM/CD-R/RW 143.It 144Panasonic KXL-CB35AN (DVD-ROM & CD-R/RW) 145.It 146Panasonic USB2.0 Portable CD-RW Drive KXL-RW40AN (CDROM only) 147.It 148Panasonic floppy drive 149.It 150Qware BeatZkey!\& Pro 151.It 152RATOC Systems USB2.0 Removable HDD Case U2-MDK1, U2-MDK1B 153.It 154SanDisk SDDR-31 (Compact Flash) 155.It 156SanDisk SDDR-75 (only Compact Flash port works) 157.It 158Sitecom CN-300 MultiFlash (MMC/SD, SmartMedia, CF, MemoryStick) 159.It 160Sony Portable CD-R/RW Drive CRX10U (CDROM only) 161.It 162TEAC Portable USB CD-ROM Unit CD-110PU/210PU 163.It 164Time DPA20B MP3 Player (1Gb) 165.It 166Trek Thumbdrive 8MB 167.It 168VAIO floppy drive (includes Y-E Data Flashbuster-U) 169.It 170Y-E Data floppy drive (720/1.44/2.88Mb) 171.El 172.Pp 173Among the supported digital cameras are: 174.Pp 175.Bl -bullet -compact 176.It 177Asahi Optical (PENTAX) Optio 230 & 330 178.El 179.Sh EXAMPLES 180.Bd -literal -offset indent 181device umass 182device scbus 183device da 184device pass 185.Ed 186.Pp 187Add the 188.Nm 189driver to the kernel. 190.Pp 191.Dl "camcontrol rescan 0" 192.Pp 193Rescan a Zip drive that was added after boot. 194The command above 195assumes that the Zip drive is on the first SCSI bus in the system. 196.Bd -literal -offset indent 197camcontrol rescan 0:0:0 198camcontrol rescan 0:0:1 199camcontrol rescan 0:0:2 200camcontrol rescan 0:0:3 201.Ed 202.Pp 203Rescan all slots on a multi-slot flash reader, where the slots map to separate 204LUNs on a single SCSI ID. 205Typically only the first slot will be enabled at boot time. 206Again, this assumes that the flash reader is the first SCSI bus in the system. 207.Bd -literal -offset indent 208bsdlabel -w da0 zip100 209newfs da0c 210mount -t ufs /dev/da0c /mnt 211.Ed 212.Pp 213Write a disklabel to the Zip drive (see 214.Xr vpo 4 215for the 216.Xr disktab 5 217entry), creates the file system and mounts the new file system on /mnt. 218.Pp 219.Dl "newfs_msdos /dev/da0" 220.Pp 221Create a new FAT type file system. 222Care should be taken not to run 223.Xr newfs 8 224on devices that already contain data, as this will result in the 225information being lost. 226.Pp 227Many consumer devices such as digital cameras automatically create 228.Tn MS-DOS 229based file systems when storing information such as images and 230videos. 231These file systems can be accessed by specifying the file system 232type as 233.Cm msdos 234when using 235.Xr mount 8 . 236.Sh SEE ALSO 237.Xr ehci 4 , 238.Xr ohci 4 , 239.Xr uhci 4 , 240.Xr usb 4 , 241.Xr vpo 4 , 242.Xr disktab 5 , 243.Xr bsdlabel 8 , 244.Xr camcontrol 8 245.\".Sh HISTORY 246.Sh AUTHORS 247.An -nosplit 248The 249.Nm 250driver was written by 251.An MAEKAWA Masahide Aq bishop@rr.iij4u.or.jp 252and 253.An Nick Hibma Aq n_hibma@FreeBSD.org . 254.Pp 255This manual page was written by 256.An Nick Hibma Aq n_hibma@FreeBSD.org . 257