What is the command to find SD card UUID on Linux ?

BTW: My SD card is not a USB device.


You don't say which distribution you have.

usb-devices returns serial number information (if available) for all usb devices (on Debian, root not required).

You could also try (as root, or via sudo),

udevadm info -a -n /dev/sdb

changing the device to the SD card reader device. This requires your Linux distribution to support udev.

The pretty common lshw (again, run as root is best) might also return the information (untested here).

  • I've updated my question. – SebMa May 3 '16 at 11:20
  • So do udevadm or lshw work? Neither of those are specific to USB devices. – EightBitTony May 3 '16 at 11:33
  • If my SD card serial is ABCD-EF12, $ sudo lshw | grep -i ABCD-EF12 does not return anything and btw, my sd card has no FAT32 label : $ sudo mlabel -si /dev/mmcblk0p1 Volume has no label and $ sudo udevadm info -a -n /dev/mmcblk0 | grep -i ABCD-EF12 returns nothing either. Do you have any other command ? – SebMa May 7 '16 at 12:19
  • Sorry, I have found out that what I'm searching for is the UUID. Updating the question right away... – SebMa May 7 '16 at 12:42

I found this command :

lsblk -o name,serial,uuid,partuuid,label,partlabel /dev/sdb

  • the one helped straight away on my linux mint. – benni Apr 20 at 11:29

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.