From owner-freebsd-questions@FreeBSD.ORG Mon Sep 8 08:27:55 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 914AC16A4BF for ; Mon, 8 Sep 2003 08:27:55 -0700 (PDT) Received: from sj-iport-2.cisco.com (sj-iport-2-in.cisco.com [171.71.176.71]) by mx1.FreeBSD.org (Postfix) with ESMTP id C4DC143FF7 for ; Mon, 8 Sep 2003 08:27:54 -0700 (PDT) (envelope-from bmcgover@bmcgover-pc.cisco.com) Received: from bmcgover-pc.cisco.com (171.71.177.237) by sj-iport-2.cisco.com with ESMTP; 08 Sep 2003 08:40:35 -0700 Received: from flask.cisco.com (IDENT:mirapoint@flask.cisco.com [161.44.122.62]) by sj-core-1.cisco.com (8.12.9/8.12.6) with ESMTP id h88FRqPu010499; Mon, 8 Sep 2003 08:27:53 -0700 (PDT) Received: from bmcgover-pc.cisco.com (bmcgover-pc.cisco.com [161.44.65.27]) by flask.cisco.com (Mirapoint Messaging Server MOS 3.3.6-GR) with ESMTP id ACE53053; Mon, 8 Sep 2003 11:27:51 -0400 (EDT) Received: from bmcgover-pc.cisco.com (localhost.cisco.com [127.0.0.1]) by bmcgover-pc.cisco.com (8.12.9/8.12.9) with ESMTP id h88FRpsV027712; Mon, 8 Sep 2003 11:27:51 -0400 (EDT) (envelope-from bmcgover@bmcgover-pc.cisco.com) Message-Id: <200309081527.h88FRpsV027712@bmcgover-pc.cisco.com> To: Christoph Kukulies In-reply-to: Your message of "Mon, 08 Sep 2003 08:17:06 PDT." <20030908151706.4ABF816A4F2@hub.freebsd.org> Date: Mon, 08 Sep 2003 11:27:51 -0400 From: "Brian J. McGovern" cc: freebsd-questions@freebsd.org Subject: X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Sep 2003 15:27:55 -0000 > > > Hi, > > I inserted an USB stick into a 5.1 FreeBSD box and > was pleasantly surprised to see it being autodetected: > > umass0: UrDisk USB FLASH DISK, rev 1.10/1.00, addr 2 > da0 at umass-sim0 bus 0 target 0 lun 0 > da0: Removable Direct Access SCSI-2 device > da0: 1.000MB/s transfers > da0: 15MB (32000 512 byte sectors: 64H 32S/T 15C) ... and I've been sending patches as I get my hands on more brands/types. Unfortunately, this isn't one of mine, so I can't claim credit ;) > But when I try to mount it, I'm getting > > # mount -t msdos /dev/da0 /mnt > msdosfs: /dev/da0: Invalid argument > See if there is a slice for the device, e.g. /dev/da0s1. Also, you can try a fdisk on the device, in case it doesn't use the first slice (I've yet to see this on USB devices, but ZIP drives used to use slice 4 for their "DOS" partition). If you still can't get it to work, drop me a line, and I can try to provide some other pointers. On most devices, its a matter of tweaking the protocol settings in umass.c. > > Assumed I will get it working soon, how can I achieve that > it is automatically mounted? > Is there a user wrapper to mount/unmount the USB stick? You should be able to set something up in /etc/usbd.conf for attach. Detach may be a bit tricker, as you should unmount the filesystem before pulling the stick. -Brian