I have a problem in my system, that I don't understand: there are no disks UUIDs, only partitions UUIDs:

ls -al /dev/disk/by-uuid/
total 0
drwxrwxrwx 2 root root 140 Nov 21 20:36 ./
drwxrwxrwx 5 root root 100 Nov 21 20:36 ../
lrwxrwxrwx 1 root root  10 Nov 21 18:36 20AC094AAC091C42 -> ../../sda3
lrwxrwxrwx 1 root root  10 Nov 21 18:36 A004AFE104AFB8A4 -> ../../sda2
lrwxrwxrwx 1 root root  10 Nov 21 18:36 E83A6F543A6F1EB6 -> ../../sdb1
lrwxrwxrwx 1 root root  10 Nov 21 18:36 FE6CD3A96CD35ACB -> ../../sda1
lrwxrwxrwx 1 root root  10 Nov 21 18:36 e6c45231-5e3d-4874-8294-df43b55e8fea -> ../../sdb2

any ideea what to do ? see disks uuids ?

Later Edit: (as response to a comment)

DISKS DO HAVE UUIDS, first of all I did see them myself, even in my own system, then for some reason was gone, and not just to take my word for it (yes, my word seems to be vague "I saw the mirage") ... here some links with ppl using disks uuids NOT partitions:

linux: How can I view all UUIDs for all available disks on my system?

second answer from bottom

lrwxrwxrwx 1 root root  9 Sep  1 18:51 b4b729f7-5699-411c-8f5a-424bbc7c89fc -> ../../sdb



second answer from the top:

hdparm -S 25 /dev/disk/by-uuid/f6c52265-d89f-43a4-b03b-302c3dadb215

and two ansers after that

hdparm -S244 /dev/disk/by-uuid/71492809-e463-41fa-99e2-c09e9ca90c8e  > /dev/null 2> /dev/null

I really hope no one will come and say that hdparm is used on partitions ...

so, thank you for your interest and my personal "congratulations" to the ones who seems to believe you enough to give you rating for an OBVIOUS WRONG ANSWER !

  • 3
    There's nothing wrong with your system. UUIDs are assigned to filesystems (partitions) not to disks, you could use the serial number though if you have to reference the whole disk... – don_crissti Nov 21 '15 at 19:57
  • LUL, check the later edit – THESorcerer Nov 21 '15 at 20:47
  • 1
    You do know that some programs are smart enough to see when they have been given a partition and go for the actual disk containing that partition? As for that U&L post, clearly people don't usually bother to distinguish between disks, drives and partitions, unless the question calls for it. Your question does. – muru Nov 22 '15 at 2:59
  • yes, maybe, but ... you are kinda' off-topic, be cuz, I think I proved good enough that there are disk uuids and therefore ... where are they ? :) – THESorcerer Nov 22 '15 at 10:17
  • What (numeric) version of udev does your system have? – Mark Plotnick Nov 23 '15 at 2:02

sgdisk does this:

# sgdisk -p /dev/xvda
Disk /dev/xvda: 16777216 sectors, 8.0 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): B9181609-5D44-49F4-9CD6-DEDBA25FC478

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.