Celeb Glow
news | March 12, 2026

How can I list Ubuntu disks by a unique identifier?

I am running Ubuntu 12.04 LTS inside a VM running on VMware Workstation 8.0.4.

When I try to view the disks attached to the machine by their ID nothing shows up but the CD-ROM drive. I listing the disk by running ls -la /dev/disk/by-id

I need a way to uniquely identify the disk so I create a ZFS pool to test. They recommend disk by-id but anything would work I guess.

Any idea how I can get something to work?

1 Answer

Try:

ls -la /dev/disk/by-uuid/

Also running the following (as root), will print the UUID of a certain partition:

blkid /dev/sda0
3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy