Mounting USB flash drive
Henrik Gulbrandsen
henrik at gulbra.net
Tue Jan 29 13:28:31 PST 2008
On Tue, 2008-01-29 at 11:22 +0300, Peter Trifonov wrote:
> Just a small suggestion for your patch set. The /etc/devd/umass script
> contains the following:
>
> # Verify that there is a slice to mount
> if [ ! -e /dev/${drv}s1 ]; then
> exit 1;
> fi
>
> I have seen some flash drives which do not contain any partitions, i.e. they
> look like a big floppy.
> In this case one should not look for /dev/daXsY, but mount /dev/daX.
Thanks for the reminder! I know I've seen this mentioned somewhere else,
but I guess I was hoping that someone with access to one of those drives
would submit a tested patch, so I wouldn't have the risk of leaving some
stupid mistake in the code. I'll try to keep it in mind for new updates!
/Henrik
More information about the freebsd-usb
mailing list