0

I have a hard drive from this kit meant for a pi zero. The hard drive has a cord coming off it that has a USB and two ways of powering on through a USB hub from the kit on the zero and then one for direct power from an outlet. Right now I've got it directly powered and the pi seems to find the hard drive when I do sudo lsblk -o UUID,NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL,MODEL but shows no UUID for it. How do I get the UUID for it?

  • Could you show us the full output of that command? The hard drive might need to be partitioned and formatted first. To get the UUID, you can also use the blkid command. – John Hawthorne Apr 4 '18 at 14:31
  • It's actually partition, or more accurately filesystem, UUIDs that count for most purposes; for how to set them see here: sudo-juice.com/how-to-change-the-uuid-of-a-linux-partition – goldilocks Apr 4 '18 at 15:03
  • "How do I get the UUID for it?" -> To clarify, these things are not serial numbers, i.e., they are not hard-wired anywhere and can be set and changed arbitrarily with software; generally random values are used. The point of using the UUID format is that it is incredibly unlikely that you end up with the same two used for anything. – goldilocks Apr 4 '18 at 15:13
  • @JohnHawthorne I tried blkid and my hard drive doesn't show on that list. Output of sudo lsblk -o UUID,NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL,MODE pastebin.com/rcFfRF8p (has to use pastebin as it is too long) Here is the output of blkid pastebin.com/saD1nZpH – Quintin VanBooven Apr 5 '18 at 3:58
  • as the first couple of comments suggested, the UUID output by lsblk is a filesystem UUID - clearly, from your output, the hard drive has no partitions and therefore no filesystems on it – Jaromanda X Apr 5 '18 at 5:31

Your Answer

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

Browse other questions tagged or ask your own question.