Skip to content

Finding out the UUID of partitions

Often, Linux software configurations define partitions by there UUID as opposed to their /dev device. You can find out what the UUID is with:

blkid /dev/sdx

Or, you can do:

ls -l /dev/disk/by-uuid

    2 Comments ( Add comment / trackback )

    1. (permalink)
      Comment by chrissy
      On January 5, 2010 at 08:05

      Just a note: blkid requires elevated privileges to show anything useful (this is true for the version in Ubuntu 8.04, anyway).

    2. (permalink)
      Comment by halfgaar
      On January 6, 2010 at 00:26

      Not really a problem, since the only time I need a UUID, is when I’m root 🙂