On Sat, Oct 2, 2010 at 10:07 PM, Stephen Powell <zlinux...@wowway.com> wrote:
>
> There are a couple of ways.  One way is to use the blkid command.
> For example,
>
> blkid /dev/sda2
>
> will return the uuid of /dev/sda2.  The other way is to issue
>
> ls -Al /dev/disk/by-uuid/
>
> which will list all the udev-created symbolic links that have a uuid
> in them and what they are links to. I prefer the second method because
> it lists them all with a single command and also because it makes
> sure that udev (at least this portion of it) is working properly.

Just "blkid" will output all the UUIDs and I think that the default
option is "udev" (it scans "/dev/disk/by-uuid") and the other option
is "scan" (it scans "/proc/partitions").

You can use "blkid -o list" to list the associated mount points.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/aanlktikp0fxukvz-9eu6u16rwc45dcmew=yjqmmhy...@mail.gmail.com

Reply via email to