Skip site navigation (1)Skip section navigation (2)
Date:      11 May 2005 08:51:04 -0400
From:      Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>
To:        Juho Vuori <juho.vuori@kepa.fi>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Finding out which device to mount after plugging in a USB thumb drive
Message-ID:  <44y8amsz7r.fsf@be-well.ilk.org>
In-Reply-To: <4281D971.8080106@kepa.fi>
References:  <4281D971.8080106@kepa.fi>

next in thread | previous in thread | raw e-mail | index | archive | help
Juho Vuori <juho.vuori@kepa.fi> writes:

> Hello,
> 
> If I plug in a USB thumb drive, which becomes, say, umass0. Normally
> something like /dev/da0 will also be created amd slices of that device
> may be mounted. But is there a API for finding out what is the
> corresponding block device for umass devices ? The device driver
> writes that to syslog, but reading logs for something like that is
> quite clumsy.

You can always wire it down if you need that to be predictable.
See: "man scsi".



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44y8amsz7r.fsf>