Productive Linux


 Subscribe via Feedburner in a reader

Enter your email address:

Delivered by FeedBurner


Don't have an account?
Sign up to
Forgot your password?

Bash One-Liner to Determine Mountpoint from UUID
30 March 2011 @ 20:09 BST
by Paul

You are not the root user (and therefore do not have access to blkid), but you want to determine were a particular disk or partition is mounted. You know it is a particular disk, because you have the UUID, which is the quasi-unique identifier for the disk:

mount | grep `readlink -f /dev/disk/by-uuid/xxxxxxxxxxxxxxx` | cut -d ' ' -f 3

Replace the x's with the UUID.

Comments disabled