[TriLUG] finding udev renamed flashkeys

Kevin Hunter hunteke at earlham.edu
Sun Apr 12 12:42:08 EDT 2009


At 11:11am -0400 on Sun, 12 Apr 2009, Joseph Mack wrote:
> udev is a bit of a mystery to me (like taxes).
> 
> I need to know whether a flashkey is mounted and if so where.

Matt is on target, I believe.  However, hinging on your word "mounted",
you can check the output of mount to see what's mounted.

$ mount
/dev/sda1 on / type ext3 (rw,relatime,errors=remount-ro,commit=300)
...

But that's just a reading of /etc/mtab.  To see exactly what the kernel
currently thinks, you can look in /proc/mounts.

> Any suggestions?

I'm with Matt.  At this point, things usually "just work."  When they
don't, I check

$ dmesg    # ( | tail or less if needs be)
$ tail /var/log/{messages,syslog}

Good luck,

Kevin



More information about the TriLUG mailing list