Which directory in /dev/disk/ can be used to determine the UUID of a connected hard disk?

Which directory in /dev/disk/ can be used to determine the UUID of a connected hard disk?

Which directory in /dev/disk/ can be used to determine the UUID of a connected hard disk?

Answer: by-uuid

Explanation:
See http://linuxshellaccount.blogspot.com/2008/08/how-to-manage-your-disk-by-uuid-on.html



Leave a Reply 2

Your email address will not be published. Required fields are marked *


Marco

Marco

I think the right answers can be blkid

example

blkid <– Leave blank to show all disks

/sbin/blkid

or

ls -l /dev/disk/by-uuid

Sim

Sim

it’s not asking which command would show that.
The dir is:
/dev/disk/by-uuid/