your mail
Christoph P. Kukulies
kuku at physik.rwth-aachen.de
Mon Sep 8 08:37:27 PDT 2003
On Mon, Sep 08, 2003 at 11:27:51AM -0400, Brian J. McGovern wrote:
> >
> >
> > 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: <UrDisk USB FLASH DISK 1.00> 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).
Thanks, it was the slice, as I later detected.
>
> 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
Thanks. Will try that.
So at least I was able now to mount it under root.
--
Christoph
More information about the freebsd-questions
mailing list