How to auto-detect a USB drive?

Mike Clarke jmc-freebsd2 at milibyte.co.uk
Wed Mar 11 13:16:59 PDT 2009


On Wednesday 11 March 2009, Roland Smith wrote:

> If you give the msdosfs filesystem a unique label (with e.g. mlabel
> from emulators/mtools), you'll get a unique device in /dev/msdosfs/.

Yes, but sometimes I'll be transferring data to or from someone else's 
USB stick so I can't make any assumptions about how the filesystem has 
been labeled.

-- 
Mike Clarke


More information about the freebsd-questions mailing list